Repository navigation
Studio: prevent tooltips from hidden run settings - #13614
Conversation
|
@codex review |
1 similar comment
|
@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: 759fb0cde7
ℹ️ 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".
| ref={asideRef} | ||
| data-tour="chat-settings" | ||
| data-slot="chat-settings-panel" | ||
| inert={!open} |
There was a problem hiding this comment.
Transfer focus before making the panel inert
When a keyboard user activates the panel's Close button, this update makes the button's ancestor inert while it still owns focus (and the newly keyed Tooltip also replaces that node). Native inert therefore drops focus to document.body; the sibling Open run settings button in chat-page.tsx is rendered without a ref or effect to receive it. This leaves no visible focus target after a keyboard close, so transfer focus to the opener or another stable control as part of the close transition.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not a regression: on the merge base the keyboard close leaves focus on the now invisible close button inside the collapsed w-0 panel (measured in a browser), so there was no visible focus target before either; with inert the browser moves focus to the document instead of a hidden control. Returning focus to the opener is a separate accessibility improvement outside this fix.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! 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
Fix a clipped black
Close run settingstooltip that can remain visible at the right edge of chat when its hidden trigger receives focus.The closed desktop settings panel uses
w-0 overflow-hidden, but its controls remain mounted and focusable. The tooltip is portaled outside the panel, so clipping the panel does not hide it.Keeps the rest of the settings content mounted and preserves the existing compact-layout behavior. One source file; two insertions and one deletion. No test files, generated assets, or evidence files in the diff.
Verification
npm run typecheck,npm run build, andnpm run i18n:check:strictpass.npm test: 11,992 passed, 9 failed. All 9 failures reproduce unchanged in the corresponding test files on the unmodified base (locale-format expectations and an unrelated image-settings restore test).npm run lintreports the same 1,413 diagnostics on base and head (1,085 errors, 328 warnings); no new diagnostics after normalizing shifted line numbers and formatter spacing.The screenshot-matching reproduction used diagnostic focus on the offscreen control; this does not establish the original reporter's exact mouse-only sequence or native Windows behavior.
Before / after (merge base 2e556ba vs head 759fb0c, Chromium 1600x1000)
Run settings closed, Tab pressed from the page start. Before: the 7th Tab stop is the hidden close button inside the 0-width panel, so focus disappears with no visible target (33 of 60 Tab stops land inside the collapsed panel). After: the closed panel is inert and Tab never enters it (0 of 60).
Panel open, hovering the close button: the "Close run settings" tooltip still shows on both sides.