Skip to content

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

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

Activity

github-actions commented on Jun 17, 2026

@github-actions
Contributor

This issue might be a duplicate of existing issues. Please check:

Both were previously closed — if the problem has regressed in 1.17.7, please note that in this issue and reference those prior issues for context.

added a commit that references this issue on Jun 25, 2026
e7c59b1
added a commit that references this issue on Jun 27, 2026
7afc214
added a commit that references this issue on Jun 27, 2026
908847a
added a commit that references this issue on Jun 29, 2026
2602aff
added a commit that references this issue on Jul 9, 2026
e3cb8f7
added a commit that references this issue on Jul 31, 2026
27dc14b
added a commit that references this issue on Sep 24, 2026
5a7dc85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions