Repository navigation
feat(tui): copy exactly what you selected - #522
Conversation
Keep the alternate screen and mouse state across the external editor, skip empty selections, keep code-panel fill out of copies beside side columns, take blank code rows into a triple-click block, index code blocks from the end so a truncated live answer copies the right one, and inject the click clock so multi-click tests do not depend on wall time.
|
@codex review |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fb148ab758
ℹ️ 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".
Measure joined graphemes by display width, keep folded tool calls on the block cursor, copy refusals and live tool output, serialize clipboard helper writes so a newer copy wins, and keep the separating space before a long wrapped token.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7f26d3b633
ℹ️ 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 review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a76254f8e4
ℹ️ 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 review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3884f3d5fd
ℹ️ 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".
…rgins out of prose copies
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2808f1e8f4
ℹ️ 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".
…cks across glued rows
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1be9eee353
ℹ️ 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 review |
|
Codex Review: Didn't find any major issues. 🎉 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
Copy in the TUI now copies exactly what you selected (plan 0.1.11 § A). Closes ENG-1105.
Ctrl-Up/Ctrl-Downcursor now covers prompts, answers, code blocks and tool calls.ycopies the block: an answer as Markdown source, code as raw code, a tool call as its command and output./copyand/copy code.Ctrl-Ccopies instead of quitting while a selection or the block cursor is active.tmux load-buffer -w -, off the event loop with a 1.5 s timeout each.copied N linesonly when a helper confirmed the write. Otherwise it sayssent N lines to the terminal clipboard./mouseoff hides the sessions column and draws the transcript flush left, so a native row selection is clean. Each state's notice says what it does.docs/guide/tui.mdhas a new Copying section and an updated command table;docs/design/layout.mdcovers the flush pref;docs/design/transcript.mdcovers row metadata and the block cursor; the QA runbook gains a copy checklist./copyis added toRESERVED_CLIENT_SLASH_COMMANDS, following earlier additions that did not bumpPROTOCOL_VERSION.Verification
cargo nextest run -p qq-tui: 471 passed. New tests cover:yon each block kind,/copy,Ctrl-C,/mouseflush;cargo xtask check: passed on fb148ab.origin/main(a7a9495). Every gate is within 5%; the worst iswide_160x48_full_frameat +2.3%, andresize_ultrais −12%. The newselection_drag_27_rows_to_framescene takes 51.5 µs. A first cut was up to 11% slower; callgrind traced that to extra SipHash and allocations from block-range tracking, fixed by reusing the block vector between frames and having tool rendering write ranges straight into it.Known impact
not run.