Skip to content

feat(tui): find in the transcript, unseen-row marker, and scrollable expanded output (E) - #546

Merged
lg2m merged 8 commits into
mainfrom
feat/eng-1109-transcript-scale
Nov 2, 2026
Merged

lg2m merged 8 commits into
mainfrom
feat/eng-1109-transcript-scale

Conversation

@lg2m

@lg2m lg2m commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Change

Section E of the v0.1.11 TUI plan: a transcript that holds up at scale. Closes ENG-1109.

  • Ctrl-F opens a one-row find panel in the dock. It searches the focused transcript's prompts, answers, tool calls (command and full output, folded or not) and reasoning, ignoring case. Enter/Shift-Enter (or Down/Up) step and wrap. A match in a folded tool call or reasoning row opens it, scrolls it into view, and places the window on the matching line. It folds again when find moves on, and Esc keeps the current match open. Search reads the session store and the previous frame's block list, so the frame path does no extra work.
  • Scrolled away from the tail, streaming never moves the view. The rule shows ↓ N new End for rows that arrived below while a run is going; resizes and idle re-layouts don't count. End on an empty composer now returns to the tail, like Ctrl-End. This replaces the in-body ↓ N more rows pill.
  • An expanded tool call keeps up to 64 KiB of output. Past nine rows it shows an 8-row window with 1–8 of 40 · PgUp PgDn, and PgUp/PgDn scroll inside it while the block cursor is on it. Paging never falls through to the transcript, so a long result can't push the answer off screen.
  • Reasoning rows are now blocks the cursor visits; Enter opens one.
  • Registry: 45 → 46 commands, 27 → 28 default chords.

Verification

  • New tests drive the real event and render loop (crates/qq-tui/src/app/scale_tests.rs, plus a viewport.rs unit test): find across folded tool output and reasoning; no-match; Ctrl-C with find open; non-ASCII case; closing find on a session change; a stable viewport during streaming and the ↓ N new count; End back to the tail; scrolling inside an expanded call; paging at the window edge. Each was checked to fail with its piece of the change reverted.
  • Goldens: only tools-expanded-* moved (5 frames), because expanded results now show an 8-row window instead of 3 rows and a count. The view/tests.rs assertions that pinned the old 3-row cap were updated to the new literal output.
  • cargo xtask check: passed on the head commit.
  • Real binary (--tui-qa-root against the loopback fake, driven through script): typed a prompt, Ctrl-F, zebra, Esc, End, Ctrl-C twice. Observed the find placeholder, / zebra 1 of 1 with the matching paragraph scrolled into view, Ctrl-C again to quit, and exit with the resume line.
  • A read-only sub-agent review found two bugs, both fixed with tests in the second commit: non-ASCII case folding, and Ctrl-C with find open copying instead of quitting.

Known impact

Render bench on the final head: five interleaved base/head pairs pinned to CPU 2, median of medians. The host was under I/O pressure (some avg10 about 60%), so tails are noisy.

  • Over the plan's 5% gate:

    • tool_calls_32_expanded: +19.9% (23.1 → 27.7 µs)
    • tool_calls_32_expanded_inspector: +10.4%

    Both scenes now draw 8 rows plus a position row per expanded call, instead of 3 rows plus a count. That is more output, not a slower path.

  • resize_ultra_480x120 is +5.9% (505 → 535 µs), just over the gate, with no expected cause.

  • steady_state −3.5%, streaming_run_on_32kb +2.5%; every other scene is within −0.4% to +2.9%.

  • An expanded failed command now shows its whole output in the scrollable window, in its failure color, instead of a 3-row tail; collapsed rows are unchanged.

  • Five qq-tui render::tests and one terminal::tests case fail when NO_COLOR=1 is set in the environment, on main too; unrelated to this change.

Review: Codex raised ten findings over four rounds. Each was fixed with a test that fails on the previous head; the reply on each thread names the commit and test.

@lg2m

lg2m commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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-02T08:54:53.267568Z 7631117 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 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: b6dd88ae92

ℹ️ 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/find.rs Resolved
Comment thread crates/qq-tui/src/app/find.rs Resolved
@lg2m

lg2m commented Nov 2, 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: 946295ba78

ℹ️ 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/find.rs Resolved
Comment thread crates/qq-tui/src/viewport.rs Resolved
Comment thread crates/qq-tui/src/view/transcript.rs Resolved
…w output, and let Alt-R close single reasoning blocks
@lg2m

lg2m commented Nov 2, 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: d74adef49f

ℹ️ 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/find.rs Resolved
Comment thread crates/qq-tui/src/app/find.rs Resolved
Comment thread crates/qq-tui/src/app.rs Resolved
@lg2m

lg2m commented Nov 2, 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: 765f809d1d

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

lg2m commented Nov 2, 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: a362cf583d

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

lg2m commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: f7368b61bb

ℹ️ 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 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 7631117e58

ℹ️ 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 enabled auto-merge November 2, 2026 15:41
@lg2m lg2m added the ci:full label Nov 2, 2026
@lg2m
lg2m added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit bc96a5e Nov 2, 2026
29 checks passed
@lg2m
lg2m deleted the feat/eng-1109-transcript-scale branch November 2, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant