Route mid-run Enter through the live reactor - #744
Merged
TheGreatAxios merged 5 commits intoSep 1, 2026
Merged
Conversation
TheGreatAxios
commented
Aug 31, 2026
TheGreatAxios
left a comment
Collaborator
Author
There was a problem hiding this comment.
Review · Comment
Mid-run Enter delivers through Agent.deliver into the live reactor; idle follow-up still sends; session rotation drops queued input.
GitHub rejects self-approve on this PR. No blocking findings.
TheGreatAxios
commented
Aug 31, 2026
TheGreatAxios
left a comment
Collaborator
Author
There was a problem hiding this comment.
Critic · Comment
Required deliver has no send fallback (src/tui/live-session-port.ts:52). Steers go through Agent.deliver (src/tui/runner.ts:2280). /clear drops instead of draining (src/tui/runtime-bridge.ts:1233).
No blocking findings.
TheGreatAxios
commented
Aug 31, 2026
TheGreatAxios
left a comment
Collaborator
Author
There was a problem hiding this comment.
Greybeard · Comment
deliver is required on the port and hosts. Kind routing lives in routeQueuedDelivery. Generation bumps only on session rotation, not interrupt.
Boundary delivery used to fall back to ordinary send when production omitted the transport, so a queued mid-run Enter started a second turn. Require the transport, steer via Agent.deliver, and drop queued input on session rotation.
Live parent tool.boundary still injects via Agent.deliver. Steers left at idle, idle-with-fleet, or after interrupt must send so they share sendQueue, inFlight, and token refresh with follow-ups.
Ingest used to start before enqueue, so two steers at one boundary could reverse if the second mention resolved first.
Leftover hops went through sendUserPrompt with no deliveryGeneration check, so a /clear mid-ingest still landed in the new session. Capture generation at leftover hop time and skip send and recall after ingest when the generation has bumped. Operator Enter stays ungated.
TheGreatAxios
force-pushed
the
cl-7268-route-tui-boundary-steers-through-the-active-reactor
branch
from
September 1, 2026 04:14
517d6ad to
9d9dacc
Compare
TheGreatAxios
enabled auto-merge
September 1, 2026 04:14
The required deliver hop was already on older fixtures. Two Codex hide tests from main did not have it after rebase, so typecheck failed.
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
Agent.deliverinto the live reactor instead of starting a second send./clearand/newdrop queued input so it cannot enter the next session.Verification
bun run typecheck,bun run build, andbun run testpasstool.boundaryusesdeliver, notsendImmediate; session rotation leaves the queue empty and idleFixes CL-7268