fix(core): tell the model it can redirect background subagents

This commit is contained in:
rekram1-node 2026-10-06 22:04:09 +00:00
parent 59e5953443
commit fcdf152e11

View file

@ -21,7 +21,7 @@ const backgroundResult = (sessionID: SessionSchema.ID) => ({
status: "running" as const,
output: [
`The subagent is working in the background (sessionID: ${sessionID}). You will be notified automatically when it finishes.`,
"DO NOT sleep, poll for progress, ask the subagent for status, or duplicate this subagent's work; avoid working with the same files or topics it is using.",
"DO NOT sleep, poll for progress, ask the subagent for status, or duplicate this subagent's work; avoid working with the same files or topics it is using. To redirect it, send a follow-up with this sessionID.",
"Work on non-overlapping tasks, or briefly tell the user what you launched and end your response.",
].join("\n"),
})