We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1a28ce commit 682abbfCopy full SHA for 682abbf
apps/sim/lib/copilot/orchestrator/index.ts
@@ -240,11 +240,12 @@ export async function orchestrateCopilotStream(
240
})
241
}
242
243
+ if (localPendingPromises.length > 0) {
244
+ await Promise.allSettled(localPendingPromises)
245
+ continue
246
+ }
247
+
248
if (claimableToolCallIds.length === 0) {
- if (localPendingPromises.length > 0) {
- await Promise.allSettled(localPendingPromises)
- continue
- }
249
logger.warn('Skipping async resume because no tool calls were claimable', {
250
checkpointId: continuation.checkpointId,
251
runId: continuation.runId,
0 commit comments