[FEATURE]: add directory navigation to /session dialog in TUI
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Summary
The /session dialog is scoped to the current directory, which makes it hard to find or open sessions created in other directories. There’s no built‑in way to browse recent directories or switch context from the session list.
Expected
Provide a “change directory” flow inside /session that lets users browse sessions from other directories and optionally switch to that directory when opening a session.
Current behavior
Users must restart OpenCode in the target directory to see those sessions.
Proposed Solution
Add a directory selector in /session (e.g. ctrl+g), list recent directories based on existing sessions, and prompt to switch directories when opening a session outside the current directory.
working on this
This issue might be a duplicate of existing issues. Please check:
- #6697: [BUG]: Session switching doesn't change working directory context - addresses the core issue of sessions not maintaining their directory context
- #4048: [FEATURE]: tie working directory / directories with chat session - requests tying working directory to sessions
- #6032: [FEATURE]: Nerdtree like session manager - proposes a better session management UI with directory awareness
- #6098: The sessions list seems to show all history, not the sessions history of the working directory - related scoping issue
Feel free to ignore if your specific use case differs from these.
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.