Repository navigation
perf(tui): record the v0.1.11 baseline and pin the redesign frames (B1, R0) - #517
Conversation
…s under eight streams
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
There was a problem hiding this comment.
💡 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".
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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.
benchmarks/tui/record_baseline.pydrives the releaseqqin 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 indocs/plans/0.1.11.mdunder "B1 results". Every measured target is met.crates/qq-tui/src/design.rs(bench-support only) draws the target frames from section R. Its 16 scenes are the 12 existing ones plusfanout,switcher,approval-dockandfirst-frame, at all five golden sizes. Text goldens are incrates/qq-tui/tests/design/, and the ANSI gallery writes them totarget/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.ansAlso look at
approval-dock,switcher,fanout,sessions-80x24andfirst-frame. The plain-text versions are in the diff undercrates/qq-tui/tests/design/.Verification
cargo xtask check: passed on a240915 (fmt, lint, clippy, 398 qq-tui tests).crates/qq-tui/tests/design.rschecks 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 commandsstrip orttft 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 indesign.rscheck that state glyphs are distinct, the rule colour per state, the composer rail colour per mode, thefaintderivation, and that ANSI frames end on their last row without scrolling.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
qqpinned to one CPU,/newoften 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.