Skip to content

SortableWorkspace session list empty due to store.path.directory not bootstrapped #21441

@chenyy9527

Description

@chenyy9527

Description

Session list is completely empty on Windows web UI. Skeleton briefly appears on refresh then disappears. Verified via DevTools that GET /session?directory=...&roots=true returns sessions correctly, so this is a client-side store management issue caused by directory format mismatch creating duplicate child stores. child-store.ts creates separate stores for the same physical directory when path formats differ (D:/... vs D:\...), exceeding MAX_DIR_STORES=30 and triggering eviction. loadSessions writes to a disposed store — session data is lost entirely.

Plugins

none

OpenCode version

0.0.0-dev-202604080233 source build (dev branch)

Steps to reproduce

  1. Open web UI on Windows
  2. Have multiple projects or switch between sessions
  3. Observe session list is empty
  4. DevTools Network shows API returns sessions but sidebar renders none

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Git Bash

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates 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