Resolves issue where new projects created via MCP tools weren't being
watched by the file synchronization service. The watch service now
automatically restarts when projects are added, removed, or when the
project configuration changes.
Implementation:
- Add file-based signaling mechanism for watch service restarts
- ProjectService signals restart when projects are added/removed
- WatchService checks for restart signal on each file change batch
- Watch loop recreates service instances to pick up new projects
- Add comprehensive tests for the restart signal mechanism
Note: New projects will only be picked up for watching after the next
file change occurs in any existing project, as the restart signal is
checked during file change processing.
Fixes#156🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>