tweak: background agent prompting to avoid polling issues (#30790)

This commit is contained in:
Aiden Cline 2026-06-04 14:18:03 -05:00 committed by GitHub
commit cc9b73b0bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View file

@ -29,14 +29,15 @@ const BACKGROUND_DESCRIPTION = [
"You will be notified automatically when it finishes.",
].join(" ")
const BACKGROUND_STARTED = [
"Background task started. You will be notified automatically when it finishes.",
"Do not poll for progress, ask the task for status, or duplicate its work by investigating the same files or topic yourself.",
"Continue only with non-overlapping work, or briefly tell the user what you launched and stop.",
"The task is working in the background. You will be notified automatically when it finishes.",
"Do not poll for progress, ask the task for status, or duplicate this task's work — avoid working with the same files or topics it is using.",
"Work on non-overlapping tasks, or briefly tell the user what you launched and end your response.",
].join("\n")
const BACKGROUND_UPDATED = [
"Additional context sent to the running background task.",
"The task is still running; wait for the automatic completion notification.",
"Do not poll for progress or duplicate its work.",
"The task is still working in the background. You will be notified automatically when it finishes.",
"Do not poll for progress, ask the task for status, or duplicate this task's work — avoid working with the same files or topics it is using.",
"Work on non-overlapping tasks, or briefly tell the user what you sent and end your response.",
].join("\n")
const BaseParameterFields = {