Repository navigation
Resume an agent that was waiting without the restart nudge - #1937
Conversation
Only a terminal runtime can start a resume with no turn: a reopened ACP session is judged by its first turn, so every other transport keeps the nudge Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Next included review available in 4 minutes. View limit details
Comment |
PR Summary by QodoResume waiting PTY agents without a restart nudge
AI Description
Diagram
High-Level Assessment
Files changed (11)
|
Code Review by Qodo
1.
|
Marking it after launch could overwrite a turn begun during registration, and a running entry that kept the shutdown's waiting state would resume a crashed turn without its nudge Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #1849 — AI-4257
What & why
A daemon restart resumed every interactive agent with the restart nudge, even one that had finished its turn and was waiting. That started a turn nobody asked for, and every surface showed the agent as Working.
awaiting_input). The field is optional: an entry from an older daemon omits it and keeps the nudgeResumesIdleWithoutPrompt, is true only for the PTY runtimes (Claude, and Codex on its terminal transport). A waiting agent on one of those resumes with an empty prompt and is markedAwaitingInputat once, so the next restart's turn-boundary wait isn't left waiting on the quiet-turn detectorWhere to look
Both PTY launchers drop an empty prompt rather than passing
--and an empty argument, and the PTY factory pastes nothing for one. That is what makes the silent resume safe, and each launcher now has a test pinning it.Verification
Prompt is not nullinstead ofIsNullOrEmptyapp-server,pending, null)ResumeLedgerStoreTests, including an entry with the field strippeddotnet publish -c Release🤖 Generated with Claude Code