Skip to content

Session switcher only shows a few sessions when many subagent sessions exist #32725

@cwj2001

Description

@cwj2001

Description

The TUI session switcher can show only a few top-level sessions when a project has many recently updated subagent/child sessions.

The sync cache loads recent sessions with the default server limit, then the session dialog filters out child sessions on the client. If child sessions consume most of that limit, older top-level sessions are absent from the non-search /sessions list even though they still exist and can be found by search.

Plugins

None required

OpenCode version

1.17.7

Steps to reproduce

  1. Use a project with more than 100 recent sessions where most are subagent/child sessions.
  2. Open the TUI session switcher with /sessions.
  3. Observe that only a small subset of top-level sessions is shown.
  4. Search for an older top-level session and observe that it can still be found.

Screenshot and/or share link

Not available

Operating System

Linux

Terminal

VS Code terminal

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions