Skip to content

OpenCode has had issues with Windows network mapping support since a certain version #17749

Closed as not planned

Description

@woobhurk

Question

I use network mapping in Windows to map a WebDAV directory as a local drive (like Y:/), and I open a directory under this drive (Y:/some_dir/) with OpenCode. However, after OpenCode opens this directory, the status bar shows something like \\localhost@40101\DavWWWRoot\ instead of the actual path Y:/some_dir/. This causes frequent errors when I write code in OpenCode (such as file not found, etc.), and even leads to OpenCode crashes.

I remember that in versions of OpenCode before a certain release (maybe v1.2.20?), the status bar displayed the actual path Y:/some_dir/, and I could write code happily without encountering some inexplicable errors.

Activity

  1. AbigailJixiangyuyu commented on Mar 17, 2026

    @AbigailJixiangyuyu
    Contributor

    Thanks for the report. Could you provide more detailed reproduction steps, especially for the crash?

    In particular, it would help to know:

    the specific actions that trigger “file not found” errors,

    the exact steps that cause OpenCode to crash,

    whether the crash is consistent,

    and any logs, screenshots, or error messages.

    A minimal reproducible example would be ideal.

  2. woobhurk commented on Mar 18, 2026

    @woobhurk
    Author

    Thanks for the report. Could you provide more detailed reproduction steps, especially for the crash?

    In particular, it would help to know:

    the specific actions that trigger “file not found” errors,

    the exact steps that cause OpenCode to crash,

    whether the crash is consistent,

    and any logs, screenshots, or error messages.

    A minimal reproducible example would be ideal.

    The information of the environment I am using is as follows:

    1. Operating System: Windows 11 25H2 Build 26200.8037
    2. opencode Version: 1.2.27 (No custom instructions, plugin, or agent configured)
    3. Model: qwen3.5-plus
    4. Working Directory: A WebDAV storage mounted as a local disk via network mapping (Y:)

    The steps I followed are as follows:

    1. Open pwsh, switch the working directory to Y:\z\dcs-cloud-app, and launch opencode.
    2. Then \\localhost@40101\DavWWWRoot\... is displayed in the bottom-left corner of opencode:
    Image
    1. After waiting for a short while, opencode crashes with the following error message:
    Image
    TypeError: undefined is not an object (evaluating 'sync6.data.path.directory')
        at <anonymous> (B:/~BUN/root/src/index.js:360654:38)
        at runComputation (B:/~BUN/root/src/index.js:339208:24)
        at updateComputation (B:/~BUN/root/src/index.js:339191:17)
        at runTop (B:/~BUN/root/src/index.js:339314:24)
        at runQueue (B:/~BUN/root/src/index.js:339403:11)
        at completeUpdates (B:/~BUN/root/src/index.js:339350:15)
        at runUpdates (B:/~BUN/root/src/index.js:339336:20)
        at setStore (B:/~BUN/root/src/index.js:343459:10)
        at processTicksAndRejections (native:7:39)...

    Due to the fact that opencode crashes shortly after being launched, I am temporarily unable to reproduce errors such as "file editing error" and "file not found". I sincerely apologize for this inconvenience!

  3. AbigailJixiangyuyu commented on Mar 18, 2026

    @AbigailJixiangyuyu
    Contributor

    Sorry, I haven't been able to reproduce this on my side so far.
    I tested a similar setup on Windows with a WebDAV-mapped drive. I also saw the path briefly change to \localhost@40101\DavWWWRoot..., but opencode continued to run normally and did not crash.
    At the moment, I can't tell what is different in your environment or which part is failing. I'm sorry that I don't have a more concrete lead yet.
    Image

    Image
  4. Hona commented on Mar 18, 2026

    @Hona
    Member

    I will fix this, many path things coming down the pipeline

  5. woobhurk commented on Mar 19, 2026

    @woobhurk
    Author

    Thank you both for your attention to this issue! I will also try reinstalling opencode or testing on another computer to see if I can gather more information about the problem.

  6. woobhurk commented on Apr 2, 2026

    @woobhurk
    Author

    Update:

    In the latest version (1.3.13), I tried to run opencode in the WebDAV drive (Y:/project/), but got a new error like this:

    Error: Unexpected error, check log file at C:\Users\1234\.local\share\opencode\log\2026-04-02T032438.log for more details
    
    Unknown: FileSystem.access (\\localhost@40101\DavWWWRoot\.git)
    

    And the following is the full log content (2026-04-02T032438.log):

    INFO  2026-04-02T03:24:38 +646ms service=default version=1.3.13 args=[] opencode
    INFO  2026-04-02T03:24:38 +64ms service=default directory=\\localhost@40101\DavWWWRoot\dav\project creating instance
    INFO  2026-04-02T03:24:38 +7ms service=project directory=\\localhost@40101\DavWWWRoot\dav\project fromDirectory
    ERROR 2026-04-02T03:24:38 +54ms service=default name=PlatformError message=Unknown: FileSystem.access (\\localhost@40101\DavWWWRoot\.git) cause=Error: EIO: i/o error, access '\\localhost@40101\DavWWWRoot\.git' stack=Error
        at systemError (B:/~BUN/root/src/index.js:52520:136)
        at <anonymous> (B:/~BUN/root/src/index.js:27939:41)
        at processTicksAndRejections (native:7:39) fatal
    
  7. jianlins commented on May 2, 2026

    @jianlins

    similar error, cannot open project on network drive folder using web interface.

  8. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    Collaborator

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    If this is a bug or feature request, please open a new issue with the appropriate template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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