mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-24 02:07:16 -07:00
fix: resolve workspace publish failures and scheduler event loop starvation (#28063)
This commit is contained in:
committed by
GitHub
parent
c22137ea0a
commit
be7ba2c22a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user