Skip to content

Commit 12cdc67

Browse files
committed
fix(webapp): closing the agent panel drops fullscreen — reopen is always the side panel
1 parent e19049b commit 12cdc67

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/webapp/app/components/dashboard-agent/DashboardAgent.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ export function DashboardAgent({
121121
if (!next) {
122122
// No chat is on screen any more — the dot counts every unread wake again.
123123
visibleChat.current = null;
124+
// Closing leaves fullscreen behind: reopening always starts as the side
125+
// panel, whatever mode the panel was in when it was dismissed.
126+
setFullscreen(false);
127+
writeAgentFullscreen(false);
124128
setRequestedMessage(undefined);
125129
setOpenChatRequest(undefined);
126130
// An abandoned card leaves no trace (§2.2) — including no pending request

0 commit comments

Comments
 (0)