Repository navigation
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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: 952cc3ad01
ℹ️ 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: 63e2467c34
ℹ️ 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: 507daffc45
ℹ️ 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".
…state for screen readers, stale phone-dialog text (coder#7050) Fixes coder#5645 Refs coder#5761 Refs coder#6144 ## Summary This is the issue coordinator's ui-shell sweep of four impact-1 follow-ups. The user decided the sweep on the issue triage dashboard on 10-19. 1. **coder#5645:** in a narrow VS Code sidebar, Retry's shortcut hint no longer runs into the retry card's padding. The hint now wraps under "Retry" as a whole. The `NarrowPane200` story gets the webview transcript's `p-3`, and its play also checks the retry card at 170 px, the narrowest VS Code sidebar. 2. **coder#5761, items 2-6:** - The notifications bell tells screen readers its state: `aria-description` "Notify on all responses: on/off". The tooltip shows the same label. - A stale overlay comment is fixed in `useAIViewKeybinds.ts`. - Two keybind names in comments are fixed: a test comment in `WorkspaceMenuBar.test.tsx` and the header of the `detailsShortcuts` repro. - The `detailsShortcuts` repro restores "Notify on all responses" in a `finally`, so a failure no longer breaks the later repros. 3. **coder#6144, items 1 and 3:** comments, one test name and the story seed text no longer describe the removed phone dialogs. Not in this PR: - **coder#5761 item 1 (drawer focus return):** escalated and kept open. The evidence is on the issue. - **coder#6144 item 2 (renaming the keybind and event IDs):** not done. The IDs are internal only. Keybinds are not user-customizable, and the labels users see already say "tab". Open PR coder#7040 edits the same lines. - **coder#6144 item 4 (LazyFeature for Timeline and Artifacts):** left to the perf owner. coder#6144 stays open for it. - **coder#5811:** closed as already done by coder#6140. ## Background - **coder#5645:** coder#5635 added "(Shift+R)" to the `whitespace-nowrap` Retry button, and coder#5638 lets the retry row wrap. In the webview, the row is about `W - 68` px wide: the transcript's `p-3`, plus the card's `border-l-4 px-5`. With Storybook's fonts the button is 122 px wide, so it overflows below a sidebar width of about 190 px. - **coder#5761:** coder#5736 removed `aria-pressed` from the bell, because a click no longer toggles the setting. Its accessible name then lost the state. ## Implementation - **`RetryBarrier.tsx`:** the button loses `whitespace-nowrap`, and the hint span gets it. So the text breaks only between "Retry" and "(Shift+R)", and the button's minimum width is the wider of the two. - **`WorkspaceMenuBar.tsx`:** one `notifyOnResponseLabel` feeds the tooltip and `aria-description`. Sharing it keeps the CRAP floor (complexity unchanged). - **The `detailsShortcuts` repro:** the `finally` reads the bell's `aria-description` and toggles the setting back only when it is on. The first shortcut can fail before it changes anything. - **coder#6144 item 3 (the sync listeners):** kept on purpose. `usePersistedState`'s `listener: true` also syncs across browser tabs (`storage` events), and it costs nothing. Only their comments changed. ## Validation Before the fix (pre-fix failing evidence, on main's code): ``` ● Features/Messages/StreamErrorMessage › NarrowPane200 › play-test 170px pane: <button class="bg-warning … whitespace-nowrap …"> ends at 158px, past its parent's content box (right edge 138px) Tests: 1 failed, 1 total (fail) WorkspaceMenuBar … > tells screen readers whether the bell notifies on all responses Expected: "Notify on all responses: off" Received: null ``` After the fix: - `NarrowPane200` passes. - These tests pass: `WorkspaceMenuBar.test.tsx` 48/48, `RetryBarrier.test.tsx` 13/13, `sources.test.ts` 104/104, `useAIViewKeybinds.test.tsx` 16/16, `StatsContainer.sync.test.tsx` 1/1, `tests/ui/rightSidebar/timeline.test.ts` 35/35, and `tests/bugbash/reproRules.test.ts` 4/4. - `make static-check` and `make crap-check` pass. - I did not run the changed `detailsShortcuts` repro locally. CI runs the repros on linux shard 1. ## Screenshots Retry card, dark theme, 170 px pane (the narrowest VS Code sidebar). Before: the button runs into the card's padding.  After: the hint wraps under "Retry".  After, at the story's 200 px pane: one line, unchanged.  The story at a 390 px viewport, after:  ## Follow-up found At 170 px, the `StreamErrorMessage` header actions (`ml-auto flex flex-wrap`) reach 2.6 px into their card's right padding. This is outside coder#5645, so the play checks only the retry card at 170 px. coder#7053 tracks it. ## Pixel snapshots Expected change: only `NarrowPane200` (dark, phone). Its pane gains the webview's 12 px padding, so the cards are 24 px narrower. The Retry button still fits on one line at 200 px. ## Risks Low. One class move on the Retry button, one ARIA attribute, comments, and test text. The repro change affects only cleanup. --- _Generated with `xum` • Model: `anthropic:claude-opus-5-5` • Thinking: `high` • Cost: `$7.75`_ <!-- mux-attribution: model=anthropic:claude-opus-5-5 thinking=high costs=7.75 -->
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0f248d4be5
ℹ️ 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: 7902d3cca6
ℹ️ 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: ea395500f5
ℹ️ 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: d6432b5ff7
ℹ️ 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. Keep it up! 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". |
The plan file was only viewable in the chat card or a modal behind Stats → Context. A Plan tab shows it next to the chat with the card's main actions, re-read when a turn ends or the window regains focus, and it keeps each workspace's scroll position across leaving and returning. "/plan open" and the Stats tab's plan row open the tab, and Ctrl/Cmd+Shift+B opens it on every layout. The modal viewer is removed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…fset Review follow-ups: a re-read that fails (the plan file deleted after it was shown) clears the shown plan, so the actions disable instead of copying or opening stale content; the scroll ref starts from the saved offset, so an unmount before the plan rendered no longer saves 0 over it; the story shell reads its props through `props`. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Review follow-ups: the Plan tab has scoped shortcuts (E opens the plan file in the editor, Y copies it) and takes focus when its shortcut opens it, like the Artifacts panel; a rejected editor launch (remote editor discovery during a dropped connection) shows a toast instead of an unhandled rejection; and OPEN_PLAN_TAB joins the held-input exemption for the narrow layout, where WorkspaceMenuBar already acts on it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Upstream bound Ctrl+Shift+B to "Toggle right sidebar"; the Plan tab now opens with Ctrl+Alt+Shift+P (Cmd+Option+Shift+P on Mac), next to the other Ctrl+Alt+Shift workspace shortcuts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…, no client gate for /plan open - The Stats tab's "Plan file" row asks the Plan tab to take focus (its button goes away with the tab switch); "/plan open" leaves focus in the chat input. OPEN_PLAN_TAB carries `focus`, and the sidebar arms its per-pane focus request on the event path too. - "/plan open" no longer needs a live client: the tab shows the reconnecting state itself. (Side chats never reach it: the side-chat gate refuses workspace-only commands before any handler.) - The Plan tab's E shortcut ignores key auto-repeat, and one editor launch runs at a time (the Edit button included). - PlanTab.test.tsx installs the shared test DOM like the sibling suites: the hand-rolled window swap left React's event delegation without the element classes it needs, so the shortcut tests only passed after another suite had installed them. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…chord; positional tab switches focus Plan - Main now uses Ctrl+Alt+Shift+P for the status page's transcript peek, so the Plan tab opens with Ctrl+Alt+Shift+L (Cmd+Option+Shift+L on Mac). - The shortcut is a Ctrl+Alt chord, so it ignores AltGr input like the new sidebar tab shortcut does: on layouts where AltGr+Shift+L types a character, the keystroke stays text. matchesOpenPlanTabKeybind serves the sidebar, the narrow-layout menu bar and the held-input queue. - Ctrl/Cmd+1-9 onto an open Plan tab focuses its panel, as for Review and Artifacts, so its E and Y shortcuts work right away. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he command palette alone
On a narrow window the shortcut opened the full-screen sidebar without asking
the Plan panel for focus, so focus landed on the tab label and E/Y did nothing.
It now goes through openPlanTab(workspaceId, { focus: true }), like the Stats
tab's Plan file row: RightSidebar requests the panel autofocus, and the menu
bar's listener shows the full-screen view.
Both shortcut handlers now skip a keystroke from the command palette, which
renders no modal dialog: the panel took focus behind it, so typing stopped
filtering commands and E/Y could act behind the overlay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… visible A Plan tab mounted inside the narrow layout's hidden sidebar (display: none) has no layout box, so setting scrollTop when the plan arrived did nothing, and showing the tab full-screen later keeps the same body without a remount. The restore now runs at once when the body has a layout box, and otherwise waits on a ResizeObserver until it gets one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps the hidden-body scroll test clean under the type-aware lint rules (unbound-method, no-empty-function). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Ctrl/Cmd+1-9 tab switch typed in the command palette still requested the Plan panel's autofocus, and the panel took focus behind the open palette: typing stopped filtering commands, and E/Y could act behind the overlay. The panel now declines a focus request while focus is in the palette. The check sits where focus moves, so it covers every way of requesting it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 93a9d0132a
ℹ️ 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 plan card shows a failed Implement / Continue in Auto send only in its own alert, in the transcript. The narrow layout's full-screen sidebar covers the transcript, so Implement from the Plan tab seemed to do nothing. The card's RUN_LATEST_PLAN_ACTION handler now attaches the action's outcome (its failure message, or null) to the request, and the Plan tab shows a failure as an error toast. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! 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". |
Summary
The plan an agent writes in Plan mode was only viewable in the chat card, or in a modal reached through Stats → Context → "Plan file". This adds a Plan tab to the right sidebar that shows the workspace's plan file next to the chat, with the plan card's main actions (Implement, Edit in the external editor, Copy) and single-key shortcuts for them.
/plan openand the Stats tab's "Plan file" row open the tab, andCtrl+Alt+Shift+L(Cmd+Option+Shift+Lon Mac) opens it on every layout. The modal viewer is removed.Background
Starting a session with the Plan agent produces a plan file under
~/.xum/plans/, but the sidebar had no view of it: Goal, Stats and Review sit next to the chat while the plan stayed in the transcript or a modal. The plan has no push channel (workspace.getPlanContentis a one-shot read and nothing watches the file), so the tab re-reads at the moments the file can have changed.Implementation
PlanTabis a lazy panel registered intabConfig/tabIcons/tabRegistry/TabLabelsand offered by the New tab launcher. It renders the plan with the existingMarkdownCore/PlanMarkdownContainer.usePlanFileis the former dialog's reader, extracted and given a refresh key: the tab re-reads when the workspace's stream ends (canInterruptflips false) and when the window regains focus (an external editor), and keeps a shown plan during a reconnect as the dialog did. A failed re-read clears the shown plan, its path and the actions, so a plan deleted or moved out from under the tab does not stay on screen.plan-tab:scroll-top:{workspaceId}, registered in the storage key registry) and restored once the plan renders again, mirroring the mobile project sidebar's list position. The offset ref is seeded from the saved value in a state initializer, so an unmount before the plan rendered writes it back unchanged.runLatestPlanActionhelper, now shared with the palette's "Implement Latest Plan" (same fallback toast when no card can run it).openInEditorwith the workspace's runtime config; a refusal, or a call that rejects because the connection dropped, shows an error toast. One launch runs at a time and key auto-repeat is ignored, so a held or repeatedEdoes not open several editor or placeholder windows. Copy uses the shared clipboard hook.OPEN_PLAN_TABfollows the Artifacts shortcut's wiring: both layout handlers (RightSidebar on the wide layout, WorkspaceMenuBar full-screen on the narrow one), the held-input queue while the sidebar chunk loads (with the narrow-layout exemption, so one keystroke never acts twice), the launcher hint, Settings → Keybinds and the collision test. Like the new-sidebar-tab chord, it ignores AltGr input (matchesOpenPlanTabKeybind), so on layouts where AltGr+Shift+L types a character the keystroke stays text. Opening by shortcut (on the narrow layout too, through the focus-requestingOPEN_PLAN_TABevent), from the launcher or by a Ctrl/Cmd+1-9 tab switch focuses the panel (per pane, like Artifacts), so the scopedE(edit) andY(copy) shortcuts work at once; a text field inside the tab keeps its letters. Like the other focus-moving shortcuts, it leaves a keystroke typed into the command palette alone, and the panel itself declines a focus request while focus is in the palette, which covers every way of asking for it (the open shortcut, a Ctrl/Cmd+1-9 switch, the Stats row). The chord isCtrl+Alt+Shift+Lbecause main now usesCtrl+Shift+Bto toggle the right sidebar andCtrl+Alt+Shift+Pfor the status page's transcript peek, and the free three-key chords collide with browser or terminal conventions.OPEN_PLAN_TABcustom event (openPlanTab(workspaceId, { focus? })) serves/plan openand the Stats tab's plan row. The Stats row asks for focus, since its button goes away with the tab switch;/plan openleaves focus in the chat input, and needs no client because the tab shows the reconnecting state itself. (Side chats never reach the command: the side-chat gate refuses workspace-only commands before any handler.)PlanFileDialog(with its story and test) is removed; its reconnect tests now render the tab.Validation
PlanTab.test.tsx(on the shared test DOM, like the sibling suites): read on mount, re-read on window focus, no-plan, read-error (clears a shown plan) and API-unavailable states, Implement's handled and unhandled paths, the scroll offset restored per workspace, kept across an unmount before the plan rendered and applied once a body mounted in a hidden sidebar becomes visible, theYandEshortcuts (not from a text field; one editor launch across a press, its auto-repeat and a second press while the launch is pending), and the focus-on-open handshake (declined while the command palette has focus).chatCommands.test.ts:/plan opendispatches the tab event instead of reading the plan or launching an editor, with or without a client.keybinds.test.ts: the new global binding passes the collision check on both platforms, and the same chord from AltGr does not match.WorkspaceMenuBar.test.tsx: on the narrow layout the shortcut shows the Plan tab full-screen and requests the panel's focus, and a keystroke from the command palette does neither.Features/RightSidebar/PlanTab(WithPlan, NoPlanYet) checked at sidebar width.Risks
Low. The tab is additive and shown only once opened. Two behaviours change:
/plan openopens the tab instead of the external editor (the editor stays one click or anEaway in the tab), and the Stats → Context "Plan file" row opens the tab instead of a modal. Refresh is driven by the stream-end flag and window focus, so an external edit made while the window keeps focus shows on the next turn end or focus change.