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]: Show directory in opencode session list output #17594
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Description
The opencode session list command shows session ID, title, and updated time, but does NOT include the directory field that tells users which directory each session was started from.
When a user has many sessions across different projects, they have no way to know which directory a session belongs to without running opencode export <sessionID> for each one.
Current behavior
Session ID Title Updated
─────────────────────────────────────────────────────────────────────────
ses_xxxx My session 2:36 PM
Expected behavior
Session ID Title Directory Updated
─────────────────────────────────────────────────────────────────────────────────
ses_xxxx My session /home/user/project 2:36 PM
Why this matters
Users can't see which directory their previous sessions were in
Hard to find sessions from a specific project when there are many
Forces unnecessary export calls just to see basic context
CLI session list should show the same information available in the session JSON (directory field)
Workaround
Currently users must run opencode export <sessionID> for each session to see the directory, or use opencode db if it supported session queries (it currently doesn't expose sessions table).
Reacted by Ben Creasy, renet10, Andrey Andreev, dymka, Ahmet Çetinkaya and dmedora
Activity
jcrben commentedon Apr 18, 2026
I ended up just writing a wrapper around it to see this. But looking forward to being able to replace it with native functionality.
github-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.