Skip to content

fix(desktop): Desktop app fails to connect to authenticated remote server on startup #16123

Closed as not planned

Description

@DaneelOlivaw1

Description

When a remote server requiring authentication (username/password) is set as the default server, the desktop app fails to connect on startup with an error message.

The root cause is in packages/desktop-electron/src/main/index.ts, where the setupServerConnection() function calls checkHealthOrAskRetry(customUrl) without passing credentials. The checkHealth() function supports a password parameter, but it's not being used during the startup health check.

This is related to #16096, which has a similar issue in the CLI run --attach command path.

Plugins

None

OpenCode version

1.2.17 (Desktop app - Electron)

Steps to reproduce

  1. Add a remote server with authentication (username + password) in the desktop app
  2. Set this server as default using the dropdown menu ("Set as default")
  3. Restart the desktop app
  4. Observe connection failure error dialog

Screenshot and/or share link

No response

Operating System

macOS (also affects Windows and Linux desktop apps)

Terminal

N/A (Desktop app issue, not terminal-related)

Activity

  1. added
    webRelates to opencode on web / desktop
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Mar 5, 2026
  2. added a commit that references this issue on Mar 5, 2026
    cc4f078
  3. github-actions commented on Mar 5, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now meets our contributing guidelines — all required fields are filled in with real content. We appreciate you taking the time to provide the reproduction steps and system info.

  4. removed
    webRelates to opencode on web / desktop
    on May 3, 2026
  5. github-actions commented on Jul 5, 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