Repository navigation
feat(tui): sessions rail with adaptive density and a shared strip data pass (U9) - #101
Merged
Merged
Conversation
…a pass (U9) Slice U9 of docs/plans/tui-redesign.md (ENG-852), stacked on U2. `rail_entries` walks the sessions once and both the rail and the agent strip consume it, so group order and counts cannot drift. Density follows the tier: one row per session (glyph, title, right-aligned accent unread badge) at Regular, plus a muted tail + `$cost` row at Wide and Ultra for sessions with a live status or reported spend. Glyph colors follow the attention rule (warning/error only for a real pending or failed state). New `Scene::Sessions` pins the rail at all five golden sizes; no existing golden moved; render bench within noise (sessions_200 33.6 -> 31.5 us).
lg2m
force-pushed
the
feat/eng-852-u9-sessions-rail
branch
from
September 21, 2026 07:20
cf2c0a8 to
6ffd434
Compare
This was referenced Sep 21, 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.
U9: sessions rail with adaptive density and a shared strip data pass
Spec: docs/plans/tui-redesign.md (tier table, slice U9) Linear: ENG-852 (parent ENG-843)
Stacked on #100 (U3). Review the top commit only until #100 merges.
What changed (
crates/qq-tui/src/view/sidebar.rs)rail_entries(), produces groupedRailEntrys (group, unread, live flag, direct spend). Bothsidebar()andagent_strip()consume it; the grouping logic exists once.RailDensity::of(tier): Compact/Regular → one row per session (glyph, name, right-alignedN newbadge); Wide/Ultra → a second muted row with the live tail (live_status_line: approval → tool verb → streamed text → activity) and the session's cost right-aligned ($0.12, fromSessionSummary.accounting.direct). Quiet sessions with nothing to show stay one row at every density, which is what keeps every existing golden still.accentmarks an unseen finish.layout.rsuntouched:PanePref::Shownalready forces the rail at Compact whenwidth − rail ≥ 32; a test now pins it.Scene::Sessions(8 sessions across all four groups, child with ashellapproval, two streaming, unread finish with spend, two idle, one seen-done) and fivesessions-*goldens; 80×24 shows the strip.Rail at 200×60 (excerpt)
How verified
cargo test -p qq-tui --all-features279 lib + 5 golden (40 frames); fmt; clippy-D warnings.Measurements (
target/qq-perf/tui-U9-2026-09-20/, pinned core)A first cut with per-session lookups in the planner regressed sessions_200 to 37.0; folding live flag and cost into the single pass brought it under baseline.
Design notes
Tier, not raw rail width: the rail is 28 columns from 112 cols on, so width alone cannot separate Regular from Wide.Docs
docs/design/layout.mdnew § Sessions rail. Ledger receipt.Compatibility