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 — feat: Use incremental port assignment (like Vite) instead of random OS-assigned ports · Issue #10357 · anomalyco/opencode

feat: Use incremental port assignment (like Vite) instead of random OS-assigned ports #10357

New issue
Copy link
New issue
Copy link
Closed
Closed
feat: Use incremental port assignment (like Vite) instead of random OS-assigned ports#10357
Copy link
Assignees
adamdotdevin
Labels
webRelates to opencode on web / desktop

Description

@arifszn
arifszn
opened on Jan 24, 2026
Issue body actions

Description

When starting multiple OpenCode web servers and the default port 4096 is already in use, the server currently falls back to a random OS-assigned port (e.g., 55651). This makes it difficult to predict which port the server will use.

Expected Behavior

The server should try incremental ports (4096, 4097, 4098, etc.) similar to how Vite handles port conflicts. This provides a predictable port sequence and better developer experience.

Current Behavior

  • First server: Port 4096 ✓
  • Second server: Random port (e.g., 55651) ✗

Proposed Solution

When port is occupied, try incremental ports up to 10 attempts before falling back to OS-assigned port:

  • First server: Port 4096
  • Second server: Port 4097
  • Third server: Port 4098
  • etc.

This should work for both default port (4096) and custom ports specified via --port flag.

Category

Missing standard behavior - improves UX to match common dev server patterns (Vite, Next.js, etc.)

Activity

  1. github-actions
    assigned
    adamdotdevin
    on Jan 24, 2026
  2. github-actions
    added
    webRelates to opencode on web / desktop
    on Jan 24, 2026
  3. github-actions commented on Mar 27, 2026

    @github-actions
    github-actionsBot
    on Mar 27, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  4. github-actions
    closed this as completedon Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @adamdotdevin
    adamdotdevin

Labels

webRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.