Skip to content

Windows: opencode web/serve listens but does not accept HTTP connections under Bun #38220

Closed as not planned

Description

@zzzhang1127

Description

Description

On native Windows (PowerShell/cmd), opencode web and opencode serve print listening and netstat shows LISTENING, but HTTP clients cannot connect (curl timeout / browser hangs).

Reproduction

  1. Windows 11, install opencode-ai via npm (or run from source with Bun)
  2. Run opencode web --port 4096 --hostname 127.0.0.1
  3. curl http://127.0.0.1:4096/ → connection timeout

Python http.server on the same machine works fine.

Expected

Browser/curl should receive HTTP 200 and load the Web UI.

Actual

Connection times out despite port showing LISTENING.

Environment

  • OS: Windows 11
  • opencode-ai: 1.18.4
  • Bun: 1.3.14 (when running from source)

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Sep 21, 2026

    @github-actions
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions