fix: resolve workspace publish failures and scheduler event loop starvation (#28063)

This commit is contained in:
Ramón Medrano Llamas
2026-06-21 23:27:18 +02:00
committed by GitHub
parent c22137ea0a
commit be7ba2c22a
5 changed files with 29 additions and 12 deletions
+1 -1
View File
@@ -540,7 +540,7 @@ export class Scheduler {
if (isWaitingForExternal && this.state.isActive) {
// Yield to the event loop to allow external events (tool completion, user input) to progress.
await new Promise((resolve) => queueMicrotask(() => resolve(true)));
await new Promise((resolve) => setTimeout(resolve, 10));
return true;
}