Skip to content

fix(tui): close the v0.1.11 redesign gaps (full diff key, inline edit diff, drop R0 renderer) - #549

Merged
lg2m merged 5 commits into
mainfrom
fix/eng-1110-redesign-gaps
Nov 2, 2026
Merged

lg2m merged 5 commits into
mainfrom
fix/eng-1110-redesign-gaps

Conversation

@lg2m

@lg2m lg2m commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #549 (base fix/eng-1110-redesign-gaps). Retarget to main once #549 merges.

Change

  • Open a tool call in place. Click a tool row, or select it and press Enter, and the whole call opens under its row: every line the client holds, wrapped to the column instead of cut off, scrolling with the transcript. There is no side pane and no full-screen view.

    • A read shows the file text and an edit its whole diff. Wide diff lines wrap under the line-number gutter, with no … N more lines cap.
    • An MCP call shows every argument in full, then its result.
    • A command shows its output. It also shows $ command when the header had to shorten the command.
    • Opening a call keeps its header on screen.
  • Cuts are named. Where the server bounded a result for the model, the open body says ⋯ 312 lines omitted · stored for read_tool_result (or · not stored) instead of skipping it silently. A running command whose 4 KiB live buffer dropped its head says so.

  • Fold from either end. A body of 12 rows or more ends in ╰ Read src/lib.rs · click or Enter folds. Clicks on output rows still select text.

  • Several sessions at once.

    • Clicking a turn receipt opens receipts.
    • Clicking an agent lane focuses that agent.
    • A lane or rail row waiting on approval names what it wants (wants to run rm -rf build, wants to edit crates/…, wants to fetch docs.rs). It falls back to wants to run a command while no preview has arrived.
  • Removed:

    • the │ INSPECTOR pane and Alt-I
    • the 8-row 1–8 of 40 · PgUp PgDn window
    • PgUp/PgDn scrolling inside a call: they always scroll the transcript now
    • LayoutDemand and tool_scroll / tool_window

    /attention and /changes always take the main pane.

  • Updated docs: docs/guide/tui.md, docs/design/layout.md, docs/design/transcript.md.

Loading the omitted lines from the stored spill needs a protocol route, so it is ENG-1146 for v0.1.12.

Verification

  • New tests:
    • clicking_a_tool_row_opens_every_line_in_place_and_clicking_again_folds_it
    • clicking_a_folded_receipt_opens_the_turn_and_alt_i_is_unbound
    • clicking_an_agent_lane_focuses_that_agent
    • an_open_result_names_what_qq_cut_and_an_open_edit_shows_its_whole_diff
    • an_open_result_shows_every_row_and_arguments_whole
    • opening_a_tool_row_reveals_it_and_page_keys_scroll_the_transcript
    • a_lane_waiting_on_approval_names_the_command_it_wants_to_run
    • an_open_call_shows_its_whole_output_and_folding_it_returns_the_answer
  • With the click handler disabled, the three click tests fail.
  • Goldens moved on purpose:
    • tools-expanded-*: all rows plus the fold row; no inspector at 200+.
    • approval-{200,320,480}: the rail names the file being edited.
  • cargo xtask check passed.

Known impact

  • Render bench, tool_calls_32_expanded_frame: 28.2 → 35.3 µs. It now draws all 20 rows of each read instead of an 8-row window. Other tool scenes are unchanged: rows 21.1 µs, folded 17.2 µs. The tool_calls_32_expanded_inspector scene is gone with the inspector.

@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-02T23:28:41.869337Z 1bf8809 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.

…-gaps

# Conflicts:
#	crates/qq-tui/src/render.rs

@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: c1ab99a998

ℹ️ 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/transcript.rs Resolved
…t, and the inline diff follows call ordinals
@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. You're on a roll.

Reviewed commit: 1bf8809401

ℹ️ 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 23:29
@lg2m lg2m added the ci:full label Nov 2, 2026
@lg2m
lg2m added this pull request to the merge queue Nov 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 2, 2026
@lg2m
lg2m added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 527c54a Nov 2, 2026
29 checks passed
@lg2m
lg2m deleted the fix/eng-1110-redesign-gaps branch November 2, 2026 23:55
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