Repository navigation
fix(claude-tty): keep a question card open in a turn held for background work - #157
Merged
Merged
Conversation
…und work A turn held open for a background agent ends once Claude has written nothing for five minutes. When the agent's report woke Claude and it asked a question, Claude wrote nothing while the person answered, so after five minutes the turn ended, the card was cancelled and Claude was told to ask in chat instead. The hold now waits as long as a card Claude is held up behind is open, and counts the five minutes from the moment it is answered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
DoctorJacoby
added a commit
to DoctorJacoby/paseo-plugins
that referenced
this pull request
Oct 21, 2026
… asks it now The test raised its card from PreToolUse, which no longer opens one for a question. It now sends PreToolUse and then the PermissionRequest that carries the card, and reads the PermissionRequest's decision. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
Answering an
AskUserQuestioncard failed withPreToolUse:AskUserQuestion hook error: The user left these questions to be asked in chat…, and Claude then asked every question again in chat.It happens when a background agent's report wakes Claude inside a turn held open for it, and the person takes more than five minutes to answer.
The hold ends the turn after five minutes in which Claude writes nothing (
SUBAGENT_WAKE_MS).Claude writes nothing while it waits on a card, so the bound ran out under the open card, the turn ended,
cancelPendingcancelled the card, and the hook returned the ask-in-chat fallback.The answers the plugin wrote a moment later were never read.
Evidence
From the session that hit it (adapter log and Claude's transcript, UTC):
AskUserQuestionEnding a turn Claude never answered its background work in,silentMs: 303086; hook returns the fallbackNew test
goes on waiting while the question Claude asked for the agent that reported is still being answered:turn still opencheck, because the turn has already ended.tsc --noEmitis clean.Merge Danger
Door: two-way
Blast Radius: held turns
A held turn now stays open for as long as a blocking card is unanswered, so a session with an unanswered card in a held turn reads as busy until someone answers it or cancels.
Turns that aren't held for background work are unaffected.