Repository navigation
Conversation
… (ENG-1072) Slice F6 of docs/plans/tui-focus.md. With mouse capture on, a drag selects only the transcript pane's cells (never the rail, inspector or chrome), paints them, and copies the text on release via OSC 52; clicking a rail row focuses that session or agent.
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 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 044fd386bc
ℹ️ 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".
…ect-copy # Conflicts: # docs/plans/progress/tui-focus.md
…ainst the drawn frame (ENG-1072) Plan acceptance from the third #354 review. Merges the F1-F5 review fixes.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
1 similar comment
|
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 Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ 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". |
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ 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". |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
1 similar comment
|
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 Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ 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". |
|
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: 855d073f8f
ℹ️ 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".
…tale selections (ENG-1072) Addresses Codex on #363: copy strips only the pane margin, wide/combining characters snap whole, a selection whose rows changed is dropped, Shift/Alt/Ctrl mouse events pass to the terminal, clearing always repaints, a click paints nothing, and the hit map resets on every frame. Merges F1-F5 fixes and v0.1.8 from main.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
1 similar comment
|
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: c6c5a3b4df
ℹ️ 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".
…line, measure emoji presentation (ENG-1072) Addresses the sixth Codex review on #363.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
1 similar comment
|
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: d2d8a26c24
ℹ️ 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".
…d trailing blank line, drop selections when the pane moves (ENG-1072) Addresses the seventh Codex review on #363.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
1 similar comment
|
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: bbab26ae64
ℹ️ 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".
…ect-copy # Conflicts: # crates/qq-tui/src/render.rs # crates/qq-tui/src/view.rs # crates/qq-tui/src/view/wrap.rs
… clusters, skip hanging prefixes in copies (ENG-1072) A cluster's width is the width of the whole cluster (☀️ and 👩💻 are two cells), in wrapping, selection and text_width alike; truncate_line and preview keep or drop a cluster at the ellipsis whole; a wrapped list item or quote marks its hanging prefix as chrome so a copy joins without it; a copy ending on a blank row counts that line. Addresses the 11th Codex review on #363 and #354.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
1 similar comment
|
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: 4cedc0740e
ℹ️ 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".
| } | ||
| _ => out.push(( | ||
| offset..end, | ||
| crate::render::text_width(&text[offset..end]), |
There was a problem hiding this comment.
Account for clusters continued from a prior span
When a grapheme crosses a style-span boundary, the carried Clusters state makes continues true, but this computes the width from only the suffix in the current span. Callers have already counted the prefix, so a split ☀ / ️ undercounts the completed emoji and can emit a row wider than its pane, while a split 👩 / 💻 double-counts it and truncate_line can leave the dangling 👩 before an ellipsis. Fresh evidence beyond the settled same-span measurement case is this continuation path across spans; carry the completed cluster's width (or its width delta) across the boundary.
AGENTS.md reference: AGENTS.md:L203-L207
Useful? React with 👍 / 👎.
| // The hanging indent (and a quote's repeated rail) is | ||
| // layout, not text: a copy of the wrapped item joins | ||
| // its rows without it. | ||
| continuation.chrome = hang.width; |
There was a problem hiding this comment.
Mark the first quote rail as copy chrome
When a selection begins at the pane's left edge on the first row of a blockquote, only continuation rows receive chrome; the index == 0 branch leaves the initial ▎ prefix selectable and Selection::text copies it. This makes a full-row drag copy layout decoration even though blockquote rails are defined as non-text prefixes, so the first-row quote rail needs a chrome boundary as well.
Useful? React with 👍 / 👎.
| self.selection = self.geometry.transcript.and_then(|area| { | ||
| crate::selection::Selection::start(area, self.geometry.text_x, column, row) | ||
| }); | ||
| Effects::changed_now(cleared) |
There was a problem hiding this comment.
Snapshot a new selection on mouse-down
When streamed output arrives after an unmodified left press but before the first drag or frame, cleared is false here, so no immediate redraw records the cells under the press and the selection still has seen == None. The next frame therefore accepts the already-moved text as its baseline, allowing the drag to highlight and copy cells different from those initially clicked. Fresh evidence beyond the settled post-drag stale-frame case is this pre-first-frame window; request an immediate frame when a selection starts or fingerprint the last committed frame at mouse-down.
AGENTS.md reference: AGENTS.md:L203-L207
Useful? React with 👍 / 👎.
…ect-copy # Conflicts: # docs/plans/progress/tui-focus.md
…ect-copy # Conflicts: # crates/qq-tui/src/view.rs # crates/qq-tui/src/view/tests.rs
…il as chrome, fingerprint a selection on press (ENG-1072) A cluster a style change splits (a span ending in a ZWJ, a selector or flag half in the next) is measured once at its full width in Line::width, wrapping, and truncation. A blockquote's first-row rail is skipped by a copy like its continuation rails. A press fingerprints the frame it landed on, so output streamed before the first drag or frame drops the selection. Addresses the 11th Codex review on #363.
…ect-copy # Conflicts: # crates/qq-tui/src/view.rs # crates/qq-tui/src/view/wrap.rs
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c9a78698f2
ℹ️ 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".
| // The quote rail before the marker is layout too; the | ||
| // marker itself is the item's text. | ||
| let mut first = prefix.clone(); | ||
| first.chrome = quote_rail_width(hang.rail); |
There was a problem hiding this comment.
Mark list markers as copy chrome
When a drag starts at the pane's left edge over a Markdown list, this marks only the quote rail as chrome, leaving bullets, task boxes, and ordered-list markers in the copied text. This contradicts the F6 requirement in docs/plans/tui-focus.md:126-127 that list prefixes be dropped; use the complete hanging-prefix width for the first row, as is already done for continuation rows.
Useful? React with 👍 / 👎.
| let mut panel = false; | ||
| if let Some(line) = lines.get(row) { | ||
| wrapped = line.wrapped; | ||
| panel = line.chrome > 0; |
There was a problem hiding this comment.
Distinguish blank code rows from panel padding
When a fenced code block begins or ends with an intentional blank source line and the drag spans the panel, every row has chrome > 0, so this classifies the real blank code row as synthetic panel padding. The leading or trailing cleanup then removes the selected newline from the clipboard. Fresh evidence beyond the settled ordinary-blank-row case is that content rows inside a panel share the same chrome marker as its padding; record the padding-row role explicitly instead of inferring it from chrome.
Useful? React with 👍 / 👎.
|
Closing in favor of the v0.1.11 TUI plan (ENG-1104, |
F6: click rail rows and copy transcript selections with OSC 52
Spec: docs/plans/tui-focus.md#f6-clickable-rail-and-scoped-selection Linear: ENG-1072 (parent ENG-1067)
Stacked on #360.
What changed (user-visible)
selectionbackground. Release copies to the system clipboard via OSC 52 (Codex's approach) and the rule readscopied N lines. Rows are copied without the measure inset or trailing spaces.Esc, any key, the wheel, a resize or a new press clears it; a click without a drag copies nothing./mouseand Shift-drag still give native terminal selection.+Nrows do nothing.Design
src/selection.rs:FrameGeometry(transcript area, rail area, per-row click target), committed by the renderer like pane state;Selectionis screen-anchored and clamped to the pane;paintruns after composition so no transcript cache sees it and frames with no selection pay nothing;textreads the last drawn frame;MAX_COPY_BYTES(1 MiB) bounds a copy.sidebarreturnsRailFrame { rows, named, targets }.Effect::CopySelection: the terminal loop resolves the text againstFrameRenderer::last_frame, writesESC ] 52 ; c ; <base64> BEL, and the app reports the count.base64.workspace = trueadded tocrates/qq-tui/Cargo.toml(already pinned in the workspace and in Cargo.lock; no new crate).How verified
cargo nextest run -p qq-tui: 418 passed. New: 6selection::tests(pane-only text and inset, presses outside the pane, paint restyles only selected cells, 1 MiB bound, rail hit-testing, OSC 52 bytes);clicking_a_rail_row_focuses_that_session_or_agent,a_drag_in_the_transcript_selects_only_its_text_and_copies_it_on_release,a_click_without_a_drag_selects_and_copies_nothing; loop testa_drag_in_the_transcript_writes_its_text_to_the_clipboard_with_osc52(assertsESC]52;c;Y29weSBtZQ==BELfor "copy me" and thecopied 1 linenotice).cargo xtask lintok; clippy-D warningsclean for qq-tui;cargo xtask smoke: 8 passed. The Cargo.toml line widenscargo xtask checkto the full workspace; that run's evidence follows in a comment.Measurements
Same-host back-to-back A/B vs #360 (raw: target/qq-perf/tui-focus-F6-2026-10-18/{before,after}-ab.txt; load ≈16–20):
Docs
docs/guide/tui.md§ Mouse: click, select, copy;docs/design/layout.md§ Mouse; ledger receipt.Compatibility