From 78768ee314cafe66b263f14a850bcc95315fa445 Mon Sep 17 00:00:00 2001 From: extoci Date: Sat, 10 Oct 2026 11:54:49 +0000 Subject: [PATCH] fix(web): apply maximize requests through the right-panel store The per-thread maximization migration removed the local state setter but left the OS-link maximize effect calling it, breaking web typecheck. Apply consumed requests to the same environment-scoped thread in the store so maximization survives navigation. Verified web-only typecheck, 85 focused existing tests, and targeted lint and formatting. --- apps/web/src/components/ChatView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 2620f363adc8..d2ec0af4ed20 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -6056,9 +6056,9 @@ export default function ChatView(props: ChatViewProps) { useEffect(() => { if (!canMaximizeRightPanel) return; if (useRightPanelStore.getState().consumeMaximizeRequest(routeThreadRef)) { - setMaximizedRightPanelThreadKey(routeThreadKey); + useRightPanelStore.getState().setMaximized(routeThreadRef, true); } - }, [canMaximizeRightPanel, routeThreadKey, routeThreadRef]); + }, [canMaximizeRightPanel, routeThreadRef]); const toggleRightPanelMaximized = useCallback(() => { if (!canMaximizeRightPanel || !activeThreadRef) return; useRightPanelStore.getState().setMaximized(activeThreadRef, !rightPanelMaximized);