GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — File watcher emits backslash paths on Windows · Issue #35329 · anomalyco/opencode

File watcher emits backslash paths on Windows #35329

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
File watcher emits backslash paths on Windows#35329
Copy link
Assignees
Hona

Description

@edisonzerolam
edisonzerolam
opened on Jul 4, 2026
Issue body actions

Description

The file watcher emits paths with backslashes (\) on Windows, while the rest of the codebase expects forward slashes (/). This causes path comparison failures and inconsistent behavior.

Steps to reproduce

  1. Use @file\ mention or file operations in opencode on Windows
  2. Watch events contain backslash paths

OpenCode version

1.17.11

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions
    assigned
    Hona
    on Jul 4, 2026
  2. github-actions commented on Jul 4, 2026

    @github-actions
    github-actionsBot
    on Jul 4, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Bug: file watcher paths stop matching open files on Windows #17780: Bug: file watcher paths stop matching open files on Windows — describes the same root cause (watcher emits backslash paths while store/tab state uses forward slashes on Windows)
    • @file autocomplete fails completely on Windows due to path separator mismatch #23144: @file autocomplete fails completely on Windows due to path separator mismatch — same path separator mismatch root cause, also explicitly references Bug: file watcher paths stop matching open files on Windows #17780

    Please review those issues and consider whether this is a new aspect of the problem or the same underlying bug.

  3. edisonzerolam commented on Jul 4, 2026

    @edisonzerolam
    edisonzerolam
    on Jul 4, 2026
    Author
    More actions

    Fix: Normalize watcher-emitted paths by replacing \ with / on Windows before dispatching events.

    Branch: edisonzerolam/opencode:fix/win32-file-watcher-paths
    Cherry-pick:

    git fetch https://github.com/edisonzerolam/opencode fix/win32-file-watcher-paths
    git cherry-pick FETCH_HEAD
    

    File: packages/core/src/filesystem/watcher.ts

  4. C0d3N1nja97342
    added a commit that references this issue on Jul 9, 2026

    fix(filesystem): normalize watcher paths to forward slashes on Windows

    This issue will close once commit 8c8e03e is merged into the 'dev' branch.
    8c8e03e
  5. github-actions commented on Sep 3, 2026

    @github-actions
    github-actionsBot
    on Sep 3, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  6. github-actions
    closed this as not plannedon Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Hona
    Hona

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.