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(cli): fall back from unavailable managed service port by opencode-agent[bot] · Pull Request #50869 · anomalyco/opencode

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Keep the per-channel preferred port for managed services, but if it is unavailable and the user has not configured a port, retry through the existing automatic port-selection path. Handle both address-in-use and access-denied bind failures (Windows excluded ports).
  • Recognize an authenticated incumbent at the registered URL when its port was selected automatically, so repeated starts do not replace ready or failed services.
  • Keep explicitly selected ports strict and preserve their existing conflict error.

Verification

  • Regression test: preferred port occupied; background service registers and is discoverable at its selected address (red before, green after).
  • Concurrent automatic-port election, repeated start, failed owner preservation, configured-port and explicit-conflict tests pass.
  • bun typecheck in packages/cli and packages/client; bun test test/process.test.ts in packages/server; lint and diff checks pass.
  • Full bun run check is blocked in the unrelated services/www check because this Host has Node 18 and Astro requires Node >=22.12. The existing 10-process election test also SIGABRTs on this shared Host before this change. The Windows dev box was unreachable, so the Windows bind case has not been validated there.

Requested by: @Hona (Hona via Slack)

Sorry, something went wrong.

Uh oh!

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

All reactions
@Hona
fix(cli): fall back from unavailable managed service port
9120e07
@opencode-agent opencode-agent Bot assigned Hona Sep 23, 2026
@github-actions github-actions Bot added the contributor label Sep 23, 2026
@Hona Hona mentioned this pull request Sep 30, 2026
fix(cli): give each WSL distro its own service port and skip reserved host ports #49909
Closed
@thdxr
thdxr changed the base branch from v2 to dev October 10, 2026 19:15
@opencode-agent opencode-agent Bot mentioned this pull request Oct 16, 2026
Windows CLI: WSL2 镜像网络预留范围内的 45278 导致服务启动失败,端口查询无占用记录 #55918
Closed
@ddgmma ddgmma mentioned this pull request Oct 19, 2026
[v2.0.32][WSL] 托管服务端口 49374 被占用:autoProxy 注入的 Windows 通配 NO_PROXY 让本地探测走代理,重复拉起服务 #57017
Closed
@github-actions

github-actions Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot closed this Oct 23, 2026
@github-actions github-actions Bot added the automated-pr-cleanup label Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

@Hona Hona

Labels

automated-pr-cleanup contributor

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

@Hona
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.