Skip to content

fix(web): the right panel no longer slides in again when you switch chats - #219

Merged
AadiJo merged 3 commits into
mainfrom
fix-thread-view-transition
Nov 8, 2026
Merged

AadiJo merged 3 commits into
mainfrom
fix-thread-view-transition

Conversation

@AadiJo

@AadiJo AadiJo commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

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. usePanelPresence takes the chat as a context and reports whether the last open change should animate, and PreviewPanelShell snaps 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.ts runs 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


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@vercel

vercel Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cadsense Skipped Skipped Nov 8, 2026 9:18pm UTC

@AadiJo
AadiJo force-pushed the fix-thread-view-transition branch from c4d9ff4 to 26e2e2e Compare November 8, 2026 21:18
@AadiJo
AadiJo merged commit a242022 into main Nov 8, 2026
11 checks passed
@AadiJo
AadiJo deleted the fix-thread-view-transition branch November 26, 2026 19:50

This branch was previously deployed

1 inactive deployment
Preview — 26e2e2e2 Deployed Nov 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant