Repository navigation
feat(tui): inspector pane shows expanded tool detail and workspace views at Wide+ (L3) - #104
Merged
Merged
Conversation
…ews at Wide+ (L3) Slice L3 of docs/plans/tui-redesign.md (ENG-853), stacked on U9. `PanePref::Auto` shows the inspector at Wide and Ultra; `ToggleInspector` (Alt-I, palette) cycles it like the rail toggle. The pane holds the focused pane's Attention/Changes body (the transcript keeps the replaced session) or every expanded call's summary row plus `tool_expanded_lines` body, else a hint; content is bounded to the pane height, no scrolling yet. One path: `ToolRowContext::inline_detail` gates the inline body, so nothing is duplicated. Column blit measures each row once (`render::text_width`). Legacy bench scenes hold the inspector off; new `tool_calls_32_expanded_inspector`.
…treaming ceiling Interleaved A/B on a pinned core showed streaming_run_on_32kb at 450-461 us with the byte-scan fast path against 419-427 us for the parent; removing it alone returns 418-429. wrap_line measures every span, so a second scan over the bytes costs more than the width table saves. The blit rework's gains on the sidebar and wide scenes do not depend on it.
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.
L3: inspector pane shows expanded tool detail and workspace views at Wide+
Spec: docs/plans/tui-redesign.md (tier table Wide row; slice L3) Linear: ENG-853 (parent ENG-843)
Stacked on #103 (U4). Review the top two commits only until #103 merges.
What changed
PanePref::Autofor the inspector resolves to shown atTier::Wide | Ultra(geometry from L1). NewCommand::ToggleInspector(Alt-I, palette "toggle the inspector pane") cyclesAuto → Shown → Hiddenlike the rail toggle.inspector_pane(app, cache, pane, width, height)renders, for the focused pane's session: the Attention/Changes body when that workspace view is active (the transcript pane then keeps showing the session the view replaced, viashown_view), else every expanded tool call's summary row +tool_expanded_linesbody in transcript order, else a muted hint naming the real expand chord. Bounded to pane height with… N rows more.tool_expanded_lines/attention_body/changes_body.ToolRowContext::inline_detail(false while the inspector is on screen) is the only switch: inline emits summary rows only, the inspector reads the same cachedToolRow(TranscriptCache::tool_row, rejecting stale keys) so JSON is parsed once.view.rscolumn blit measures each row once and presizes the merged span vector (was re-measuring per column): with_sidebar 36.1 → 32.4 µs, wide_160x48 32.5 → 29.3, sessions_200 30.6 → 28.2.wide_160x48_full,resize_ultra, and the newtool_calls_32_expanded_inspectormeasure the shipped layout.text_widthprintable-ASCII fast path in the first cut cost +8 % onstreaming_run_on_32kbin interleaved A/B (wrap_linemeasures every span; the second byte scan cost more than the width table saves). Removed; the blit gains do not depend on it.Goldens
*-{200x60,320x90,480x120}frame gains theINSPECTORcolumn and the transcript inset shrinks; transcript text verified identical row-for-row excepttools-expanded-{200,320,480}, where detail rows leave the transcript for the inspector.80x24and120x40frames.How verified
cargo test --workspace1484 passed; qq-tui 280 → 284 lib, 5 → 6 golden. fmt, clippy-D warnings.Measurements (
target/qq-perf/tui-L3-2026-09-20/after-fixed.txt, pinned core)Not in this slice
architecture.md'sqq-tuibullet should mention the inspector as a per-frame pane fed by the shared tool-row cache.Docs
docs/design/layout.md§ Tiers, § Preferences, new § Inspector, § Evidence. Ledger receipt.Compatibility
ToggleInspector(Alt-I).