opencode
opencode copied to clipboard
feat: add project navigation to /session dialog in TUI
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+gto 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):
After (Select from any directory with an OpenCode session):
https://github.com/user-attachments/assets/345a1b60-2754-4db1-b800-367cbb67f6c3
The following comment was made by an LLM, it may be inaccurate:
No duplicate PRs found
replied in discord
@rekram1-node changes have been made
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.