Skip to content

Public demo goes blank after New session: create response violates WorkspaceCreated #345

Closed

Description

@devswha

What happened

Version / scope

  • Public demo UI v0.3.43, tested 2026-10-02 through https://devswha.github.io/herdr-web-ui/demo/app/
  • Source verified at stable/main SHA 1608ccebc3b5dbed1bafe2cfe8aed69a388fa7ac
  • Cloud Chromium; 1180 × 757 content viewport, English, Light/Compact, folder grouping
  • Reproduced 3/3: Codex with custom name, Codex with default name, Shell with default name, each after a reload
  • This report is about the browser demo. Installed/live backend behavior was not reproduced; its source returns the correct contract

Reproduction

  1. Open the public demo (direct app URL above)
  2. Click New session
  3. Choose Shell or Codex, keep the prefilled directory and optional name blank
  4. Click Start session

Expected

The synthetic session is created and selected, and the app stays usable

Actual

The entire app renders blank. Reload recovers the initial demo. Console:

TypeError: Cannot read properties of null (reading 'prompt')
    at Ak (.../demo/app/assets/index-4GMxxErL.js:723:1301)
    at ju (.../demo/app/assets/index-4GMxxErL.js:38:17866)
    at qu (.../demo/app/assets/index-4GMxxErL.js:40:3158)

Root cause (high confidence)

  • site/demo/transport.ts:302-320 handles POST /api/workspace/create but returns {workspace, root_pane, tab}
  • shared/protocol.ts:392-398 defines the expected web contract as {workspace_id, pane_id, agent_started, error?}; src/lib/api.ts:326-328 simply casts the JSON
  • src/components/NewSessionDialog.tsx:118 invokes onCreated(result.pane_id), which is undefined for the demo response
  • The undefined ID reaches PaneTerminal via src/App.tsx:733-735; secretActive = secret?.pane === paneId at src/components/PaneTerminal.tsx:160 evaluates true for null secret + undefined pane ID
  • src/components/PaneTerminal.tsx:1358-1359 passes the paneId !== null guard and dereferences secret.prompt, producing the observed crash
  • Installed server’s shell branch server/index.ts:1019-1020 returns the proper shape, so do not infer that ordinary installed-server creation is broken

Suggested regression coverage: demo transport response satisfies WorkspaceCreated; create and select Shell and an agent in the demo; malformed/missing pane IDs cannot blank the root UI

How often

Every time

herdr web ui version

0.3.43 — stable/main 1608cce

How it runs

The browser demo

Server PC

Public browser demo, no live server. Fixture advertises herdr 0.9.0. Installed backend was not reproduced.

Device and browser

Linux cloud Chromium, ordinary browser tab. Desktop content viewport 1180×757 at 100% zoom.

How the device reaches the server

Reverse proxy or public domain

How it signs in

No response

Agent and PC

Synthetic Codex and Shell demo sessions; no real agent process or remote PC.

Screenshots or logs

The screenshots captured before and after reproduction contain only the synthetic public demo. Screenshot upload could not be completed because the browser upload tool failed/timed out; no screenshots are attached to this issue.

The demo intercepts this request in the browser, so no real backend log applies. App-only console evidence (extension noise omitted):

[
  {
    "level": "error",
    "message": "TypeError: Cannot read properties of null (reading 'prompt')\n    at Ak (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:723:1301)\n    at ju (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:38:17866)\n    at qu (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:3158)\n    at rp (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:45767)\n    at J1 (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:40561)\n    at Z5 (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:40489)\n    at Yl (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:40342)\n    at a0 (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:36601)\n    at K1 (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:35549)\n    at M (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:25:1595)",
    "timestamp": "2026-10-02T14:59:50.973Z",
    "url": "https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js"
  },
  {
    "level": "error",
    "message": "TypeError: Cannot read properties of null (reading 'prompt')\n    at Ak (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:723:1301)\n    at ju (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:38:17866)\n    at qu (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:3158)\n    at rp (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:45767)\n    at J1 (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:40561)\n    at Z5 (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:40489)\n    at Yl (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:40342)\n    at a0 (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:36601)\n    at K1 (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:40:35549)\n    at M (https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js:25:1595)",
    "timestamp": "2026-10-02T14:59:51.003Z",
    "url": "https://devswha.github.io/herdr-web-ui/demo/app/assets/index-4GMxxErL.js"
  }
]

Activity

  1. added
    bug
    on Oct 2, 2026
  2. devswha commented on Oct 2, 2026

    @devswha
    OwnerAuthor

    Revalidated after the public demo redeployed on 2026-10-02 at 17:56 UTC: New session → Shell → Start session still blanks the entire UI. Current served asset is index-C8T9OdE5.js; the console reports TypeError: Cannot read properties of null (reading 'prompt') at IN (.../index-C8T9OdE5.js:996:1302). The footer still reads v0.3.43, so the asset name is recorded separately. Reproduction used an 844×390 CSS-pixel browser viewport at 100% zoom.

  3. added a commit that references this issue on Oct 2, 2026
    a789999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions