Skip to content

[FEATURE]: TUI /session picker: option to show all sessions across all projects #35581

Closed

Description

@LucasBersier

Feature Request

Checklist

Problem

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.

Activity

  1. github-actions commented on Jul 6, 2026

    @github-actions
    Contributor

    This issue does not fully meet our contributing guidelines.

    What needs to be fixed:

    • 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:

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. 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
  3. github-actions commented on Jul 6, 2026

    @github-actions
    Contributor

    Thank you for updating the issue! It now meets the contributing guidelines and has been marked as compliant.

  4. wsaaaqqq commented on Jul 22, 2026

    @wsaaaqqq

    +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.

  5. Drealise commented on Aug 5, 2026

    @Drealise

    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.

  6. thepigdestroyer commented on Aug 12, 2026

    @thepigdestroyer

    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.

  7. neriousy commented on Oct 1, 2026

    @neriousy
    Member

    done in v2

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