fix(tool-jobs): restore the background-job guidance text

The rewrite carried an older wording of the system-prompt section; the
recorded-session snapshots pin the current one. Model-visible text is
byte-identical to the pre-refactor plugin again.
This commit is contained in:
Yichen Jiang committed 2026-09-03 17:17:30 +08:00
1 parent 7b607ae6a2
commit 9e8f3ce987
1 file changed
+1 -1
+1 -1
View File
@@ -249,7 +249,7 @@ export function apply(ctx: Context, config: Config): void {
ctx.systemPrompt.section({
name: 'tool:jobs',
order: ctx.systemPrompt.getSectionOrder('TOOL_JOBS'),
text: 'Track every background job id you start. You are notified in-session when a job finishes — do not busy-poll or sleep on one; keep working on independent steps and do not stop your turn just to wait. Use job_output when you need its output now. Use job_kill to stop a job you no longer need.',
text: 'Track every background job id you start. You are notified in-session when a job finishes — do not busy-poll or sleep on one; keep working on independent steps and do not duplicate a running job\'s work. Before giving a final answer, collect every still-relevant job with job_output (set wait: true only when you are genuinely blocked on it), and job_kill jobs that stopped mattering.',
})
// Jobs whose terminal state this plugin already handed to the model through