Repository navigation
fix(web): the right panel no longer slides in again when you switch chats - #219
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
AadiJo
force-pushed
the
fix-thread-view-transition
branch
from
November 8, 2026 21:18
c4d9ff4 to
26e2e2e
Compare
This branch was previously 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.
The right panel played its slide-in animation again when moving between a chat and a new chat (or back) with the panel already open, even though it was open on both sides. Chats and new-chat drafts are different routes, so the move rebuilds the chat view and the panel, and the panel slid in from zero width on every mount.
The panel now slides only when it is opened or closed inside the same chat. When it appears because the view was rebuilt or the chat changed, it snaps to its width.
usePanelPresencetakes the chat as a context and reports whether the last open change should animate, andPreviewPanelShellsnaps instead of sliding when it should not.One visible change: going from a chat with the panel closed to a chat with it open now shows the panel at once instead of sliding it in. The first auto-open of a chat's CAD panel still slides, since that is a real open.
Proof:
apps/server/scripts/cad-panel-thread-switch-e2e.tsruns the real app with a STEP project and a live agent turn, and records every panel slide. Before the fix, chat to draft and draft to chat each started a 0px to 760px slide. After the fix, those moves and chat to chat moves start none, and toggling the panel in one chat still slides both ways.Reviewed with sol-loop: 1 round with gpt-6.1-sol. Sol verdict: approved
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.