Skip to content

New session UI disappears when stored session list response is late #10578

Closed

Description

@pointu-l

Description

With many sessions (13k+), the stored session list retrieval is slower.

If you create a new session while that request is in-flight, the stale response replaces the store without the newly created session.

Since the session view uses <Show when={session()}> (index.tsx:962) where session() derives from sync.session.get(route.sessionID) (index.tsx:114), the active session becomes undefined and the entire UI disappears.

Plugins

@franlol/opencode-md-table-formatter, @tarquinen/opencode-smart-title, @tarquinen/opencode-dcp

OpenCode version

1.1.35

Steps to reproduce

  1. Have many sessions (slower retrieval)
  2. Create a new session while session list is being fetched
  3. Stale response arrives → session store replaced → active session no longer in store → UI gone

Note: UI can reappear depending of if the conversation is in progress. It will still cause a "blink" in that case: the UI dissapear and re-appear like nothing happened.

Screenshot and/or share link

No response

Operating System

Ubuntu 24.03

Terminal

Zed editor

Activity

  1. github-actions commented on Jan 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions