There was an error while loading. Please reload this page.
2 parents 2bcd7eb + 70c1092 commit 83b7f07Copy full SHA for 83b7f07
1 file changed
apps/webapp/app/components/dashboard-agent/DashboardAgentPanel.tsx
@@ -146,6 +146,9 @@ export function DashboardAgentPanel({
146
if (!res.ok && res.status !== 404) {
147
console.error(`Dashboard agent: failed to open chat ${id} (${res.status})`);
148
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;
152
}
153
const data = res.ok ? ((await res.json()) as OpenedChatResponse) : undefined;
154
if (seq !== openChatRequestSeq.current) return;
0 commit comments