Repository navigation
Inbox: the reply's target follows the last agent to write until the person types or picks - #3840
Merged
Merged
Conversation
…erson types or picks In a thread with more than one agent, an empty reply box now follows the newest agent message whose session can take a reply, so the chip (and a phone's control) moves when another agent writes while the thread is open. The moment the reply holds anything (a character, a file, a comment, an answer picked, a saved draft) or the person picks a target, it stays put. Deleting the words without a pick, or a Send, lets it follow again. An ended agent, the person's own messages, the Inbox's notes, a permission prompt and a routine's change line move nothing. Hand-off and taken-over threads keep the words' own default. One-agent threads are unchanged; a second agent writing into one while the person types shows the chip on the agent the words were going to. A Send now keeps the words on the message the chip's default answered at the press, so a thread read landing while it is on its way cannot send them to a newer writer. The choice moves out of Thread.tsx into thread/replyAim.ts.
…ving pick and on dictation The chip follows the newest agent writer even when its session ended, as the default always did: it says "ended" and Send stops once and opens the list. Skipping ended writers sent answers picked on an ended agent's question to a live agent the window never named, and replies to a session the Inbox wakes itself (off the live list after an hour or a restart) to another agent. A pick still saving and a take of dictation under way now lock the choice too. The three tests changed for the old skip are back to main's versions. New tests: the closed foot's Send with an ended asker's answer, a wake-only session off the live list, an answer and a new message in one thread read, a refused Send then retry, a thread switch and back, a followed agent that ends, a saving pick and dictation.
…et-follows # Conflicts: # tests/inbox-size-ceilings.json
… the choice A pick that came back with its draft (another thread and back, a reload) was marked as the draft's and let go once the words were deleted, so the chip moved to the newest writer. Only a choice the box's own content fixed lets go when the box empties now; a pick or a draft's choice holds until a Send or a Discard. A quote with nothing typed (the Reply arrow on the person's own message) now counts as content: a newer agent message no longer moves the chip under a visible quote line.
backnotprop
marked this pull request as ready for review
November 23, 2026 03:23
1 task
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
In an Inbox thread with more than one agent, the reply's target now follows the newest agent message while the reply is empty and nobody has picked. On a computer the target is the chip at the start of the reply box; on a phone it is the agent control in the box's row. Before, the target was fixed when the box opened.
main. An ended agent's thread still takes a message that waits for it. Sessions the Inbox wakes itself (Codex, T3, Qwen, Antigravity) drop off the live list after an hour or an Inbox restart, but they can still take a message.main. A retry after a refused Send keeps its target and its idempotency key.The logic moves out of
Thread.tsxintopackages/inbox/thread/replyAim.ts.Thread.tsxshrinks by 35 lines, and its ceiling is lowered to match.Tests
packages/inbox/replyFollow.test.tsx(DOM, 21 tests) covers:followedSessionrules.packages/inbox/replyFollowVoice.test.tsx(DOM, 1 test): dictation holds the target while recording and while transcribing.replyRecipient.test.tsxandendedSession.test.tsxare unchanged frommainand pass.replyFollowreplyFollowVoicereplyRecipientendedSessionmultiAgentNamesphoneComposerreplyFootPhonevoiceKeptWordsheldPicktests/inbox-structurescripts/dom-test-allowlisttsc --noEmitis clean forpackages/inbox.