Skip to content

Desktop crashes on restart: "Notification server not found: wsl:Ubuntu" #37171

Closed

Description

@54Lynnn

Description

Error: Notification server not found: wsl:Ubuntu
at ensure (oc://renderer/assets/main-BM2W0EK3.js:86341:24)
at selected (oc://renderer/assets/main-BM2W0EK3.js:86373:28)
at Object.ready (oc://renderer/assets/main-BM2W0EK3.js:86375:20)
at Object.fn (oc://renderer/assets/main-BM2W0EK3.js:159881:23)
at runComputation (oc://renderer/assets/main-BM2W0EK3.js:487:22)
at updateComputation (oc://renderer/assets/main-BM2W0EK3.js:470:3)
at runTop (oc://renderer/assets/main-BM2W0EK3.js:566:7)
at runUserEffects (oc://renderer/assets/main-BM2W0EK3.js:660:39)
at oc://renderer/assets/main-BM2W0EK3.js:634:35
at runUpdates (oc://renderer/assets/main-BM2W0EK3.js:583:17)
at completeUpdates (oc://renderer/assets/main-BM2W0EK3.js:634:18)
at runUpdates (oc://renderer/assets/main-BM2W0EK3.js:584:5)
at completeLoad (oc://renderer/assets/main-BM2W0EK3.js:167:5)
at loadEnd (oc://renderer/assets/main-BM2W0EK3.js:162:14)
at oc://renderer/assets/main-BM2W0EK3.js:232:28

Plugins

No response

OpenCode version

1.18.2

Steps to reproduce

  1. Open OpenCode Desktop on Windows
  2. Connect to a WSL2 Ubuntu server (opencode serve --hostname 0.0.0.0 --port 7692)
  3. Use the app normally (send a message in a WSL project)
  4. Close the Desktop app
  5. Re-open the Desktop app
  6. Crash: Error: Notification server not found: wsl:Ubuntu

Screenshot and/or share link

No response

Operating System

Windows 11 Pro (Build 26200), WSL2 Ubuntu

Terminal

Windows Terminal → bash (WSL2)

Activity

  1. github-actions commented on Jul 15, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • OpenCode version: not provided (required)
    • Operating System: not provided (required)
    • Steps to reproduce: not provided — please describe what you were doing when the crash occurred (e.g. restarting the desktop app with a WSL server configured)
    • Terminal: not provided

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. added
    needs:complianceThis means the issue will auto-close after 2 hours.
    and removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Jul 15, 2026
  3. github-actions commented on Jul 15, 2026

    @github-actions
    Contributor

    Thank you for updating the issue! All the required information is now present — the error message, steps to reproduce, OpenCode version, OS, and terminal details are all filled in. The compliance flag has been removed. We'll take a look!

  4. Vidar-50rr commented on Jul 15, 2026

    @Vidar-50rr

    Same issue for me

    Error: Notification server not found: wsl:Ubuntu
        at ensure (oc://renderer/assets/main-BM2W0EK3.js:86341:24)
        at selected (oc://renderer/assets/main-BM2W0EK3.js:86373:28)
        at Object.ready (oc://renderer/assets/main-BM2W0EK3.js:86375:20)
        at Object.fn (oc://renderer/assets/main-BM2W0EK3.js:159881:23)
        at runComputation (oc://renderer/assets/main-BM2W0EK3.js:487:22)
        at updateComputation (oc://renderer/assets/main-BM2W0EK3.js:470:3)
        at runTop (oc://renderer/assets/main-BM2W0EK3.js:566:7)
        at runUserEffects (oc://renderer/assets/main-BM2W0EK3.js:660:39)
        at oc://renderer/assets/main-BM2W0EK3.js:634:35
        at runUpdates (oc://renderer/assets/main-BM2W0EK3.js:583:17)
        at completeUpdates (oc://renderer/assets/main-BM2W0EK3.js:634:18)
        at runUpdates (oc://renderer/assets/main-BM2W0EK3.js:584:5)
        at completeLoad (oc://renderer/assets/main-BM2W0EK3.js:167:5)
        at loadEnd (oc://renderer/assets/main-BM2W0EK3.js:162:14)
        at oc://renderer/assets/main-BM2W0EK3.js:232:28
    
  5. BadLemon5267 commented on Jul 17, 2026

    @BadLemon5267

    The same as version 1.18.3

    I'm working on v1.18.2, set the server WSL to default, then update and reboot.
    Start up and show the error as follows:

    Error: Notification server not found: wsl:Ubuntu
    at ensure (oc://renderer/assets/main-hem2imez.js:86345:24)
    at selected (oc://renderer/assets/main-hem2imez.js:86377:28)
    at Object.ready (oc://renderer/assets/main-hem2imez.js:86379:20)
    at Object.fn (oc://renderer/assets/main-hem2imez.js:159925:23)
    at runComputation (oc://renderer/assets/main-hem2imez.js:487:22)
    at updateComputation (oc://renderer/assets/main-hem2imez.js:470:3)
    at runTop (oc://renderer/assets/main-hem2imez.js:566:7)
    at runUserEffects (oc://renderer/assets/main-hem2imez.js:660:39)
    at oc://renderer/assets/main-hem2imez.js:634:35
    at runUpdates (oc://renderer/assets/main-hem2imez.js:583:17)
    at completeUpdates (oc://renderer/assets/main-hem2imez.js:634:18)
    at runUpdates (oc://renderer/assets/main-hem2imez.js:584:5)
    at completeLoad (oc://renderer/assets/main-hem2imez.js:167:5)
    at loadEnd (oc://renderer/assets/main-hem2imez.js:162:14)
    at oc://renderer/assets/main-hem2imez.js:232:28

    Here are exported logs.
    opencode-debug-20260717T032538.zip

  6. huoyujia081 commented on Jul 17, 2026

    @huoyujia081

    My current temporary workaround is:

    1. Delete the opencode.settings file in the %appdata%\ai.opencode.desktop directory
    2. Restart OpenCode Desktop on Windows
    3. Add a WSL server and set it as the default. This step is very important; otherwise, you'll have to delete opencode.settings again before it can start.
  7. BadLemon5267 commented on Jul 17, 2026

    @BadLemon5267

    @huoyujia081 I tried deleting the opencode.settings file and restarting OpenCode Desktop, but it still shows the error: Notification server not found: wsl:Ubuntu. The new opencode.settings file doesn't even contain a WSL server entry.

    I delete %appdata%\ai.opencode.desktop directory and reinstall OpenCode Desktop, it works well now.

    I've been using it for a while, but it still throws the same error after a restart.😮

  8. Aziteee commented on Jul 17, 2026

    @Aziteee

    Same issue here. I hope the app to still start up even if one of the servers is down.

  9. fermumen commented on Jul 20, 2026

    @fermumen

    Additional confirmed repro on OpenCode Desktop 1.18.3 (Windows 11 + WSL2, distro Ubuntu-26.04).

    This was unrelated to plugins. Desktop persisted:

    {
      "wslServers": { "servers": [{ "id": "wsl:Ubuntu-26.04", "distro": "Ubuntu-26.04" }] },
      "defaultServerUrl": "wsl:Ubuntu-26.04"
    }

    in %APPDATA%\ai.opencode.desktop\opencode.settings.

    The exported debug logs show a startup race:

    • 12:23:39.683 WSL sidecar starting
    • 12:23:40.362 renderer fatal: Notification server not found: wsl:Ubuntu-26.04
    • 12:23:41.365 WSL sidecar ready

    So the renderer selects the configured default WSL server about one second before it is registered as ready. Clearing only defaultServerUrl while keeping the WSL server entry let the app start using the local sidecar.

    Suggested fix: defer/default-route notification-server selection until the selected sidecar is available, rather than calling ensure() fatally during initialization.

  10. opencode-agent commented on Jul 20, 2026

    @opencode-agent
    Contributor

    Fixed by #37890.

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