Repository navigation
queues: both lists of waiting messages are bounded, keep their scroll, and fold under their count - #1033
Merged
Conversation
…r its count
Several queued messages took too much of the Rendered view. The queue's rows
are now bounded at min(8.5rem, 20dvh) (two rows and part of a third, so a cut
row says there is more) and scroll; the whole list is a <details> under its
count line ("3 messages waiting ...", or "N messages not sent" when only
failures are listed), which a tap folds to that line. A folded queue stays
folded for that window on that device (localStorage, keyed by the list's URL),
applied in the same task as every draw: the first before the pinned composer
is shown, so a folded load does not shift, and each re-read's, so the poll
never unfolds it. A re-read also keeps the rows' scroll position, which it
used to reset to the top.
Tests: e2e send-queue "a long queue ..." at 390x844 touch and 1280x800 (six
queued messages: rows <= 136px, whole queue <= 30% of the screen, rows
scroll, scroll kept across a re-read, fold survives a re-read and a reload
with no layout shift, the last row cancelled through its menu). Red on
origin/main on the bound (160px), the kept scroll (0) and the fold; green
here. Go: send_queue_fold_test.go, red on origin/main, green here.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…olds too
The "Queued in Claude Code" region gets the send queue's treatment: its
rows (not the region, which used to scroll with its label inside) are
bounded by the same rule, queuedRowsBound (min(8.5rem, 20dvh)), and scroll;
the list is a <details> under its count line ("Queued in Claude Code · 3"),
folded per window on that device under its own localStorage key
(muster.ccqueue.closed: plus the view's socket path). The view applies the
fold and restores the rows' scroll in the same task as every patch of the
region (ccqKeep), and the first list a socket hears is a patch, so a folded
list is never painted open on a load.
Both lists full and open on a 390x844 phone took 398px (47% of the screen)
with each bounded alone; while both are open each one's rows are bounded at
min(6rem, 12dvh) instead (input.css), and the pair measures 318px (ccq 141 +
queue 177, 37.7%), the transcript 295px.
Tests: e2e send-queue "Claude Code's own long queue ..." at 390x844 and
1280x800, and "both lists full" at 390x844; red on origin/main, green here.
Go: cc_queued_fold_test.go, red on origin/main, green here.
Co-Authored-By: Claude Opus 5.5 (1M context) <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.
What
With several messages waiting, two lists in the Rendered view took too much vertical space: muster's send queue, and the "Queued in Claude Code" region (messages Claude Code itself holds). Both now get the same treatment.
queuedRowsBound:min(8.5rem, 20dvh), which shows two rows and part of a third so the cut row says there is more. The rows scroll (overflow-y-auto,overscroll-contain).<details>, drawn open, with its count line as the<summary>: "6 messages waiting …" (or "N messages not sent" when only failures are listed) and "Queued in Claude Code · 6". A tap on the line folds the list to it.muster.sendqueue.closed:plus the list's URL, andmuster.ccqueue.closed:plus the view's socket path. Each fold is applied in the same task as each redraw:fold/put) runs on its 3 s re-read and once before the pinned composer is shown.ccqKeep. The first list a socket hears is itself a patch.min(6rem, 12dvh)(CSS:has()inweb/css/input.css). Folding either list gives the other its full bound back.<details>still folds natively and starts open.docs/sending-and-step-up.mddescribes both.Measured heights (390×844 phone, six messages in each list)
#mv-log)The box and Send stay on screen. The test asserts the two lists together are at most 40% of 844px and the transcript at least 20%.
Tests
Everything is in
e2e/tests/send-queue.spec.ts. The "a long queue …" tests run at 390×844 (touch) and at 1280×800.send_queue_fold_test.go(3 tests)cc_queued_fold_test.go(2 tests)Mutation checks (local). For the "Queued in Claude Code" list, each mutant failed with its own guard's message:
For the send queue (from round 1), removing the fold from the re-read, or delaying the fold on load, each made its own guard go red.
Also run locally, all green: the full
send-queue.spec.ts(46 tests),cls.spec.ts(24 tests), the existing "Queued in Claude Code" tests inmirror-chat.spec.ts(3),go test ./internal/ui/,make css-checkandmake leakscan.Known limits
:has()can't hold a second:has()to tell.🤖 Generated with Claude Code