mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-11 12:27:13 +00:00
Clear stale chat stream indicators
This commit is contained in:
+4
-1
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user