Uh oh!
There was an error while loading. Please reload this page.
fix(session): scope default lists by directory - #38532
Conversation
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found related PRs that address similar session scoping and directory filtering concerns:
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). |
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
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