Skip to content

v7.2.3 - Fix MCP Server Restart Timing

Latest

Choose a tag to compare

@thedotmack thedotmack released this 15 Dec 04:39
· 1 commit to main since this release

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_DELAY constant (2000ms) to hook-constants.ts
  • Add delay before ProcessManager.restart() call in worker-utils.ts
  • Fix pre-existing bug where port variable was undefined in error logging

🤖 Generated with Claude Code