Skip to content

TUI /sessions only show sessions from last 30 days, while CLI session list shows all my sessions (thank god) #16733

@raymelon

Description

@raymelon

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 /sessions should 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=true for future protection of my sessions, because that is the only official deletion-related control I could verify
  • Keep using opencode session list plus 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

Plugins

@ramarivera/opencode-model-announcer

OpenCode version

1.2.22

Steps to reproduce

  1. Update to 1.2.22
  2. Open TUI (opencode)
  3. Write /sessions
  4. Scroll all the way down only to see that sessions over 30 days are hidden
  5. Exit TUI
  6. Run opencode list sessions and thank the gods that older sessions are still listed there

Screenshot and/or share link

No response

Operating System

Windows 10

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions