Clear stale chat stream indicators

This commit is contained in:
pewdiepie-archdaemon
2026-06-28 22:06:20 +00:00
parent c0a68acfc8
commit 4143bfaa2a
2 changed files with 23 additions and 3 deletions
+4 -1
View File
@@ -4141,7 +4141,10 @@ import { wireArrowUpRecall, getLastUserMessageFromChatHistory } from './composer
if (!sessionId) return;
try {
const res = await fetch(`${API_BASE}/api/research/status/${sessionId}`);
if (!res.ok) return; // 404 = no research for this session
if (!res.ok) {
if (sessionModule && sessionModule.clearResearching) sessionModule.clearResearching(sessionId);
return; // 404 = no research for this session
}
const data = await res.json();
if (data.status === 'done') {