Repository navigation
fix(pause): card replies always reach the agent; the server asks on the card for user-only steps - #494
Open
AmrDab wants to merge 4 commits into
Open
fix(pause): card replies always reach the agent; the server asks on the card for user-only steps#494AmrDab wants to merge 4 commits into
AmrDab wants to merge 4 commits into
Conversation
An outcome that settles while no tool call is waiting for it (the call was told "waiting", the agent moved on, or the host cancelled the call) is kept for the session that asked and handed over once: to a re-call of the pause, or ahead of that session's next tool call, whichever comes first. A re-call matches the pending or settled pause by message alone. The tool call honours the host's abort signal. A reply with nothing pending is logged (pause.reply_dropped). Resume or a choice clicked with text in the card's box (Windows and macOS) sends the text too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a call ends in a refusal only the user can clear (macOS secure input, a system dialog holding the keyboard, a locked screen, a denied Screen Recording permission), the server opens the pause card itself with its own text, waits up to 45 s, and returns the answer in the same result next to the refusal, so the agent retries the step. If the user is still busy the result says how to keep waiting (pause_for_user with that message re-attaches). No second card opens over a pending one, and none under the test fence. The pause_for_user "waiting" text now leads with the instruction and no longer points at the chat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the pill has been idle for 30 s after a tier-1+ act, it now says "agent stopped · its message is in your chat" for 10 s before it hides. It uses the pill's own activity line (small fixed width, marquee), with no glow and no outline. Nothing is shown when no act happened since the last hide, or while a pause is pending. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…'s time A host limits a tool call to about 60 s. The refusal card waited a fixed 45 s after the handler had already run, so a slow refusal plus the card could pass that limit. It now waits for what is left of 45 s since the call began (at least 1 s), then says how to keep waiting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Three changes to the pause card (
systemactionpause_for_user). One commit each, plus a follow-up:agent stopped · its message is in your chatfor 10 s before it hides.Why
A live Windows run with a Sonnet agent had two failures:
The code showed why:
finish()kept an outcome only for a re-call of the SAME key within 5 minutes. The key was message + choices + input. Nothing else read it, so a reply was dropped when the agent moved on, ended its turn, reworded its re-call, or had its call cancelled by the host. The handler also ignored the abort signal.banner.ps1/overlay.swiftdropped the text in the box when Resume or a choice was clicked.waitingnext-text ended by steering to chat.How
detach). The MCPextra.signalis threaded throughasPauseOwner.takeSettled(owner)hands it over once.pause.reply_deliveredandpause.reply_droppedare logged, without text.The user answered your question on the clawdcursor card ("…"): "…". The user's words are quoted as theirs, not as screen text.busyechoes the card's choices and input.waitingtext now leads with the re-call, and no longer points to chat.<choice>: <text>; End task is unchanged. CI compilesscripts/mac/*.swift.Tests
pause-reply-delivery.test.ts(9):refusal-card.test.ts(12):banner.test.ts(+6): the stopped note and its edge cases, plusSend-Clickrun in real Windows PowerShell.pause-card.test.ts: the old "different options = different question" test is replaced by re-attach + busy-echo tests.typecheck, typecheck:tests, lint (0 errors, the 3 warnings as on main),
npm run test:ci: 4322 passed, 3 failed, 80 skipped. The 3 failures arerepo-invariants,telemetry(daily cap) anduser-turn(shared budget). All three pass when run on their own (92/92) and are not touched here; the full run was on a heavily loaded machine.Limits
pause_for_user. The pill note tells the user to look at the chat.No release: for the 2.4 train.
🤖 Generated with Claude Code