anomalyco / anomalyco/opencode
opencode session list and TUI session switcher omit existing sessions
@rekram1-node is already working on this.
Since Aug 11, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 2m
- Merged PRs (30d)
- 384
Description
Description
OpenCode version: 1.18.15
Project directory: /homeassistant
After Ctrl-D closed my OpenCode session, I restarted OpenCode and could resume a known session with:
opencode -s ses_...
However:
opencode session list
returns no sessions, and the TUI session switcher is empty.
The local session database still contains the sessions. This query lists them, all under the same /homeassistant project and none archived:
opencode db "select id, title, directory, time_archived from session order by time_updated desc"
Expected:
Existing sessions should appear in opencode session list and the TUI session switcher.
Actual:
Both lists are empty, despite sessions being resumable by explicit session ID.
Plugins
No response
OpenCode version
1.18.15
Steps to reproduce
- Press CTRL-D to close opencode session
- type opencode to restart
- Press CTRL-X L to list sessions, session list is blank
Screenshot and/or share link
No response
Operating System
Running as Homeassistant add-on
Terminal
No response
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.