anomalyco / anomalyco/opencode

Web UI home page whitescreens when session groups are missing on first render

Open
#48,610 1 comment 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Sep 12, 2026.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Opening the v2 web UI on a slow or cold client whitescreens the home page. Safari reports:

\
TypeError: undefined is not an object (evaluating 'e.groups.length')
\\

thrown from the home sessions view, which reads \props.groups.length\ in three places (new-session button, list/fallback switch, group spacing) with no guard. When the session index resolves after first render, \groups\ is missing and the whole page throws instead of showing the empty state.

OpenCode version

0.0.0-beta-19381

Steps to reproduce

  1. \opencode2 serve --hostname 0.0.0.0 --port 49374\ (any machine)
  2. Open the web UI from a slow client (hit on iPhone Safari over Tailscale, where the API round-trip lands after first render)
  3. Home page crashes to a JS error instead of loading/empty state

Operating System

Windows 11 (server); Safari on iOS 16.6.1 (client)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.