opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: add project navigation to /session dialog in TUI

Open AksharP5 opened this issue 10 months ago • 3 comments

What does this PR do?

  • Add a directory selector to /session (ctrl+g) to browse directories with sessions.
  • Allow opening sessions from other directories with a confirmation prompt.
  • Keep session list scoped to the chosen directory; add refresh keybind in selector.

How did you verify your code works?

  • bun dev
  • type /session
  • ctrl+g to show directory selection (keybind can be changed, wasn't sure what to pick)
  • Verified manually on MacOS and WSL running ubuntu

Issue

  • Closes #8541

Screenshot/Video

Before (Can only select from current directory): Screenshot 2026-01-14 at 2 42 58 PM

After (Select from any directory with an OpenCode session):

https://github.com/user-attachments/assets/345a1b60-2754-4db1-b800-367cbb67f6c3

AksharP5 avatar Jan 14 '26 20:01 AksharP5

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

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

replied in discord

rekram1-node avatar Jan 17 '26 18:01 rekram1-node

@rekram1-node changes have been made

AksharP5 avatar Jan 17 '26 21:01 AksharP5

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

github-actions[bot] avatar May 02 '26 06:05 github-actions[bot]