Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/src/components/ChatView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10331,7 +10331,7 @@ export default function ChatView(props: ChatViewProps) {
{rightPanelPresent && !shouldUseRightPanelSheet && activeThreadRef ? (
<RightPanelTabs
mode="inline"
widthStorageKey={`t3code:preview-panel-width:${activeThreadKey}`}
widthStorageKey="t3code:preview-panel-width"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium components/ChatView.tsx:10334

Existing users lose their saved preview-panel widths after this change: useResizableWidth reads only t3code:preview-panel-width, so it does not find values stored under t3code:preview-panel-width:${activeThreadKey} and resets the panel to its default (or a shared stale value) until it is resized again. Restore the per-thread storage key, or add an explicit migration/fallback from the legacy keys.

🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/web/src/components/ChatView.tsx around line 10334:

Existing users lose their saved preview-panel widths after this change: `useResizableWidth` reads only `t3code:preview-panel-width`, so it does not find values stored under `t3code:preview-panel-width:${activeThreadKey}` and resets the panel to its default (or a shared stale value) until it is resized again. Restore the per-thread storage key, or add an explicit migration/fallback from the legacy keys.

open={rightPanelOpen}
maximized={rightPanelMaximized}
surfaces={renderedRightPanelSurfaces}
Expand Down
Loading