anomalyco / anomalyco/opencode

If Windows drive letter mounting for WSL is disabled, `opencode web` will not function correctly

Open
#43,407 0 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 19, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description
  • If Windows drive letter mounting for WSL is disabled, opencode web will not function correctly.
lingh@DESKTOP-8UCKIRD:~$ opencode web
!  OPENCODE_SERVER_PASSWORD is not set; server is unsecured.

                                   ▄
  █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
  █  █ █  █ █▀▀▀ █  █ █    █  █ █  █ █▀▀▀
  ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀

  Web interface:      http://127.0.0.1:4096/
662 |     var file = this.spawnfile = options.file, spawnargs;
663 |     if (options.args === @undefined)
664 |       spawnargs = this.spawnargs = [];
665 |     else
666 |       validateArray(options.args, "options.args"), spawnargs = this.spawnargs = options.args;
667 |       if (this.#handle = Bun.spawn({
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ^
ENOENT: no such file or directory, posix_spawn '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe'
      path: "/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe",
   syscall: "spawn /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe",
     errno: -2,
 spawnargs: [
  "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-EncodedCommand", "UwB0AGEAcgB0ACAAIgBoAHQAdABwADoALwAvADEAMgA3AC4AMAAuADAALgAxADoANAAwADkANgAvACIA"
],
      code: "ENOENT"

      at spawn (node:child_process:667:35)
      at spawn (node:child_process:14:39)
      at <anonymous> (/$bunfs/root/chunk-xwzjdf62.js:2:3353)
Plugins

Null.

OpenCode version

1.18.18

Steps to reproduce
  1. On a fresh installation of Ubuntu 26.04 WSL, execute the following command:
cat /etc/wsl.conf

sudo tee --append /etc/wsl.conf <<EOF
[automount]
enabled=false
mountFsTab=false
[interop]
enabled=false
appendWindowsPath=false
EOF

# Run `wsl --shutdown` in Windows PowerShell
sudo apt update && sudo apt upgrade --assume-yes
sudo apt install --assume-yes libatomic1
curl -fsSL https://get.pnpm.io/install.sh | sh -
source ~/.bashrc
pnpm runtime set node 26.7.0 --global
pnpm add --global --allow-build=opencode-ai opencode-ai
opencode web
Screenshot and/or share link
  • Image
Operating System

Ubuntu 26.04 WSL

Terminal

Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.