You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #31210. This is the current-dev implementation for #38529; unlike #31210, it intentionally makes exact-directory filtering the default in both Git and non-Git contexts while retaining project scope when directory filtering is disabled.
Type of change
Bug fix
New feature
Refactor / code improvement
Documentation
What does this PR do?
Non-git directories share the global project, so project-only session queries can mix unrelated directories.
The CLI now sends its exact instance directory when listing sessions. The TUI uses the same exact-directory filter by default and keeps project scope when directory filtering is disabled. Explicit recursive path behavior is unchanged, and directory queries retain the legacy path IS NULL fallback. Resume-time cwd handling is intentionally out of scope.
How did you verify your code works?
Focused CLI, TUI, and server session-list tests
bun typecheck in packages/opencode and packages/tui
Related: handles directory resolution during session listing
These PRs tackle similar problems around session scoping and directory-based filtering. PR #38532 appears to be consolidating these fixes into a comprehensive solution (as indicated by "Replaces the implementation scope from #28972 and #18890" in the description).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #38529
Replaces the implementation scope from #28972 and #18890.
Related to #31210. This is the current-
devimplementation for #38529; unlike #31210, it intentionally makes exact-directory filtering the default in both Git and non-Git contexts while retaining project scope when directory filtering is disabled.Type of change
What does this PR do?
Non-git directories share the global project, so project-only session queries can mix unrelated directories.
The CLI now sends its exact instance directory when listing sessions. The TUI uses the same exact-directory filter by default and keeps project scope when directory filtering is disabled. Explicit recursive
pathbehavior is unchanged, and directory queries retain the legacypath IS NULLfallback. Resume-time cwd handling is intentionally out of scope.How did you verify your code works?
bun typecheckinpackages/opencodeandpackages/tuibun turbo typecheckgit diff --checkScreenshots / recordings
N/A. Query behavior only.
Checklist