Skip to content

Commit a2b8ec1

Browse files
nandastoneclaude
andcommitted
fix(web): palette rename restores a maximized panel
Renaming from the palette while the right panel was maximized opened the title input inside the collapsed chat column, out of sight. The rename request now restores the chat column first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 113363f commit a2b8ec1

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎apps/web/src/components/chat/ChatHeader.tsx‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
2424
import { toastManager } from "../ui/toast";
2525
import { useThreadActionMenu } from "~/hooks/useThreadActionMenu";
2626
import { readLocalApi } from "~/localApi";
27+
import { useRightPanelStore } from "~/rightPanelStore";
2728
import { threadEnvironment } from "../../state/threads";
2829
import { serverEnvironment } from "../../state/server";
2930
import { canShareWithGuestAtom } from "./guestShareAvailability";
@@ -196,7 +197,15 @@ export const ChatHeader = memo(function ChatHeader({
196197
onStartRename: startRename,
197198
canShareWithGuest,
198199
});
199-
useEffect(() => subscribeThreadRenameStart(startRename), [startRename]);
200+
useEffect(
201+
() =>
202+
subscribeThreadRenameStart(() => {
203+
// A maximized right panel collapses the chat column, which would hide the title input.
204+
useRightPanelStore.getState().setMaximized(activeThreadRef, false);
205+
startRename();
206+
}),
207+
[activeThreadRef, startRename],
208+
);
200209
const titleButtonRef = useRef<HTMLButtonElement | null>(null);
201210
const titleMenuTimerRef = useRef<number | null>(null);
202211
const cancelPendingTitleMenu = () => {

0 commit comments

Comments
 (0)