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]: Add --all flag to /sessions command to view sessions across all projects #17842
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
Session recovery: Finding an old session when you don't remember which project it was in
Cross-project context: Quickly referencing work done in related projects
Session cleanup: Viewing all sessions to identify ones to delete
Workflow continuity: Resuming work when switching between multiple projects
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.
Activity
github-actions commentedon Mar 16, 2026
This issue might be a duplicate of existing issues. Please check:
opencode session listoutput #17594: [FEATURE]: Show directory inopencode session listoutput — related request for cross-project session visibility improvementsgithub-actions commentedon Jul 7, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
wsaaaqqq commentedon Jul 22, 2026
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.