We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 787d026 commit 2ef8c29Copy full SHA for 2ef8c29
1 file changed
lib/hooks.ts
@@ -92,7 +92,12 @@ export function createSystemPromptHandler(
92
return
93
}
94
95
- output.system.push(renderSystemPrompt(flags))
+ const newPrompt = renderSystemPrompt(flags)
96
+ if (output.system.length > 0) {
97
+ output.system[output.system.length - 1] += "\n\n" + newPrompt
98
+ } else {
99
+ output.system.push(newPrompt)
100
+ }
101
102
103
0 commit comments