Cloned preset before using
| @@ -406,7 +406,7 @@ export function formatInstructModeSystemPrompt(systemPrompt, customInstruct = nu | |||
| 406 | return ''; | 406 | return ''; |
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | const instruct = customInstruct ?? power_user.instruct; | 409 | const instruct = structuredClone(customInstruct ?? power_user.instruct); |
| 410 | 410 | ||
| 411 | const separator = instruct.wrap ? '\n' : ''; | 411 | const separator = instruct.wrap ? '\n' : ''; |
| 412 | 412 | ||