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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user