docs(coding-agent): updated background job guidance for automatic completion flow

- Updated bash, job, and task prompts to state that background results are delivered automatically when complete.
- Removed guidance encouraging repeated `jobs://` polling and clarified `job` with `poll` should be used only when a task is blocking.
- Changed the bash tool confirmation message to recommend doing other work while waiting for background jobs and polling only if needed.
This commit is contained in:
can1357
2026-05-12 03:20:47 +02:00
parent 975c0eacdb
commit 8fb0495017
4 changed files with 10 additions and 17 deletions
+3 -1
View File
@@ -326,7 +326,9 @@ export class BashTool implements AgentTool<BashToolSchema, BashToolDetails> {
}
lines.push(`Background job ${jobId} started: ${label}`);
lines.push("Result will be delivered automatically when complete.");
lines.push(`If blocked, use \`job\` with \`poll\`; inspect with \`read jobs://${jobId}\` or cancel with \`job\`.`);
lines.push(
`You can use \`job\` to poll until complete, but prefer to continue with another task in the meanwhile if it's not blocking.`,
);
return {
content: [{ type: "text", text: lines.join("\n") }],
details,