anomalyco / anomalyco/opencode
Web UI home page whitescreens when session groups are missing on first render
Open
@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
- \opencode2 serve --hostname 0.0.0.0 --port 49374\ (any machine)
- Open the web UI from a slow client (hit on iPhone Safari over Tailscale, where the API round-trip lands after first render)
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.