Skip to content

TUI sessions dialog can stay empty if opened before session list loads #31125

@CasualDeveloper

Description

@CasualDeveloper

Description

The TUI sessions dialog can show No results found and stay empty if it is opened before the async session list has finished loading.

The dialog freezes its browse order at mount from the current session store. On normal startup the session list loads asynchronously, so the store can still be empty when the dialog opens. When the async list later populates, the dialog has session data but still uses the initial empty browse order.

Plugins

None

OpenCode version

opencode dev branch as of 1399323

Steps to reproduce

  1. Start the TUI normally.
  2. Immediately open the sessions dialog before startup session loading finishes.
  3. Wait for session loading to complete.
  4. The dialog can keep showing no options until it is closed and reopened.

Screenshot and/or share link

N/A

Operating System

macOS Tahoe 26.6

Terminal

Ghostty build 16316

Metadata

Metadata

Assignees

Labels

No labels
No labels

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