Description
The file watcher (files.watch) throws an EPERM: operation not permitted, watch error on Windows. This likely occurs when the watcher tries to monitor files that are locked by another process or in a directory with restricted permissions.
Log Evidence
From main.log (2026-05-04):
[2026-05-04 ...] error: files.watch.error { error: 'Error: EPERM: operation not permitted, watch ...' }
Environment
- Version: v0.2 (experimental)
- Platform: Windows 11
Expected Behavior
File watcher should gracefully handle permission errors — either retry with backoff, fall back to polling, or silently skip the inaccessible file without crashing the watcher for the entire workspace.
Impact
File change detection breaks for the affected workspace, meaning the app won't pick up external edits to design files.
Description
The file watcher (
files.watch) throws anEPERM: operation not permitted, watcherror on Windows. This likely occurs when the watcher tries to monitor files that are locked by another process or in a directory with restricted permissions.Log Evidence
From
main.log(2026-05-04):Environment
Expected Behavior
File watcher should gracefully handle permission errors — either retry with backoff, fall back to polling, or silently skip the inaccessible file without crashing the watcher for the entire workspace.
Impact
File change detection breaks for the affected workspace, meaning the app won't pick up external edits to design files.