feat(tui): one-line queue strip and /queue management panel - #71
Merged
Conversation
Queued prompts now collapse to a single strip row regardless of how many lines they span — collapse() before truncate() in both the strip rows and the overflow tail preview keeps the rendered rows in sync with queueStripHeight's layout and mouse-math budget. /queue opens a dedicated full-area manager over the same queue state: jk/updown select, hl/leftright reorder (priority — head sends first), d→y gated delete, and enter sends the selected prompt ahead of the queue when idle (refused mid-turn and while disconnected). The strip stands down while the panel owns the queue, and the turn-end / post-reconnect drain now clamps the panel selection like every other queue mutation. F1, README, and the /new drain-gate note teach the new surface.
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
Two changes to the prompt-queue UX:
collapse()now runs beforetruncate()in both the strip rows and the overflow tail preview, so rendered rows always matchqueueStripHeight()'s layout/mouse-math budget. (RED-first: a 3-line queued prompt previously rendered 4 rows against a budget of 2.)/queuemanagement panel. A dedicated full-area window over the same queue state:↑↓/jkselect ·←→/hlchange priority (head sends first)d→ytwo-step gated delete (confirmQueueDelete)⏎sends the selected prompt ahead of the queue when idle; refuses mid-turn and while disconnected with a note naming the alternative^Qstrip stands down while the panel owns the queue (no double surface)The turn-end / post-reconnect drain (
sendQueued) now clamps the panel selection like every other queue mutation. F1 help card, README, and/new's drain-gate note teach the new surface.Release gate
panelSelrace) + 2×P3 → all fixed; key routing / layout contract / send-now guards / approval-capture precedence verified clean.Tests
gofmt,go vet,golangci-lint0 issues,make test(-race) all packages green, including theTestE2EAllCommandscontract case for/queue.