Skip to content

TUI session list can hide sessions when recent rows are subagents #30606

Closed

Description

@pamarcos

Description

Observed after upgrade to opencode 1.15.13.

The TUI session list can show only a few sessions, or none, even though opencode session list shows many.

The TUI calls session.list without roots=true, so the API returns the latest 100 sessions including child/subagent sessions. The TUI then filters child sessions client-side. If the latest 100 rows are mostly subagents, root sessions
are filtered out before they are shown.

Likely related recent changes:

Expected behavior: the TUI should request root sessions directly, matching opencode session list.

Suggested fix: pass roots=true in the TUI session list query, including search.

Plugins

No response

OpenCode version

1.15.13

Steps to reproduce

Create a session that spawns lots of subagents and check how root sessions disappear.
In my case, I had 2 root sessions, where one of them spawned 98 subagents, so all the rest disappeared

Screenshot and/or share link

Image

Operating System

Linux

Terminal

Ghostty

Activity

  1. pamarcos commented on Jun 3, 2026

    @pamarcos
    Author

    Closing as it's a duplicate of #16270

  2. wsaaaqqq commented on Jul 27, 2026

    @wsaaaqqq

    Same root problem — subagents crowding out real user sessions in the TUI list.

    Built a workaround: oos

    It reads the OpenCode SQLite db directly, so it searches ALL sessions from
    ALL projects at once — no directory scoping, no pagination limits, no
    subagent dilution.

    • Type a keyword → real-time filter across every project
    • ↑/↓ to pick, Enter to resume the conversation
    • Multi-keyword AND + ! exclusion
    • Zero config, single binary

    https://github.com/wsaaaqqq/oos

    MIT, one-liner install. Happy to take feedback.

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