Repository navigation
fix(fork): show and edit queued messages only in their view in Chat mode - #274
Merged
Merged
Conversation
|
This PR changes the test suite by +18 test cases (browser +14, unit +4, server 0). New browser test files: Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
Thread transfer impact
This comment will update automatically after the next completed run. |
Failing tests. In Chat mode the main list and each sub-thread list every queued message of the thread: a main-list message shows in every sub-thread, a reply shows in the main list and in other sub-threads, and a reply's run shows in the main list as "Queued message" while its message is still on the way. A queued reply cannot be edited in its reply box, and a reply's queue offers a shortcut that does not run there. Edit hook tests cover one edit per thread owned by the view that lists its run. Fake threads can now carry projection messages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each Chat view (the main list, or one sub-thread) listed every queued message of the thread. A queued message now shows only in the view where it belongs: a typed reply in its sub-thread when the loaded history shows that sub-thread, anything else (main-list typing, agents, tasks, wakes, slash commands) in the main list. A run whose message has not arrived yet shows in no view; the sending view keeps its own Saving row. The count, footer and queue keys follow the same rows. Pending guest messages show in the main list only, and a reply view offers no queue shortcuts. Normal mode still lists every queued message. The thread keeps one queued-message edit, owned by the view that lists the message, judged from its reply record: a queued reply is edited in its reply box in Chat mode and in the main box in Normal mode, and an open edit moves with it across a mode switch. Another view cannot start a second edit meanwhile, only the owning composer shows the save in flight, the message's current box gets unsaved text back when its run leaves the queue, and a collapsed queue keeps the edited row on screen at its queue position. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
orbitingflea
force-pushed
the
feat/queued-message-scope
branch
from
November 24, 2026 20:25
dbe4fc0 to
0a96260
Compare
This was referenced Nov 24, 2026
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.
Behaviour change
Behaviour change: yes, Chat mode users see queued and guest messages only in their view and edit queued replies in their reply box.
Why
Scope Chat mode queues and edits by view. Before, footers listed all runs, missing messages showed "Queued message", and tooltips named an unused key.
What changed
queuedRunsScope.tsmaps loaded user replies to sub-threads, other runs and guest messages to the main list, and hides message-less runs.subThreadsState.tsreads sub-threads outside React.QueuedRunsControl.tsxfilters rows, keeps first and edited rows when collapsed, and announces whole-queue position.ChatView.tsxwires counts, keys, tooltips, and ownership; drops the edit block withsubThreadReply.ts.useQueuedRunEdit.tstracks ownership by reply record past dequeue, locks other boxes, keeps them enabled on save, and returns text to the message's box.Scope
Queued-only sub-threads skip "All replies" until run; Reply opens them. As on
main, "Saving" is uncounted and"/word "goes to the main list.Tradeoffs
One edit per thread avoids shared drafts and lost text. Queued replies to agent answers with unloaded questions stay in the main list for reachability over matching the Working line.
Blast Radius
Chat mode queue UI and edits; Normal mode unchanged.
Verification
New tests failed on
mainand pass. Related tests and non-test checks pass; one upstream timeout in changed-files (details).Verification details
test/fakeEnvironment.tsso fake threads can carry projection messages.mainand passes here.mainand pass here.QueuedRunsControl.browser.test.tsx. "opens queued images in the existing gallery" times out on a click when the check runs all 11 browser test files at once. Those 11 files pass when run together directly (148 of 148), and that test passes alone in about 0.57 s, matchingmain. Desktop and phone-width screenshots of the main list and a reply view are unchanged and still look right.