mirror of https://github.com/kortix-ai/suna.git
refactor: continue running the agent when status is thread_run_end
This commit is contained in:
parent
4c34f99b95
commit
45947eb770
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue