Repository navigation
Conversation
The poll pass decides a pane may take a message from a capture taken before the paste, then presses Enter up to a second later without looking again. Claude takes messages mid-turn, so an agent can put a question up in between. The dialog swallows the paste and takes the Enter as its answer: a multi-select ticks the box under its cursor, a single-select picks its first option, and a review page submits. The submit now captures the pane once more and, when the session's rules read a dialog there, leaves the Enter unpressed and reports ErrSubmitHeld, which drops the message the way any failed send does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
Gate Inbox sometimes answers a Claude Code question on its own, ticking a multi-select box, picking a single-select option, or submitting a stepper's review page, when no one chose anything. Each time, the agent then carries on with an answer the user never gave.
Summary
SendTextAsyncnow takes aholdcheck that the driver runs on a fresh capture just before the Enter. When it reports a dialog, the Enter is not pressed and the send settles withErrSubmitHeld. The message is then dropped the way any failed send is, and its sender is told.safeToInterruptalready uses: the session's rules match a waiting state. All three async senders (queued messages, pending inputs, the usage-limit continuation) get it. The synchronousSendTextis unchanged.Test plan
TestSendTextAsyncLeavesTheEnterUnpressedOnADialog: against a real tmux pane showing a legend with echo off, the paste arrives, the submit settles withErrSubmitHeld, and no carriage return reaches the pane. It fails with the guard disabled (submit = <nil>).SendTextAsynctests pass with a nil hold.go vet ./...clean. The full suite passes all 68 packages on a scratchTMUX_TMPDIR.🤖 Generated with Claude Code