Skip to content

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

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

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