opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: add directory navigation to /session dialog in TUI

Open AksharP5 opened this issue 10 months ago • 3 comments

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.

AksharP5 avatar Jan 14 '26 20:01 AksharP5

working on this

AksharP5 avatar Jan 14 '26 20:01 AksharP5

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.

github-actions[bot] avatar Jan 14 '26 20:01 github-actions[bot]

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

thdxr avatar Mar 25 '26 03:03 thdxr