Skip to content

Commit 682abbf

Browse files
committed
Fix
1 parent d1a28ce commit 682abbf

File tree

1 file changed

+5
-4
lines changed
  • apps/sim/lib/copilot/orchestrator

1 file changed

+5
-4
lines changed

apps/sim/lib/copilot/orchestrator/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,12 @@ export async function orchestrateCopilotStream(
240240
})
241241
}
242242

243+
if (localPendingPromises.length > 0) {
244+
await Promise.allSettled(localPendingPromises)
245+
continue
246+
}
247+
243248
if (claimableToolCallIds.length === 0) {
244-
if (localPendingPromises.length > 0) {
245-
await Promise.allSettled(localPendingPromises)
246-
continue
247-
}
248249
logger.warn('Skipping async resume because no tool calls were claimable', {
249250
checkpointId: continuation.checkpointId,
250251
runId: continuation.runId,

0 commit comments

Comments
 (0)