anomalyco / anomalyco/opencode

Crash on startup: "Notification server not found: wsl:Ubuntu-24.04" after removing WSL server

Open
#39,071 2 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Jul 27, 2026.

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

Description

Version

OpenCode Desktop v1.18.4, Windows 10, WSL Ubuntu 24.04

Context

I configured a WSL server (Ubuntu 24.04) in the OpenCode UI, then removed it.

Bug

On the next startup, OpenCode crashes with:
Error: Notification server not found: wsl:Ubuntu-24.04

The app becomes unusable. Stack trace points to the renderer (HomeSessionRow, SessionTabAvatar, ensureServerState).

Manual fix

Edit %APPDATA%\ai.opencode.desktop\opencode.global.dat:

  1. Delete the orphan key "wsl:Ubuntu-24.04\0notification"
  2. Replace "server":"wsl:Ubuntu-24.04" with "server":"local" in the home section

After these edits, OpenCode restarts normally.

Suggestion

When a server (WSL or local) is removed or becomes unavailable, OpenCode should detect the missing state and automatically fall back to a valid/local server instead of crashing with an uncaught error.

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.