GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(desktop): improve server detection & connection logic by Brendonovich · Pull Request #7962 · anomalyco/opencode

Conversation

@Brendonovich

@Brendonovich Brendonovich commented Jan 12, 2026

Copy link
Copy Markdown
Member

Refactors a lot of the logic involved with determining which server to connect to on startup, how we test server health, and how we handle retries and fall back to local servers (there was also some bugs with how local servers were being initialized - --port={port} is invalid syntax). Not sure how much this will solve but it's a definitive improvement.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Brendonovich added 2 commits January 12, 2026 16:53
@Brendonovich
overhaul server connection logic
ba5c66f
@Brendonovich
retrieve server url via ensure_server_ready
57f701e
@Brendonovich
Brendonovich requested a review from adamdotdevin as a code owner January 12, 2026 09:45
@github-actions github-actions Bot added the needs:title label Jan 12, 2026
@github-actions

github-actions Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Hey! Your PR title desktop: improve server detection & connection logic doesn't follow conventional commit format.

Please update it to start with one of:

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

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Brendonovich Brendonovich changed the title desktop: improve server detection & connection logic fix(desktop): improve server detection & connection logic Jan 12, 2026
@github-actions github-actions Bot removed the needs:title label Jan 12, 2026
@github-actions

github-actions Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

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

Based on my search, I found one potentially related PR:

PR #3726: Adding the auto-detection of ollama local with a variable for baseURL

  • Adding the auto-detection of ollama local with a variable for baseURL #3726
  • Why it's related: This PR also deals with local server detection and connection logic, specifically for ollama. It may be addressing a similar problem space around server detection and fallback behavior.

However, PR #3726 appears to be older and focused specifically on ollama with baseURL variables, while PR #7962 is a broader refactor of server detection, health checking, and retry logic. They may be complementary rather than direct duplicates.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the needs:issue label Jan 12, 2026
@github-actions

github-actions Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Brendonovich
cleanup
66a59fc
@Brendonovich
Brendonovich merged commit ebbb4dd into dev Jan 12, 2026
@Eric-Guo Eric-Guo mentioned this pull request Jan 12, 2026
Windows desktop staginate at initialize step #8011
Closed
@athal7 athal7 mentioned this pull request Jan 12, 2026
fix(app): persist active server selection across restarts #8015
Closed
@Brendonovich
Brendonovich deleted the brendan/improved-server-detection branch January 13, 2026 07:33
triklozoid pushed a commit to triklozoid/opencode that referenced this pull request Feb 2, 2026
@Brendonovich @triklozoid
fix(desktop): improve server detection & connection logic (anomalyco#…
8077796
…7962)
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
@Brendonovich
fix(desktop): improve server detection & connection logic (anomalyco#…
b2d4f21
…7962)
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
@Brendonovich
fix(desktop): improve server detection & connection logic (anomalyco#…
7d8a644
…7962)
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
@Brendonovich
fix(desktop): improve server detection & connection logic (anomalyco#…
1297f68
…7962)
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
@Brendonovich
fix(desktop): improve server detection & connection logic (#7962)
7a8c66d
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
@Brendonovich
fix(desktop): improve server detection & connection logic (anomalyco#…
cd1b229
…7962)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adamdotdevin adamdotdevin Awaiting requested review from adamdotdevin

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

needs:issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Brendonovich
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.