Skip to content

Commit 45947eb

Browse files
committed
refactor: continue running the agent when status is thread_run_end
1 parent 4c34f99 commit 45947eb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

frontend/src/lib/api.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,17 +1091,8 @@ export const streamAgent = (
10911091
`[STREAM] Detected thread run end message for ${agentRunId}`,
10921092
);
10931093

1094-
// Add to non-running set
1095-
nonRunningAgentRuns.add(agentRunId);
1096-
10971094
// Notify about the message
10981095
callbacks.onMessage(rawData);
1099-
1100-
// Clean up
1101-
eventSource.close();
1102-
activeStreams.delete(agentRunId);
1103-
callbacks.onClose();
1104-
11051096
return;
11061097
}
11071098

0 commit comments

Comments
 (0)