Skip to content

Commit 83b7f07

Browse files
committed
merge: openChat chat-pointer transient 5xx review-comment fixes
2 parents 2bcd7eb + 70c1092 commit 83b7f07

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ export function DashboardAgentPanel({
146146
if (!res.ok && res.status !== 404) {
147147
console.error(`Dashboard agent: failed to open chat ${id} (${res.status})`);
148148
toast.error("We couldn't open that chat. Try again in a moment.");
149+
// Transient failure: keep the stored pointer so the chat can be reopened.
150+
if (seq === openChatRequestSeq.current) setActive(null);
151+
return;
149152
}
150153
const data = res.ok ? ((await res.json()) as OpenedChatResponse) : undefined;
151154
if (seq !== openChatRequestSeq.current) return;

0 commit comments

Comments
 (0)