Skip to content

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

Closed as not planned

Description

@drfrangipane

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.

Activity

  1. github-actions commented on Jul 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. huuthanh21 commented on Jul 28, 2026

    @huuthanh21

    I got the exact same issue, but it seems like this has been fixed in v1.18.7

  3. github-actions commented on Sep 28, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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