You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TUI session list can hide sessions when recent rows are subagents #30606
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.
68bb8ce1da922229e6ab4dde4207b431cf9d76a8 introduced DB-level filtering/default limit behavior; I did not find a PR for it.
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
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
Activity
pamarcos commentedon Jun 3, 2026
Closing as it's a duplicate of #16270
wsaaaqqq commentedon Jul 27, 2026
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.
https://github.com/wsaaaqqq/oos
MIT, one-liner install. Happy to take feedback.