anomalyco / anomalyco/opencode
Crash on startup: "Notification server not found: wsl:Ubuntu-24.04" after removing WSL server
@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:
- Delete the orphan key
"wsl:Ubuntu-24.04\0notification" - Replace
"server":"wsl:Ubuntu-24.04"with"server":"local"in thehomesection
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.