Skip to content

bug: EPERM file watcher error on Windows when watching workspace files #287

@Sun-sunshine06

Description

@Sun-sunshine06

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions