anomalyco / anomalyco/opencode

opencode session list and TUI session switcher omit existing sessions

Open
#41,855 2 comments 0 reactions 1 assignee View on GitHub

@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
  1. Press CTRL-D to close opencode session
  2. type opencode to restart
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.