Repository navigation
Conversation
Plan P0 for ENG-1067: sessions vs agents in lists, inspector on demand, clickable rail, and transcript-scoped mouse selection with OSC 52 copy.
|
@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: 6b458d534e
ℹ️ 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".
…s (ENG-1068) Addresses Codex review on #354: inclusive spend, WAITING_AGENT_ROWS cap, single-session visibility, rule-notice condition, picker cursor fallback, qq-tui base64 manifest line.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 099ea559a3
ℹ️ 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 a real child bench (ENG-1068) Addresses the second Codex review on #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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9ae49927d4
ℹ️ 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".
…ng and selection geometry (ENG-1068) Addresses the third Codex review on #354.
…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. |
|
@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 |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 33dd93c948
ℹ️ 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".
…pheme-safe selection (ENG-1068) Addresses the fourth Codex review on #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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 50ea803962
ℹ️ 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".
…s, grapheme cells, per-row copy prefix (ENG-1068) Addresses the fifth Codex review on #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. |
…ng server behaviour (ENG-1068)
|
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: 61db2d9559
ℹ️ 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".
| (ENG-1080), not done here. When an arriving summary reveals that the | ||
| focused session is under an audit, focus moves to the newest displayed | ||
| non-audit session (orphans included), as on deletion; the session a | ||
| workspace view would return to is replaced the same way. |
There was a problem hiding this comment.
Reset approval drafts before forced audit refocus
When a missing audit ancestor arrives while the user is partway through a multi-question ask_user prompt or a Shift-Y/Shift-N approval amendment, this forced focus change can transfer that interaction to the fallback session: question_answers and approval_amendment are App-wide (crates/qq-tui/src/app.rs:425-431), focus_session does not clear them (app.rs:2022-2039), and the next approval indexes or submits them against the newly focused call. That can submit old answers or approve/deny a different tool call. Require this automatic refocus to clear the composer and focus-scoped approval state—or key that state by tool-call ID—and add an ancestry-revelation regression for a partially answered question and an armed amendment.
AGENTS.md reference: AGENTS.md:L203-L207
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 6fb3be3. The plan was trimmed to its contracts; F1–F2 now says that when an arrival reveals a shown or targeted session is under an audit, the UI moves off it as if deleted and drops anything in progress against it (a picker confirmation, a partly answered question, an armed approval amendment). The implementation and its regression land on #356.
| **Owned paths:** `crates/qq-tui/src/**`, `crates/qq-tui/tests/**`, | ||
| `crates/qq-tui/benches/render.rs`, `crates/qq-tui/Cargo.toml` (F6 only: the | ||
| `base64` workspace dependency), `docs/design/layout.md`, | ||
| `docs/design/transcript.md`, `docs/guide/tui.md`, `docs/runbooks/tui-qa.md`. |
There was a problem hiding this comment.
Add client bootstrap to the owned paths
The audit-safe startup contract cannot be implemented within these owned paths: in the inspected parent, both explicit qq --session validation and bare-existing-session selection occur in crates/qq-client/src/interactive.rs:495-510, before the TUI receives the snapshot. Refusing an audit ID and choosing a non-audit startup fallback therefore require edits and tests under crates/qq-client, leaving implementers to either violate the slice boundary or omit part of the audit-reachability guarantee. Add the client bootstrap and its tests to the owned paths.
AGENTS.md reference: AGENTS.md:L203-L207
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 6fb3be3. The owned paths now include the client bootstrap (crates/qq-client/src/interactive.rs, crates/qq-client/src/lib.rs) for F1's startup rule, which the plan states explicitly: --session opens only a non-audit root, a bare qq opens the newest non-audit root.
…on a forced audit refocus (ENG-1068) Addresses the 12th Codex review on #354.
The plan states each slice's contract and leaves edge cases to the tests in its PR. It now owns the client bootstrap for the startup rule, defines spend over deeper agents, derives needs in the TUI, and drops in-progress interactions on a forced audit refocus. Addresses the 12th Codex review on #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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6fb3be3fa0
ℹ️ 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".
| it is not used here). One attention list, most urgent first, feeds every | ||
| attention surface (`Ctrl-G`, `Alt-A`/`Alt-D`, `/attention`, the rule). |
There was a problem hiding this comment.
Define the shared attention urgency order
When a human-owned approval, an unseen failure, and an unseen finish coexist, “most urgent first” does not specify which entry Ctrl-G, /attention, the rule, or the approval chords receive first, even though the acceptance section requires a rank-order test. A future test can therefore bless any ordering—and potentially put a non-actionable failure ahead of an approval—without demonstrating conformance to a stated contract; define the precedence and tie-breaker explicitly.
AGENTS.md reference: AGENTS.md:L203-L206
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 08655e4. F1–F2 now defines the one attention order: human-owned approvals, then unseen failures, then unseen finishes; within a rank, components newest first by their top session, tree order inside one.
| - The rule's notice names the most urgent need that nothing else names, and | ||
| counts the rest (`◇ Deploy helper +3 need you`). A painted `+N need you` | ||
| rail row points at the needs it collapses, so those are counted, not | ||
| named again. The strip only counts, so beside it the notice still names. |
There was a problem hiding this comment.
Exclude pointer-covered needs from notice selection
When the most urgent need is hidden behind a painted +N need you row and a lower-ranked need has no surface, the first sentence selects the collapsed need because nothing else names it, while the next sentence says that same need must only be counted because the row already points at it. The final trimmed contract is fresh evidence beyond the settled collapsed-pointer thread: define notice selection over needs that are neither named nor already pointed at, so the lower-ranked uncovered need is named.
AGENTS.md reference: AGENTS.md:L203-L207
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
| the server's `accounting.inclusive` (the session and its immediate | ||
| children) plus the direct spend of deeper loaded agents; a summary | ||
| without accounting sums the direct spend of its loaded tree, audits | ||
| included, since hidden work still costs. Agents that are not loaded are |
There was a problem hiding this comment.
Propagate unknown costs through the roll-up
When the root's inclusive cost is known but a deeper loaded agent has accounting.direct.estimated_cost_usd_nanos == None—or a legacy loaded summary has no direct alias—the proposed sum has no defined result. The protocol explicitly says a missing cost is unknown and never a known zero (crates/qq-protocol/src/sessions.rs:101-103), while the server aggregate propagates None (crates/qq-core/src/sessions/snapshots.rs:359-366); require the TUI roll-up to do the same and add a mixed known/unknown spend case, otherwise filtering missing values can display an understated total as authoritative.
AGENTS.md reference: AGENTS.md:L203-L206
Useful? React with 👍 / 👎.
| - On **release** the text is copied over OSC 52 with `copied N lines`. A | ||
| copy holds only text: no pane inset, message rail, panel gutter or fill, | ||
| list or quote prefix, or trailing spaces. Soft-wrapped prose rejoins with | ||
| a space; code and long tokens rejoin with nothing; real newlines stay. | ||
| Copies are bounded (`MAX_COPY_BYTES`) and cut at a cluster boundary. |
There was a problem hiding this comment.
Report when bounded copies are truncated
When a selection exceeds MAX_COPY_BYTES, this contract silently copies only a prefix but still shows the unconditional copied N lines notice. A user can therefore paste an incomplete command or code block while the UI claims the copy succeeded; require a distinct truncated notice (and a regression asserting it) whenever the byte bound cuts the selected payload.
AGENTS.md reference: AGENTS.md:L203-L206
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 08655e4. A cut copy is reported as a warning (copied the first N lines; the selection was too large), which is what F6's note_copied does.
| - Grapheme clusters (ZWJ, combining-mark, flag, modifier and virama | ||
| sequences) are kept whole and measured at their rendered width in | ||
| layout, wrapping, truncation, previews and selection alike. Full UAX #29 | ||
| is out of scope (it needs a crate); rarer clusters are a known limit. |
There was a problem hiding this comment.
Scope width measurement to a deterministic algorithm
The TUI cannot observe how a terminal emulator and font actually render each grapheme, and terminals disagree about widths for emoji presentation, ZWJ sequences, and ambiguous-width characters. Consequently, an app test cannot prove the promise that clusters are measured at “their rendered width,” and selection coordinates can still diverge from displayed cells on a conforming terminal; name the deterministic width algorithm/table used by layout and record terminal-specific width differences as the limit instead.
AGENTS.md reference: AGENTS.md:L203-L206
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 08655e4. The width rule is now named: unicode-width's UnicodeWidthStr::width of the whole cluster, used in layout, wrapping, truncation, previews and selection; terminals or fonts that draw a cluster at another width are a recorded limit.
| - `cargo bench -p qq-tui --bench render` before and after each code slice: | ||
| the `steady_state`, `streaming_focused`, `streaming_run_on_32kb`, | ||
| `golden_path_first_minute`, `sessions_200_with_sidebar`, | ||
| `children_20_with_sidebar` and `resize_horizontal` medians within 5 %. |
There was a problem hiding this comment.
Make the performance threshold one-sided
A code slice whose render median improves by more than 5% is not literally “within 5%” of its baseline, so this gate can reject a beneficial optimization just as it rejects a regression. Define the threshold as no more than 5% slower (with any faster result passing), rather than a symmetric distance from the baseline, so the named gate has an unambiguous pass condition.
AGENTS.md reference: AGENTS.md:L203-L206
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 08655e4. The gate is one-sided: medians no more than 5 % slower than the stack base; any speed-up passes.
…per agents' spend (ENG-1069) A forced move off a session revealed to sit under an audit clears a partly answered ask_user form, an armed amendment and its note, so neither is submitted against the fallback's call. A session's spend adds the direct spend of loaded agents below its immediate children, which the server's inclusive accounting does not cover. Addresses the 12th Codex review on #354.
… orphans linearly, indent orphan agents, name outcomes beside an approval (ENG-1069) The roll-up's spend is unknown when any summed part is unknown, never an understated total. A running session animates only while a spinner for it is on screen and never when it is an audit. Addresses the 10th Codex review on #356 and the 13th on #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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 444da722cd
ℹ️ 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".
…hot and view-return fallbacks, animate only drawn transcripts (ENG-1069) The server's inclusive accounting already folds the whole subtree, so deeper agents are no longer added. A snapshot with no focused body that falls back to a listed session fetches it, and so does a cold view_return replacement behind an inspector-held workspace view. The animation clock reads the sessions the last frame actually drew. Addresses the 11th Codex review on #356 and the 14th on #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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cae8e5eafd
ℹ️ 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".
…overed approval, ledger rows planned until their PR records receipts (ENG-1068) Addresses the 15th Codex review on #354.
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? 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". |
…us-plan # Conflicts: # docs/plans/README.md # docs/plans/progress/README.md
…s and accepted limits (ENG-1068) The plan's absolute invariants turned every combination of overlay, terminal size, snapshot timing and tree shape into a defect. It now names four guarantees with tests (audits are not user-facing, answers go to the call shown, copies are only text, no slower renders), describes the rest as intended behavior, and lists the accepted limits that are follow-ups, not blockers.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Closing in favor of the v0.1.11 TUI plan (ENG-1104, |
P0: plan the sessions-first TUI focus slices
Spec: docs/plans/tui-focus.md Linear: ENG-1068 (parent ENG-1067)
What changed
docs/plans/tui-focus.mdand ledgerdocs/plans/progress/tui-focus.md; index rows in both READMEs.How verified
cargo xtask check
Head
6b458d534e22vsorigin/main; 4 changed file(s); scope: no Rust package affected.cargo fmt --all -- --checkcargo xtask lintAll gates passed in 4.0s.
Compatibility
Follow-ups