Skip to content

feat(tui): open a tool call in place with every row, and drop the inspector pane - #550

Merged
lg2m merged 2 commits into
mainfrom
feat/tui-open-in-place
Nov 3, 2026
Merged

lg2m merged 2 commits into
mainfrom
feat/tui-open-in-place

Conversation

@lg2m

@lg2m lg2m commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

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. Design-review item 3 in docs/plans/0.1.11.md is marked resolved, and the changelog drops the inspector regression.

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.

Base automatically changed from fix/eng-1110-redesign-gaps to main November 2, 2026 23:55
…pector pane

A click on a tool row, or Enter on the block cursor, opens the call where
it is: every row the client holds, wrapped instead of cut, scrolling with
the transcript. Cuts made by the server read '⋯ N lines omitted'. Long
bodies end in a fold row. A click on a turn receipt opens receipts, and a
click on an agent lane focuses it. A lane waiting on approval names the
command, file or host. Removes the inspector, Alt-I, the 8-row window and
in-call PgUp/PgDn.
@lg2m
lg2m force-pushed the feat/tui-open-in-place branch from f93bc83 to 6fdf467 Compare November 2, 2026 23:59
@lg2m

lg2m commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-03T00:59:31.573177Z bd64a87 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: 6fdf4677cf

ℹ️ 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
Comment thread crates/qq-tui/src/view/overlay.rs Resolved
Comment thread crates/qq-tui/src/view/tools.rs Resolved
…er diff text, and flag dropped live output

- Repeat the command when the header actually cut it, using the same subject budget as the summary row (exit and duration included).
- Size the diff gutter from the widest line number, so line 10000+ wraps without losing characters.
- The client records when the live buffer drops its head. The notice no longer infers truncation from the buffer's length, which a UTF-8 boundary cut can leave under 4 KiB.
@lg2m

lg2m commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: bd64a871ac

ℹ️ 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 be5beb9 into main Nov 3, 2026
15 checks passed
@lg2m
lg2m deleted the feat/tui-open-in-place branch November 3, 2026 05:07
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