Repository navigation
v1.2.1 - Bugfix Release
Fix daemon stop IPC race condition
Bug: daemon stop via IPC would timeout because stop() closed the IPC server before sending response back to client.
Symptoms:
daemon stopreported "Daemon is not running" even when daemon was running- Daemon process remained alive after stop command
- PID file was missing but process still active
Fix:
- Use
setImmediate()to schedule stop after response is sent - Add
'stopped'event emission for process cleanup - Keep-alive interval checks
daemon.isRunning()to exit cleanly
Sequence now:
- Client sends stop command
- Server responds immediately with success
- Server stops after response (via setImmediate)
- Parent process detects stop and exits
Stats: 224 tests passing
🤖 Generated with Claude Code