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

Open
opened 2026-02-16 18:07:37 -05:00 by yindo · 1 comment
Owner

Originally created by @pointu-l on GitHub (Jan 25, 2026).

Originally assigned to: @thdxr on GitHub.

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

Originally created by @pointu-l on GitHub (Jan 25, 2026). Originally assigned to: @thdxr on GitHub. ### 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
yindo added the bug label 2026-02-16 18:07:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2026):

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

  • #8493: [web] Archiving a session works, but session list in sidebar becomes stale - Similar issue with stale session list responses
  • #9857: [APP]: Last session remains visible after archiving all sessions - Related to session visibility issues when state is out of sync
  • #5517: OpenCode API Race Condition in Concurrent Session Deletion - Addresses concurrent request handling and session state consistency

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

@github-actions[bot] commented on GitHub (Jan 25, 2026): This issue might be a duplicate of existing issues. Please check: - #8493: [web] Archiving a session works, but session list in sidebar becomes stale - Similar issue with stale session list responses - #9857: [APP]: Last session remains visible after archiving all sessions - Related to session visibility issues when state is out of sync - #5517: OpenCode API Race Condition in Concurrent Session Deletion - Addresses concurrent request handling and session state consistency Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7566