Skip to content

[Desktop] Error: could not connect to server #6015

Closed

Description

@Domanffe

Description

after update a see this: Error: Could not connect to server. Is there a server running at http://127.0.0.1:57923?
at i (http://tauri.localhost/assets/index-CC1JT69m.js:1429:16178)

OpenCode version

v1.0.191

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Windows 11

Solutions(it should help)

  1. @adamdotdevin said "If you run into this issue, you need to open task manager and kill all bun/opencode processes, then reinstall the desktop app."

  2. My observations: if the reinstallation didn't help (as it did for me), then most likely some application is already using the port that OpenCode needs to work.

Activity

  1. ArmDaniel commented on Dec 23, 2025

    @ArmDaniel

    I have exactly the same error. It seems to open in the browser at that exact port and it works there, but the desktop app is not

  2. adamdotdevin commented on Dec 23, 2025

    @adamdotdevin
    Member

    Are you guys running the OpenCode TUI/server before starting the desktop app? This error indicates your server is out of date. The desktop app also ships a server with it, you may have to reinstall the app.

  3. zitongcharliedeng commented on Dec 23, 2025

    @zitongcharliedeng

    +1

  4. adamdotdevin commented on Dec 23, 2025

    @adamdotdevin
    Member

    If you run into this issue, you need to open task manager and kill all bun/opencode processes, then reinstall the desktop app.

  5. changed the title [-]Upgraded from v1.0.190 to v1.0.191 and it gives an error[/-] [+][Desktop] Error: could not connect to server[/+] on Dec 23, 2025
  6. Domanffe commented on Dec 23, 2025

    @Domanffe
    Author

    reinstalling the app helped me, but it's still weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions