Skip to content

feat(tui): redesign the dock, transcript and sessions column (R1-R3) - #519

Merged
lg2m merged 17 commits into
mainfrom
feat/tui-redesign-r1-r3
Nov 1, 2026
Merged

lg2m merged 17 commits into
mainfrom
feat/tui-redesign-r1-r3

Conversation

@lg2m

@lg2m lg2m commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Change

Implements v0.1.11 R1–R3 (ENG-1110). The TUI moves onto the R0 design frames.

  • R1, dock. The header row and the agent strip are gone. From bottom to top, the dock is now:
    • a status line: title · model effort · ctx% · $cost · mode, with the workspace on the right; connecting / offline appear in warning;
    • a ┃ rail composer whose color follows the approval mode (faint for read-only, accent for ask/auto, warning for full);
    • ┋ queued drafts and waiting steers;
    • a panel for approvals, questions, pickers, the goal form, goal-check consent and the goal summary;
    • a state rule (◐ editing · 14s ── ◇ 1 needs you ^G, or session counts at Compact).
  • R2, transcript.
    • Messages lose their labels: prompts are ┃ + bold, answers are indented, and the streaming tail gets a ▍ caret.
    • Tool rows use past-tense verbs and the metric sits right after the subject. Failed shells show ✕ exit N with a 3-row │ tail.
    • Settled routine calls fold into a turn receipt. Edits and failures keep their own rows.
    • Agent lanes go under spawns.
    • Reasoning collapses to ∴ thought for Ns. There is no ✓ … ttft line.
    • Approvals appear only in the dock, and there is one blank row between blocks.
  • R3, sessions column and theme. The sessions column is borderless and numbered, on the surface fill: 32 columns at Regular, 42 at Wide, full height, grouped NEEDS YOU / WORKING / RECENT. The palette gains a derived faint role (muted blended halfway toward the background). The inspector opens only on its toggle.
  • The first frame shows a one-line banner with hints.
  • docs/design/{layout,transcript,theme}.md, docs/guide/tui.md and the QA runbook describe the new frames.

Verification

  • cargo xtask check passed on d775d73.
  • All 60 goldens were regenerated. A side-by-side diff against tests/design/ matches in layout; the remaining differences are bench-fixture data (session titles, model name, fixture tool output).
  • New tests:
    • every state glyph is distinct;
    • each rule-state color and each composer-rail mode color is asserted;
    • faint derivation;
    • no header, label or permanent-hint strings in any scene at any size;
    • the dock sits on the last rows at every size;
    • the transcript gains rows (+2 at 80×24, where the strip existed; +1 at 120×40).
  • About 80 view tests were rewritten to the new frames. One test was deleted with its feature (the completion-line plan/route telemetry).
  • Render bench against main, interleaved, taskset -c 2, 3 × 1000 samples, 160×48, medians:
Scene main branch Δ
steady_state_frame 21.4 µs 14.8 µs -31%
steady_state_with_sidebar_frame 32.9 µs 28.7 µs -13%
streaming_focused_delta_to_frame 34.5 µs 23.5 µs -32%
streaming_run_on_32kb_delta_to_frame 403.1 µs 381.4 µs -5%
streaming_background_8_delta_to_frame 25.4 µs 16.9 µs -33%
children_20_with_sidebar_delta_to_frame 52.0 µs 59.3 µs +14%
keystroke_to_frame 25.7 µs 16.7 µs -35%
wheel_scroll_4_rows_to_frame 28.0 µs 14.0 µs -50%
golden_path_first_minute_total 39.1 µs 34.0 µs -13%
tool_calls_32_rows_frame 23.6 µs 18.5 µs -22%
tool_calls_32_folded_frame 12.4 µs 15.0 µs +21%
tool_calls_32_expanded_frame 53.0 µs 23.3 µs -56%
tool_calls_32_expanded_inspector_frame 37.4 µs 35.4 µs -5%
sessions_200_with_sidebar_frame 27.9 µs 37.2 µs +33%
picker_open_close_cycle 35.3 µs 44.8 µs +27%
resize_horizontal_full_frame 28.9 µs 475.2 µs +1544%
compact_80x24_frame 19.5 µs 11.6 µs -41%
wide_160x48_full_frame 29.7 µs 27.1 µs -9%
resize_ultra_480x120_full_frame 113.2 µs 574.5 µs +408%
switcher_50_open_filter_3_close_cycle 86.8 µs 130.6 µs +50%
rail_50_sessions_200_agents_frame 30.9 µs 44.4 µs +44%
rail_50_sessions_200_agents_8_streaming_delta_to_frame 37.2 µs 59.3 µs +59%
keystroke_with_focused_and_7_background_streams_to_frame 38.9 µs 27.7 µs -29%

Known impact

  • Budget overruns against the "no gate more than 5% slower" rule:
    • resize_horizontal 29 → 475 µs and resize_ultra 113 → 575 µs. Prose now fills the pane instead of a 100-column measure, so every width change relays out the cached markdown. This is inherent to "the screen is the application", and it stays under 1 ms per resize.
    • The switcher cycle is +50%; the rail with 200 agents is +44% / +59%, even after the visible-rows-only fix in the last commit; picker open/close is +27%; 200 sessions with the sidebar is +33%.
    • Folded tools are +21% and 20 children +14%, from the receipt and lane layout.
    • Most hot paths got faster: steady, keystroke, streaming and wheel are 30–50% quicker.
  • The R0 design renderer (src/design.rs, tests/design/) is kept as the reference, because the bench fixtures use different data and don't match it line for line. R3's "delete it" step is left for a follow-up that aligns the fixtures.
  • Not built here:
    • single-letter goal keys; the dock advertises the /goal check / /goal pause slash commands instead;
    • the e full diff key in the approval dock;
    • 8-row inline diffs for the newest edit in a running turn.
  • The goal rule no longer shows a "N left" countdown or a /goal resume hint.
  • The design sign-off review in a real terminal (ink and terminal themes) has not been done for the implemented frames.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T00:43:16.358890Z ce2b4c6 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d775d73261

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/view/overlay.rs Resolved
Comment thread crates/qq-tui/src/view/chrome.rs Resolved
Comment thread crates/qq-tui/src/view/overlay.rs Resolved
Comment thread crates/qq-tui/src/view/chrome.rs Resolved
Comment thread crates/qq-tui/src/view/overlay.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf28bcd844

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/view/chrome.rs Resolved
Comment thread crates/qq-tui/src/view.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5203dc0e43

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/view.rs Resolved
Comment thread crates/qq-tui/src/view/overlay.rs Resolved
Comment thread crates/qq-tui/src/view/overlay.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d23b674eb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/view/overlay.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 92755fa221

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/view/overlay.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a34c18e11e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/view/overlay.rs Resolved
Comment thread crates/qq-tui/src/view/tools.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: afa48665cc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/app.rs Resolved
@lg2m

lg2m commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c96f4350b4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/view/chrome.rs Resolved
@lg2m

lg2m commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ce2b4c6d4c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/app.rs Resolved
@lg2m
lg2m merged commit 9567eb2 into main Nov 1, 2026
11 checks passed
@lg2m
lg2m deleted the feat/tui-redesign-r1-r3 branch November 1, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant