Skip to content

perf(tui): record the v0.1.11 baseline and pin the redesign frames (B1, R0) - #517

Merged
lg2m merged 8 commits into
mainfrom
feat/eng-1110-r0-b1-baseline
Oct 31, 2026
Merged

lg2m merged 8 commits into
mainfrom
feat/eng-1110-r0-b1-baseline

Conversation

@lg2m

@lg2m lg2m commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Change

First PR of the v0.1.11 plan (ENG-1104), order step 1: B1 (baseline, ENG-1106) and R0 (design frames, ENG-1110). The shipped TUI does not change.

  • B1. New render-bench scenes: switcher open and filter over 50 sessions, a 50-session rail with 200 agents (steady and streaming), and keystroke-to-frame while 8 sessions stream. benchmarks/tui/record_baseline.py drives the release qq in a pty against a loopback fake provider. It measures time to first frame, to a painted transcript (embedded server and warm daemon), keystroke echo under 8 streams, and warm and cold switch. The results table is in docs/plans/0.1.11.md under "B1 results". Every measured target is met.
  • R0. crates/qq-tui/src/design.rs (bench-support only) draws the target frames from section R. Its 16 scenes are the 12 existing ones plus fanout, switcher, approval-dock and first-frame, at all five golden sizes. Text goldens are in crates/qq-tui/tests/design/, and the ANSI gallery writes them to target/qq-tui-gallery/design/<theme>/. Frames tile the whole terminal at every size: the transcript takes every column the sessions sidebar does not (32 columns at Regular, 42 from Wide, flush right on the surface fill, following opencode's layout), and prose, rule and status line span the pane. The current goldens keep passing; R1–R3 move each scene to match its design frame, and R3 deletes the design renderer.

Review (design sign-off)

cargo test -p qq-tui --test gallery -- --ignored
cat target/qq-tui-gallery/design/ink/golden-path-120x40.ans
cat target/qq-tui-gallery/design/terminal/golden-path-120x40.ans

Also look at approval-dock, switcher, fanout, sessions-80x24 and first-frame. The plain-text versions are in the diff under crates/qq-tui/tests/design/.

Verification

  • cargo xtask check: passed on a240915 (fmt, lint, clippy, 398 qq-tui tests).
  • crates/qq-tui/tests/design.rs checks five things: every design frame matches its golden; every frame is exactly the terminal size with no overflow; no frame has a header label, ^K commands strip or ttft 0.0s; the rule spans the transcript pane and the sidebar sits flush right at every size; and the 120×40 golden-path gives the transcript more rows than today. Unit tests in design.rs check that state glyphs are distinct, the rule colour per state, the composer rail colour per mode, the faint derivation, and that ANSI frames end on their last row without scrolling.
  • B1 numbers come from the real release binary. Raw output is in target/qq-perf/v0.1.11/ on the recording host.

Known impact

  • B1 was recorded with host I/O pressure at 28–52%, above the 20% the perf runbook allows, so treat the tails as indicative. Session bodies were tiny, so transcript and cold-switch times are lower bounds. Selection paint is not benched yet; section A adds it.

  • Found while recording, not investigated: with qq pinned to one CPU, /new often stays on "Loading session history...". It needs its own issue.

  • The 120×40 golden-path design frame gains 1 transcript row, not the plan's 2. Today the header and the strip are only 1 row more than the new rule plus status line.

  • At 320 and 480 columns prose runs the full pane width (~430 columns). A Wide detail pane would use that space better; it is not in these frames.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-10-31T00:42:47.216807Z a240915 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 30, 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: c83d1ae1c4

ℹ️ 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/design.rs Resolved
@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.

@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

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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: a240915cb1

ℹ️ 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".

@lg2m
lg2m merged commit 67050f3 into main Oct 31, 2026
9 checks passed
@lg2m
lg2m deleted the feat/eng-1110-r0-b1-baseline branch October 31, 2026 00:44
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