anomalyco / anomalyco/opencode
Desktop session search excludes older sessions outside the loaded list
@Hona is already working on this.
Since Sep 2, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
In OpenCode Desktop, session search does not find older sessions that are outside the currently loaded session list, even though those sessions still exist, are not archived, and belong to the current workspace.
A session in my workspace was ranked 92nd by time_updated. It did not appear when listing the newest 50 sessions, and Desktop search returned no result for its exact title. The same session appeared when 100 sessions were requested through the CLI.
This suggests Desktop search filters only the currently loaded session subset rather than searching all sessions in the workspace. Users may therefore believe an older session has been lost.
Related:
- #20614 reported older chats becoming unreachable despite remaining in SQLite, but was closed for inactivity.
- #46123 requests an option to show all sessions without repeatedly selecting "Load more." This report is specifically about search completeness: searching should find a matching session without requiring it to be loaded first.
Plugins
Not known to be relevant.
OpenCode version
1.18.26
Steps to reproduce
- Use OpenCode Desktop in a workspace containing more sessions than the initial session-list limit.
- Identify an older, non-archived session outside the loaded list.
- Search for that session using its exact title.
- Observe that Desktop returns no result.
- Run
opencode session list -n 100and confirm that the session exists and belongs to the same workspace.
Expected: Search returns matching sessions from the complete workspace session history.
Actual: Search only returns matches from the currently loaded subset.
Screenshot and/or share link
None.
Operating System
macOS 26.6.2
Terminal
OpenCode Desktop
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.