codemap
codemap copied to clipboard
watch: daemon keeps running after its project root is deleted (agent worktrees)
Symptom
`codemap watch daemon
Cause
The daemon has no check that its root still exists; it only exits on `watch stop` or a signal.
Fix
Periodically stat the root and exit cleanly when it is gone.