Description
opencode session list and the default TUI session filter can expose sessions from unrelated non-git directories. Non-git directories share the global project, while the CLI currently omits its directory and the TUI uses a recursive path filter.
Expected: default CLI and TUI listings use the exact launch directory. Explicit project/recursive browsing should keep its existing behavior. This issue only covers discovery; changing runtime cwd when resuming a session is separate.
Replaces #28972 and #18890, which were closed by inactivity while the current dev behavior remained unchanged.
Plugins
None
OpenCode version
Current dev (62e4641235)
Steps to reproduce
- Create sessions in two unrelated non-git directories.
- Run
opencode session list in one directory.
- Open the TUI session picker there.
- Observe sessions from the other directory under the shared global project.
Screenshot and/or share link
N/A
Operating System
macOS
Terminal
iTerm2 / zsh
Description
opencode session listand the default TUI session filter can expose sessions from unrelated non-git directories. Non-git directories share the global project, while the CLI currently omits its directory and the TUI uses a recursive path filter.Expected: default CLI and TUI listings use the exact launch directory. Explicit project/recursive browsing should keep its existing behavior. This issue only covers discovery; changing runtime cwd when resuming a session is separate.
Replaces #28972 and #18890, which were closed by inactivity while the current
devbehavior remained unchanged.Plugins
None
OpenCode version
Current
dev(62e4641235)Steps to reproduce
opencode session listin one directory.Screenshot and/or share link
N/A
Operating System
macOS
Terminal
iTerm2 / zsh