fix(web): stabilize right panel transitions - #9554
Merged
maria-rcks merged 3 commits intoSep 4, 2026
Merged
Conversation
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.
The right panel animates from full width back to its stored width when panel animations are enabled, squeezing the chat column during restore. Its layout controls also switch DOM ownership on open, which makes them slide in with the panel.
This suppresses the width transition for resize and maximize state changes while preserving the configured open and close behavior. Inline layouts now keep one viewport-fixed control cluster mounted above the clipped chat column, so the controls remain stationary and clickable while the panel opens, closes, maximizes, and restores.
Before
After
Validation:
Model:
gpt-5.6-solHarness: T3 Code Codex
Note
Low Risk
UI-only layout and CSS transition behavior in the chat right panel; no auth, data, or API changes.
Overview
Fixes janky right-panel UX when animations are on: restoring from maximize no longer animates width back to the stored size (which squeezed the chat), and inline maximize/layout controls no longer ride in with the panel during open/close.
Layout controls stay in a viewport-fixed cluster above the workspace (only when not using the sheet layout), instead of being passed into
RightPanelTabsaslayoutControls.rightPanelControlsInPanelnow also requiresshouldUseRightPanelSheet, so inline desktop keeps one stationary control bar.PreviewPanelShelltracks open/width/maximized and temporarily setstransitionDuration: 0mswhen width or maximize changes while open stays the same, so resize and maximize toggles skip the width transition while normal open/close animations still run.Reviewed by Cursor Bugbot for commit 82aa576. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Stabilize right panel transitions in
PreviewPanelShellandChatViewContentPreviewPanelShelluse full width, disable the max-width hook, and no longer render a resize handle.Macroscope summarized 82aa576.