refactor: continue running the agent when status is thread_run_end

This commit is contained in:
yeyan1996 2025-07-29 10:20:46 -07:00
parent 4c34f99b95
commit 45947eb770
1 changed files with 0 additions and 9 deletions

View File

@ -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;
}