feat(ui): input-dock polish — queue, recall, mouse scroll, live status#15
Merged
Conversation
Stage a submit while a turn is in flight as a one-message queue (a faint 'queued' chip above the dock); Up-arrow in an empty dock recalls it to edit or discard; it fires at turn end via a new TurnRunner.on_idle hook. Mouse-wheel scroll drives the same cursor-line model as PageUp/PageDown. The status bar reads live values per render (model, profile, cloud indicator, context %), so a mid-session /model use or /profile use reflects immediately. ASCII fallbacks for the new glyphs. Adds DESIGN section 31.18.
lavindeep
added a commit
that referenced
this pull request
Jul 2, 2026
feat(ui): input-dock polish — queue, recall, mouse scroll, live status
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.
Branch 9 (final feature branch) of the full-screen TUI rework (UI v2, design §31.18).
What
The input-dock polish slice:
queued:chip above the dock; it fires at turn end via a newTurnRunner.on_idlehook (_mark_done→on_idle→_fire_pending, which clears the slot before dispatching → no loop). A Ctrl-C that cancels the turn also drains the slot ("stop everything")._PaneControlinterceptsSCROLL_UP/DOWNinto the same cursor-line model as PageUp/PageDown (3 lines/notch).status_fn()per render (oneruntime.status()call), so a mid-session/model use(cloud indicator),/profile use,/cwd set, and context growth reflect immediately; the cloud indicator stays driven byis_egressing(unspoofable).branchstays build-time.The
_submitkeybinding was refactored to extract_dispatch_line(the slash/turn routing), preserving the approval-gate-first //exit/ slash-routing order from branches 6–8. Default (non-app) session stays byte-identical (all new params default absent).Tests
Queue stage/fire/replace, Up-arrow recall + both passthrough cases, mouse scroll pin/resume + non-scroll delegate, live status + static fallback, ASCII chip, and a real-thread
_mark_done→on_idleintegration test. Phase gate green: ruff + format clean, mypy --strict clean (80 files), 1428 passed.Live validation (gemma4:31b-cloud)
Staged a follow-up during a turn →
queued:chip; it auto-fired at turn end. Up-arrow recalled a staged message into the dock. Ctrl-C cancelled a turn and drained the queue (the staged line did not fire). Live cloud indicator confirmed.DESIGN §31.18 added.