Repository navigation
Conversation
…ocus from a panel control The open-panel composer focus effect reran whenever the composer handle registered. When the chat pane finished loading after the user had already moved focus inside the panel (a resize handle), focus jumped to the composer and the next Tab or arrow key went there. Focus moves to the composer only while nothing inside the panel holds focus. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…focus to leave the panel; the settings test waits for the Shortcuts page The late-composer guard now applies only until the panel has focused a composer once since it opened, so going back to the Chat tab from a plugin view focuses the composer again as before. The settings journey flaked with or without the guard: when the Shortcuts route takes longer than the router's 300 ms pendingMs, the pending match already marks the Shortcuts tab selected, the test pressed Back to chat before the route committed, and its onEnter never stored the last tab. The test now waits for the Shortcuts page itself. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 39 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
shell.e2e"the user resizes the panel from the keyboard" failed now and then on CI: focus was on the composer's "Add an attachment" button instead of the resize handle.Why
packages/frontend-defaults/src/routes/panel.tsx: the effect on[open, restoringFocus, composerFocus.handle]focused the composer every time a composer input handle registered. The chat pane registers its handle when it finishes mounting, so a composer that mounted late (about 540 ms after the user tabbed, under load) took focus from the control the user had already moved to.Fix
The effect does not move focus while focus is already inside the panel, until the panel has focused a composer once since it opened (
composerFocusedSinceOpen, reset on close). Opening from the launcher or Ctrl+., Back to chat, Escape from settings, re-login and returning to the Chat tab from a plugin view still focus the composer.Also a test fix in
settings.e2e: "settings open on General, then on the last section the user left" clicked Back while the Shortcuts route was still pending (routerdefaultPendingMs: 300), soonEnternever wrote the last tab. The test now waits for the Shortcuts page itself before leaving. This flake exists on main too.Runs
Resize test under 6x CPU throttle: 15/18 before, 20/20 and 24/24 after.
settings.e2eunthrottled: 4/10 failed before on a loaded machine, 10/10 after. shell, pane, settings and composer e2e: 101/101.🤖 Generated with Claude Code