fix(agents): prefer background completion wake over polling (#60877)

* fix(agents): prefer completion wake over polling

* fix(changelog): note completion wake guidance

* fix(agents): qualify quiet exec completion wake

* fix(agents): qualify disabled exec completion wake

* fix(agents): split process polling from control actions
This commit is contained in:
Vincent Koc
2026-04-05 03:17:10 +09:00
committed by GitHub
parent 0c3ec064f1
commit 6f2e804182
6 changed files with 26 additions and 2 deletions

View File

@@ -120,6 +120,7 @@ function resetPollRetrySuggestion(sessionId: string): void {
export function describeProcessTool(params?: { hasCronTool?: boolean }): string {
return [
"Manage running exec sessions for commands already started: list, poll, log, write, send-keys, submit, paste, kill.",
"Use poll/log when you need status, logs, quiet-success confirmation, or completion confirmation when automatic completion wake is unavailable. Use write/send-keys/submit/paste/kill for input or intervention.",
params?.hasCronTool
? "Do not use process polling to emulate timers or reminders; use cron for scheduled follow-ups."
: undefined,