anomalyco / anomalyco/opencode

[FEATURE]:unarchive sessions

Open
#41,403 1 comment 0 reactions 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Aug 9, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

When a session is archived, there is no way to unarchive it from the UI or CLI:

No keybind exists in the TUI for archiving/unarchiving sessions (checked the keybinds list — there is no session_archive / session_unarchive entry).
opencode session list does not show archived sessions, and there is no opencode session unarchive command.
The archive action only sets the time_archived field on the session row in opencode.db. The only workaround is manually clearing that field via direct DB access, which is not acceptable for regular users.

Proposed solution

Add an unarchive option, e.g.:

a TUI keybind (session_archive / session_unarchive) that toggles archive state, or an option in the session list UI to show archived sessions and restore them;
a CLI command like opencode session unarchive .
Steps to reproduce

Archive a session from the session list.
It disappears from opencode session list.
There is no supported way to restore it.
Environment

opencode version: 1.18.15
OS: Windows

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.