Bug Fixes
- Fix MCP server failures on plugin updates: Add 2-second pre-restart delay in
ensureWorkerVersionMatches()to give files time to sync before killing the old worker. This prevents the race condition where the worker restart happened too quickly after plugin file updates, causing "Worker service connection failed" errors.
Changes
- Add
PRE_RESTART_SETTLE_DELAYconstant (2000ms) tohook-constants.ts - Add delay before
ProcessManager.restart()call inworker-utils.ts - Fix pre-existing bug where
portvariable was undefined in error logging
🤖 Generated with Claude Code