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 — Web UI crashes with stale <Show> after /global/event network error behind base-path reverse proxy · Issue #28928 · anomalyco/opencode

Web UI crashes with stale <Show> after /global/event network error behind base-path reverse proxy #28928

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Web UI crashes with stale <Show> after /global/event network error behind base-path reverse proxy#28928
Copy link
Assignees
Brendonovich

Description

@junewang-coffee
junewang-coffee
opened on May 23, 2026
Issue body actions

Description

When running opencode web behind a reverse proxy under a non-root base path, the browser UI can crash while navigating between sessions after the global SSE stream reports a transient network error.

Observed console output from a production-like web deployment:

[opencode-mitac-prefix-patch] active /app/opencode/mitac
[global-sdk] event stream error { url: 'https://xparse.genialtx.ai/app/opencode/mitac', fetch: 'webview', error: TypeError: network error }
Navigated to https://xparse.genialtx.ai/app/opencode/mitac/<directory>/session/<session-id>
Uncaught (in promise) Error: Stale read from <Show>.
    at xf (index-D9duGUIa.js:2:10361)
    at Au (index-D9duGUIa.js:2:10559)
    at Ir (index-D9duGUIa.js:2:8256)
    at QO (index-D9duGUIa.js:2:8512)

There are also accessibility warnings immediately before the crash:

Blocked aria-hidden on an element because its descendant retained focus.
Element with focus: <button ... #dropdownmenu-...-trigger>
Ancestor with aria-hidden: <div id="root" class="flex flex-col h-dvh p-px" aria-hidden="true">

The accessibility warning may be separate, but the user-visible failure is the Solid stale <Show> crash after session navigation/reconnect churn.

Related issues that seem adjacent but not the same exact web scenario:

  • [FEATURE]: Base path / prefix routing support #7624 tracks first-class base path / prefix routing support.
  • SSE streaming broken through reverse proxy since v1.2.19 #16726 tracks SSE streaming behavior through reverse proxies.
  • bug(desktop): "Stale read from <Show>" crash when running multiple agents — v1.2.20 #16323 tracks Stale read from <Show> crashes, mostly described for desktop / multiple agents.
  • [Bug][Web] Basic auth causes 401 on /site.webmanifest and /global/event, then crashes with PasteTypeError #16493 tracks /global/event failures with web auth, followed by frontend crashes.

Plugins

None.

OpenCode version

1.14.48

Container image is a custom image based on OpenCode web mode, running:

opencode web --hostname 0.0.0.0 --port 18011

The upstream plugin/runtime image currently uses ghcr.io/anomalyco/opencode:latest; this deployment reports opencode --version as 1.14.48.

Steps to reproduce

  1. Start opencode web with server basic auth enabled:

    OPENCODE_SERVER_USERNAME=opencode \
    OPENCODE_SERVER_PASSWORD=<redacted> \
    opencode web --hostname 0.0.0.0 --port 18011
  2. Put it behind nginx under a base path such as /app/opencode/mitac/.

    The proxy strips the prefix before proxying to OpenCode and injects Authorization: Basic ... upstream. It also disables proxy buffering for SSE:

    rewrite ^/app/[^/]+/[^/]+(?:/(.*))?$ /$1 break;
    proxy_pass http://127.0.0.1:18011;
    proxy_http_version 1.1;
    proxy_set_header Authorization "Basic <redacted>";
    proxy_buffering off;
    proxy_read_timeout 86400s;
  3. Open the UI at the base path, create or open multiple sessions, then navigate into another session from the UI.

  4. After a /global/event reconnect or transient network error, the UI navigates to the session URL and then throws Error: Stale read from <Show>.

Additional observations

Internal checks show /global/event itself can stream through the sidecar when requested directly:

HTTP/1.1 200 OK
Content-Type: text/event-stream
Cache-Control: no-cache, no-transform
x-accel-buffering: no

data: {"payload":{"type":"server.connected", ...}}

So this does not look like a permanent backend 404/401. It looks more like the web client is not resilient to a transient global event stream failure while session/navigation state is changing. If the base-path proxy is unsupported until #7624 lands, the stale <Show> crash still seems worth hardening because it turns an SSE/network problem into a full UI crash.

Screenshot and/or share link

No share link available; this is a private deployment. Console excerpts are included above.

Operating System

Server: Linux container on Ubuntu host. Browser client reproduced in Chrome/Chromium against HTTPS deployment.

Terminal

N/A; this is opencode web accessed through a browser.

Activity

  1. github-actions
    assigned
    Brendonovich
    on May 23, 2026
  2. github-actions commented on Jul 22, 2026

    @github-actions
    github-actionsBot
    on Jul 22, 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.

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

Metadata

Metadata

Assignees

  • @Brendonovich
    Brendonovich

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.