Skip to content

Conversation

@athal7
Copy link
Contributor

@athal7 athal7 commented Jan 8, 2026

Summary

  • Allow desktop app to connect to an existing server instead of spawning its own sidecar
  • Add UI in server selection dialog to set/clear the default server
  • Show connection failure dialog with Retry/Start Local options when configured server is unreachable

Fixes #7371

@athal7 athal7 requested a review from adamdotdevin as a code owner January 8, 2026 18:47
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

The following comment was made by an LLM, it may be inaccurate:

Based on the search results, I found one potentially related PR:

Related PR:

This PR is related because it also deals with desktop server configuration, though it focuses on port flexibility rather than the default server URL feature. It may be worth reviewing to understand the existing server configuration approach.

The current PR (#7363) appears to be addressing a distinct feature: allowing the desktop app to connect to a pre-existing server instead of spawning its own sidecar, with UI for managing this connection preference.

Allow desktop app to connect to an existing server instead of always
spawning its own sidecar. On startup, if a default URL is configured,
the app will attempt to connect to it. If unreachable, shows a dialog
with Retry/Start Local options.

- Add get_default_server_url/set_default_server_url Tauri commands
- Add check_server_health() for remote server validation
- Update startup logic to check configured URL before spawning sidecar
- Pass serverUrl instead of port to frontend via __OPENCODE__
- Add Platform API methods for frontend access
@athal7 athal7 force-pushed the opencode/gentle-planet branch from f4c586e to 7a37df9 Compare January 8, 2026 19:46
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

Hey! Your PR title feat(desktop): support configuring default server URL doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: new feature
  • fix: bug fix
  • docs: documentation changes
  • chore: maintenance tasks
  • refactor: code refactoring
  • test: adding or updating tests

See CONTRIBUTING.md for details.

@athal7 athal7 changed the title feat(desktop): support configuring default server URL feat: support configuring default server URL for desktop Jan 8, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@adamdotdevin
Copy link
Contributor

@athal7 screenshots please!

@athal7
Copy link
Contributor Author

athal7 commented Jan 8, 2026

opencode-default-server.mov

@adamdotdevin
Copy link
Contributor

@Brendonovich you good with the tauri side of this one?

@Brendonovich Brendonovich force-pushed the opencode/gentle-planet branch from 6aa4260 to d332c0d Compare January 9, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support configuring default server URL for desktop

3 participants