GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Add --all flag to /sessions command to view sessions across all projects · Issue #17842 · anomalyco/opencode

[FEATURE]: Add --all flag to /sessions command to view sessions across all projects #17842

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Add --all flag to /sessions command to view sessions across all projects#17842
Copy link
Assignees
rekram1-node

Description

@ncopilot-boop
ncopilot-boop
opened on Mar 16, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem

The /sessions command only shows sessions from the current working directory. This makes it impossible to find or resume sessions from other projects without navigating to each project directory individually.

Current Behavior

  • Sessions are stored globally in ~/.local/share/opencode/storage/session/global/
  • But /sessions filters by current directory, showing only sessions created in that specific path
  • Users with multiple projects cannot see their full session history from one location

Example

I have 16 sessions stored across different directories:

  • 7 from C:\Prodprog
  • 3 from C:\Prog\program1
  • 3 from C:\Prog\program2\pog
  • 2 from C:\Users\someuser When running /sessionsfromC:\Prog\program3I only see 2 sessions (the ones created in that directory). My other 14 sessions are effectively invisible unless Icd to each original directory.

Proposed Solution

Add an --all or -a flag to the /sessions command:
/sessions --all # Show sessions from ALL projects
/sessions -a # Short form

Optional Enhancements

  • Group results by project directory for readability
  • Add a --project <path> flag to filter to a specific project without navigating there
  • Show project path in the session list output

Use Cases

  1. Session recovery: Finding an old session when you don't remember which project it was in
  2. Cross-project context: Quickly referencing work done in related projects
  3. Session cleanup: Viewing all sessions to identify ones to delete
  4. Workflow continuity: Resuming work when switching between multiple projects

Environment

  • OS: Windows 10 (Git Bash)
  • opencode version: 1.2.x
  • Session storage: ~/.local/share/opencode/storage/session/global/
Reacted by Diego Giorgini, Sanath Kumar U, matt.X, Pepushi Evans, Phoenix Gao, nub-vtl, JtMotoX, Osinniy, Chung-Chiang Cheng, Jensen and 5 more

Activity

  1. ncopilot-boop
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Mar 16, 2026
  2. github-actions
    assigned
    rekram1-node
    on Mar 16, 2026
  3. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 16, 2026
  4. github-actions commented on Mar 16, 2026

    @github-actions
    github-actionsBot
    on Mar 16, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • [FEATURE]: Sessions should be able to be listed globally #16116: [FEATURE]: Sessions should be able to be listed globally — same core request to view/access sessions across all project directories, not just the current one
    • [FEATURE]: Show directory in opencode session list output #17594: [FEATURE]: Show directory in opencode session list output — related request for cross-project session visibility improvements
    Reacted by ncopilot-boop
  5. thdxr
    removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. github-actions commented on Jul 7, 2026

    @github-actions
    github-actionsBot
    on Jul 7, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

    Reacted by NRK and parasite6
  7. github-actions
    closed this as not plannedon Jul 7, 2026
  8. wsaaaqqq commented on Jul 22, 2026

    @wsaaaqqq
    wsaaaqqq
    on Jul 22, 2026
    More actions

    I know this was closed, but I had the exact same pain -- 14 invisible sessions stuck in other project directories.

    I built a workaround: oos (https://github.com/wsaaaqqq/oos)

    It's a small TUI that reads the OpenCode database directly, so it naturally searches across ALL projects -- no --all flag needed. Type a keyword, find any session from any project, Enter to resume.

    Since this feature request was closed, I figured it might help others in the same boat. MIT, one-liner install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.