tweak: adjust order of system prompt instructions: Global, Project, Skills (#24974)

This commit is contained in:
Aiden Cline
2026-04-29 10:55:53 -05:00
committed by GitHub
parent 71f9189607
commit 00bb9836a6
3 changed files with 12 additions and 12 deletions

View File

@@ -1445,7 +1445,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the
instruction.system().pipe(Effect.orDie),
MessageV2.toModelMessagesEffect(msgs, model),
])
const system = [...env, ...(skills ? [skills] : []), ...instructions]
const system = [...env, ...instructions, ...(skills ? [skills] : [])]
const format = lastUser.format ?? { type: "text" as const }
if (format.type === "json_schema") system.push(STRUCTURED_OUTPUT_SYSTEM_PROMPT)
const result = yield* handle.process({