-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Open
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)windows
Description
Description
What breaks:
The TUI /sessions picker only shows recent sessions and makes it look like older sessions are gone.
What still works:
opencode session list shows the full session history, and the CLI docs say session list should "List all OpenCode sessions."
Why this is concerning
The mismatch between TUI and CLI creates a false data-loss scare and blocks work.
Expected behavior:
- TUI
/sessionsshould show the same session history that the CLI can list. - My entire session to stay unless I decide to prune them
Actual behavior:
TUI only shows recent sessions, while CLI can still see the old sessions
Official docs reference:
OPENCODE_DISABLE_PRUNE is documented as Disable pruning of old data, so users may assume old sessions are protected; the UI should not suggest they vanished when they still exist.
Related issue:
#13877: the existing report says the /sessions picker "only shows a small set of recent sessions."
Help me confirm the accuracy of this:
- Setting
OPENCODE_DISABLE_PRUNE=truefor future protection of my sessions, because that is the only official deletion-related control I could verify - Keep using
opencode session listplus opencode session resume<session_id>until the TUI bug is fixed, because the CLI docs explicitly support listing all sessions and resuming by session ID.
Related issues
- Please review pull requests before approving them, as they damage things that are already working correctly. You're behaving like little children, approving things just because they have a good title. #16718
- TUI /sessions picker only shows recent sessions #13877
Plugins
@ramarivera/opencode-model-announcer
OpenCode version
1.2.22
Steps to reproduce
- Update to 1.2.22
- Open TUI (
opencode) - Write
/sessions - Scroll all the way down only to see that sessions over 30 days are hidden
- Exit TUI
- Run
opencode list sessionsand thank the gods that older sessions are still listed there
Screenshot and/or share link
No response
Operating System
Windows 10
Terminal
Windows Terminal
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)windows