Repository navigation
Description
Description
Bug description
When switching between working directories/projects within a single opencode
session, the left-hand session list gets stuck on a permanent "加载更多"
(Load more) state. The list never renders any of the project's prior
sessions, and clicking the "加载更多" label does nothing.
A full app restart resolves the issue.
Steps to reproduce
- Launch opencode.
- Open project A (a directory that has prior sessions in opencode.db).
- Without quitting, switch to project B (another directory with its own
session history) — either via the "最近项目" (Recent projects) entry on
the home page, or via File → Open Folder. - Observe the left sidebar.
Expected behavior
- The session list for project B should render, showing its prior sessions
ordered most-recent first. - If project B has no prior sessions, an empty-state message should be
shown — not a "加载更多" button. - Clicking "加载更多" should at minimum toggle state, or be hidden if there
is nothing more to load.
Actual behavior
The sidebar shows only:
- the "新建会话" (New session) button at the top
- a persistent "加载更多" text below
No session items ever appear. The state never recovers without a full
process restart. Switching back to project A also shows the same broken
state until opencode is restarted.
Environment
- OS: Windows 10/11 (win32)
- opencode desktop version: 1.15.13
- @opencode-ai/plugin version: 1.14.19
- Install method: official desktop installer
(%LocalAppData%\Programs\@opencode-aidesktop\OpenCode.exe) - DevTools console: no errors or warnings related to this
- DevTools Network: no hanging / red requests observed
Diagnosis / hints
The behavior is consistent with a leaked store state across project
switches — the session-list store appears to retain hasMore = true (or
an equivalent "loading" flag) from the previously-active project, and
the new project never resets it.
Supporting evidence:
- The bug does not appear on a fresh launch into a project.
- Full process exit + relaunch fixes it (store is re-initialized).
- It is independent of the switch path (recent-project entry vs.
File → Open Folder both reproduce). - DevTools is silent, so this is a UI state-machine bug, not a network
or backend issue.
Workaround
Quit opencode completely and relaunch whenever the list gets stuck.
Project files on disk are not affected.
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Activity
github-actions commentedon Jun 2, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is specifically about the store state not being reset when switching projects (i.e., the root cause differs from the pagination API bugs in #30109), it may be worth keeping open as a separate issue — but please review the linked issues first to see if any of them cover your scenario.
github-actions commentedon Aug 2, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.