Fix five bugs found in code review of worker pool rewrite
- export/worker.ts: fix realConsoleError reset ordering — restore
console.error *before* clearing isEarlyExiting, not after (the old
code was overwriting realConsoleError with the silenced no-op)
- type-check.ts: await typeCheckWorker.shutdown() in .then() callback
- next-dev-server.ts: await staticPathsWorker.shutdown() in finally block
- worker/index.ts: hoist aborted flag to instance field (_activityAborted)
and reset it in setOnActivityAbort() so each new progress spinner gets
exactly one abort notification across batches
- worker-pool.ts: on unexpected worker exit, drain the task queue to
already-available workers before spawning new ones to avoid unnecessary
cold-boot latency
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment