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
- Add a remote server with authentication (username + password) in the desktop app
- Set this server as default using the dropdown menu ("Set as default")
- Restart the desktop app
- 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)
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 thesetupServerConnection()function callscheckHealthOrAskRetry(customUrl)without passing credentials. ThecheckHealth()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 --attachcommand path.Plugins
None
OpenCode version
1.2.17 (Desktop app - Electron)
Steps to reproduce
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)