From 45947eb770740ae7b53c107f024403334f7a2270 Mon Sep 17 00:00:00 2001 From: yeyan1996 <1996yeyan@gmail.com> Date: Tue, 29 Jul 2025 10:20:46 -0700 Subject: [PATCH] refactor: continue running the agent when status is thread_run_end --- frontend/src/lib/api.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts index 5de29003..082b4a68 100644 --- a/frontend/src/lib/api.ts +++ b/frontend/src/lib/api.ts @@ -1091,17 +1091,8 @@ export const streamAgent = ( `[STREAM] Detected thread run end message for ${agentRunId}`, ); - // Add to non-running set - nonRunningAgentRuns.add(agentRunId); - // Notify about the message callbacks.onMessage(rawData); - - // Clean up - eventSource.close(); - activeStreams.delete(agentRunId); - callbacks.onClose(); - return; }