Bug Fixes
Fix Worker Startup Timeout (#811, #772, #729)
Resolves the "Worker did not become ready within 15 seconds" timeout error that could prevent hooks from communicating with the worker service.
Root cause: isWorkerHealthy() and waitForHealth() were checking /api/readiness, which returns 503 until full initialization completes — including MCP connection setup that can take 5+ minutes. Hooks only have a 15-second timeout window.
Fix: Switched to /api/health (liveness check), which returns 200 as soon as the HTTP server is listening. This is sufficient for hook communication since the worker accepts requests while background initialization continues.
Files changed:
src/shared/worker-utils.ts—isWorkerHealthy()now checks/api/healthsrc/services/infrastructure/HealthMonitor.ts—waitForHealth()now checks/api/healthtests/infrastructure/health-monitor.test.ts— Updated test expectations
PR Merge Tasks
- PR #820 merged with full verification pipeline (rebase, code review, build verification, test, manual verification)