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 — Server becomes unresponsive after external client disconnects during SSE streaming · Issue #15149 · anomalyco/opencode

Server becomes unresponsive after external client disconnects during SSE streaming #15149

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Server becomes unresponsive after external client disconnects during SSE streaming#15149
Copy link
Assignees
jlongster

Description

@zaxbysauce
zaxbysauce
opened on Feb 26, 2026
Issue body actions

Description

When running opencode serve with external clients (e.g., via curl or API client), if the client disconnects abruptly while connected to SSE endpoints (/event or /global/event), the server enters a corrupted state where subsequent requests fail with "Unexpected EOF" errors.

Logs:

ERROR 2026-02-18T15:34:10 +10ms service=server error=Unexpected EOF failed
ERROR 2026-02-18T15:34:10 +1ms service=server error=Unexpected EOF failed

Plugins

"opencode-swarm@latest", "opencode-anthropic-auth@latest", "opencode-openai-codex-auth@latest", "opencode-zaxbystatus@latest"

OpenCode version

1.2.14

Steps to reproduce

Start opencode serve
Connect an external client to the SSE endpoint (e.g., curl http://localhost:4096/event)
Disconnect the client abruptly (Ctrl+C or close connection)
Try to make another request to the server
Server fails to respond - subsequent requests also show "Unexpected EOF" errors
Expected behavior: Server should remain stable and continue accepting new requests after client disconnects.

Screenshot and/or share link

No response

Operating System

Windows

Terminal

opencode electron gui

Activity

  1. zaxbysauce
    added
    bugSomething isn't working
    on Feb 26, 2026
  2. github-actions
    assigned
    thdxr
    on Feb 26, 2026
  3. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    windows
    on Feb 26, 2026
  4. github-actions commented on Feb 26, 2026

    @github-actions
    github-actionsBot
    on Feb 26, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of or closely related to existing issues. Please check:

    • Memory leak: serve and web commands leak child processes on exit; SSE heartbeat interval leaks on server-initiated close #14091: Directly related — describes the SSE /event endpoint leak where Hono's onAbort only fires on client disconnect, not on server-initiated close. This is likely the root cause of the corrupted state you're seeing after an external client disconnects abruptly.
    • "Unexpected EOF" crash immediately after startup #3568: Also reports "Unexpected EOF" errors, though in a different context (TUI startup crash).

    If your issue is specifically about the server becoming unresponsive (rather than just a resource leak), it may still be worth keeping open as a distinct symptom — but please review #14091 first to see if it covers your case.

  5. neocody commented on Mar 6, 2026

    @neocody
    neocody
    on Mar 6, 2026
    More actions

    Seeing this in production with CodeNomad (desktop client for OpenCode).

    OpenCode serve closes the /event SSE endpoint after ~7 seconds:

    service=server method=GET path=/event status=started
    service=server method=GET path=/event status=completed duration=7171
    

    After this, the SSE stream never reopens server-side. The desktop client loses all events and the UI goes blank across all workspace instances.

    OpenCode 1.2.18, macOS 15.7.4 ARM64. Multiple workspaces open simultaneously.

    Reacted by zaxbysauce
  6. thdxr
    assigned
    jlongster
    and unassigned
    thdxr
    on Apr 26, 2026
  7. thdxr
    removed
    bugSomething isn't working
    windows
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  8. github-actions commented on Jul 4, 2026

    @github-actions
    github-actionsBot
    on Jul 4, 2026 – with GitHub Actions
    Contributor
    More actions

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

  9. github-actions
    closed this as not plannedon Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jlongster
    jlongster

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

    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.