anomalyco / anomalyco/opencode

Desktop 1.18.4 + WSL2 Ubuntu: shows 'OpenCode not installed' after install; version check fails

Open
#38,309 3 comments 1 reaction 1 assignee View on GitHub

@Hona is already working on this.

Since Jul 22, 2026.

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

Description

Description

OpenCode Desktop 1.18.4 detects the Ubuntu WSL distro but shows "OpenCode not installed" even though OpenCode 1.18.4 is installed and working via the CLI in WSL.

Clicking "Install OpenCode" in the Desktop app appears to succeed, but immediately fails with:

OpenCode update finished but Ubuntu still reports no version; expected 1.18.4

This means the Desktop app cannot detect or verify the OpenCode installation inside the WSL distro, rendering the Desktop launcher unusable for WSL users.

Plugins

none

OpenCode version

1.18.4 (both Desktop on Windows and CLI in WSL)

Steps to reproduce
  1. Install OpenCode Desktop 1.18.4 on Windows 11
  2. Have an Ubuntu WSL2 distro set as default
  3. Install opencode globally in WSL: npm install --global opencode-ai@latest (confirms v1.18.4)
  4. Open OpenCode Desktop — it detects Ubuntu but shows "OpenCode not installed"
  5. Click "Install OpenCode"
  6. Observe: "OpenCode update finished but Ubuntu still reports no version; expected 1.18.4"
Verification

OpenCode is installed at a stable system path that does not depend on .bashrc, interactive shell, or fnm initialization:

$ readlink -f /usr/local/bin/opencode
/usr/local/lib/node_modules/opencode-ai/bin/opencode.js

$ /usr/local/bin/opencode --version
1.18.4

$ which opencode
/usr/local/bin/opencode

Direct invocation via wsl (mimicking how the Desktop app calls into the distro) also works:

$ wsl -d Ubuntu -- opencode --version
1.18.4

The binary is callable without any shell initialization. The Desktop app's version check is failing despite the installation being correct and reachable through the same WSL invocation path the Desktop app uses.

Screenshot and/or share link
Image

The Desktop dialog shows:

  • Ubuntu detected as the distro
  • "OpenCode not installed" status
  • After clicking "Install OpenCode": OpenCode update finished but Ubuntu still reports no version; expected 1.18.4
Operating System
  • Windows 11 build 26200.8893
  • WSL 2.7.10.0
  • Ubuntu, WSL2, default distro
  • OpenCode Desktop 1.18.4
  • OpenCode in WSL 1.18.4
  • Node v24.18.0 via fnm
  • npm 11.16.0
Terminal

Windows Terminal + OpenCode Desktop

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.