Skip to content

Self-hosted web can hang on startup and crash on missing session path data #21849

@Leuconoe

Description

@Leuconoe

Description

When I run the self-hosted web UI against a local OpenCode server, the page can stay on the loading screen indefinitely. I also hit crashes in the session/workspace UI when some session path or diff file values are missing.

Plugins

None

OpenCode version

  • source-built dev binary during investigation: 0.0.0-dev-202604100729
  • also reproduced against the packaged Windows install before switching to a source build for debugging

Steps to reproduce

  1. Start a local OpenCode server and open the self-hosted web UI in the browser.
  2. Keep a previously saved default server URL in browser storage, or load session/workspace data that contains missing directory / diff.file values.
  3. Open the app or a session page.
  4. Observe that the app can stay on the loading screen, or the session/workspace tree can crash while normalizing paths.

Screenshot and/or share link

PR with fix: #21845

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktopwindows

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions