@devries-cameron20 / t3code Mirror · read-only / commits / 6b563bb758
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 06:45 UTC

perf(web): the composer banner stack compiles with the React Compiler (#20582)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 16, 2026 at 22:04 UTC 6b563bb758156c3dfe8d4b03c86ca12a995fac03
1 file changed +4 -3
apps/web/src/components/chat/ComposerBannerStack.tsx
+4 -3
@@ -68,9 +68,10 @@ export function ComposerBannerStack({ className, items, attachedAbove }: Compose
68 };
69 }, []);
70
71 - useEffect(() => {
72 - if (items.length < 2) setStackExpanded(false);
73 - }, [items.length]);
71 + // A stack that shrinks to one banner collapses, so the next stack starts collapsed.
72 + if (items.length < 2 && stackExpanded) {
73 + setStackExpanded(false);
74 + }
75
76 useLayoutEffect(() => {
77 if (stackExpanded && pendingFocusRef.current === "notice") {