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
[FEATURE]: TUI /session picker: option to show all sessions across all projects #35581
The /session picker in the TUI only shows sessions scoped to the current working directory/project. There is no way to browse sessions from other directories without either:
Launching OpenCode from a different directory
Knowing the session ID in advance and using opencode --session <id> from the CLI
Expected Behavior
A way to view all sessions across all projects directly from the TUI session picker — either:
A toggle or keybind inside the /session picker to switch between "current project" and "all sessions"
A config option to default the session picker to global scope
A separate command (e.g. /sessions --all) that shows everything
Current Workaround
opencode session list --format json
opencode --session <id>
This works but is cumbersome — it requires dropping out of the TUI, running a CLI command, manually copying a session ID, and re-launching.
Context
The opencode session list CLI command already returns all sessions globally (no directory filtering), so the data is all in one database. The TUI just needs a way to surface it.
Reacted by Alex, Jacek Chmielewski, Fahad Al-Hantushi and Jon Hyde
The title should start with [FEATURE]: for feature requests
The feature request template requires a verification checkbox confirming the feature has not been suggested before
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
[FEATURE]: Cross-project session list / picker for TUI #31932: Cross-project session list / picker for TUI — requests the same cross-project session browsing capability with similar proposed solutions (/sessions --all, a flag, or separate command)
changed the title [-]TUI /session picker: option to show all sessions across all projects[/-][+][FEATURE]: TUI /session picker: option to show all sessions across all projects[/+]on Jul 6, 2026
It reads the OpenCode SQLite db directly, so it shows every session from every project -- no directory scoping, no limits. Type any keyword, see results instantly across all projects, Enter to resume.
Not a replacement for a proper TUI picker, but a working stopgap while this feature request plays out. Hope it helps.
just chiming in that I'm also missing this feature. cd-ing around is not the right way.
This applies not only to the TUI, but the "web" and "Desktop" clients also.
Partial workaround in case it is useful while this is open: the picker already has a directory-scope toggle, app.toggle.session_directory_filter, which widens it from the current directory to the whole project.
in tui.json, or run it from the command palette. It does not do what this issue asks for, since the widest scope is still { scope: "project" }, but it does cover the case of sessions started in a subdirectory of the same project.
Two caveats. It defaults to none, so it is easy to miss, and until #42060 it does not fire while the picker is actually open.
Activity
github-actions commentedon Jul 6, 2026
This issue does not fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:for feature requestsPlease edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
/sessions --all, a flag, or separate command)If you believe this was flagged incorrectly, please let a maintainer know.
[-]TUI /session picker: option to show all sessions across all projects[/-][+][FEATURE]: TUI /session picker: option to show all sessions across all projects[/+]github-actions commentedon Jul 6, 2026
Thank you for updating the issue! It now meets the contributing guidelines and has been marked as compliant.
wsaaaqqq commentedon Jul 22, 2026
+1 on this. I had the same frustration and wrote a tool to work around it in the meantime:
https://github.com/wsaaaqqq/oos
It reads the OpenCode SQLite db directly, so it shows every session from every project -- no directory scoping, no limits. Type any keyword, see results instantly across all projects, Enter to resume.
Not a replacement for a proper TUI picker, but a working stopgap while this feature request plays out. Hope it helps.
Drealise commentedon Aug 5, 2026
just chiming in that I'm also missing this feature. cd-ing around is not the right way.
This applies not only to the TUI, but the "web" and "Desktop" clients also.
thepigdestroyer commentedon Aug 12, 2026
Partial workaround in case it is useful while this is open: the picker already has a directory-scope toggle,
app.toggle.session_directory_filter, which widens it from the current directory to the whole project.{ "keybinds": { "app_toggle_session_directory_filter": "ctrl+a" } }in
tui.json, or run it from the command palette. It does not do what this issue asks for, since the widest scope is still{ scope: "project" }, but it does cover the case of sessions started in a subdirectory of the same project.Two caveats. It defaults to
none, so it is easy to miss, and until #42060 it does not fire while the picker is actually open.neriousy commentedon Oct 1, 2026
done in v2