fix: (web UI / API) show sandbox sessions created in project subdirectories #9531
Closed
pschiel wants to merge 1 commit intoanomalyco:devfrom
Closed
fix: (web UI / API) show sandbox sessions created in project subdirectories #9531pschiel wants to merge 1 commit intoanomalyco:devfrom
pschiel wants to merge 1 commit intoanomalyco:devfrom
Conversation
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
pschiel
commented
Jan 20, 2026
| const sessions: Session.Info[] = [] | ||
| for await (const session of Session.list()) { | ||
| if (query.directory !== undefined && session.directory !== query.directory) continue | ||
| const normalizedSessionDir = Filesystem.normalize(session.directory) |
Contributor
Author
There was a problem hiding this comment.
based on Filesystem patch
Contributor
|
The following comment was made by an LLM, it may be inaccurate: Based on my search results, I found one potentially related PR: Related PR:
This PR appears related as it also deals with session filtering by directory, which is directly relevant to the current PR's goal of showing sessions created in different directories in the web UI. The other results mention external_directory permissions and path handling, but they don't appear to be direct duplicates of the current fix (PR #9531). |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related to #9366
Web UI does not show sessions that are created in a project's subdirectory
If you start opencode in a subdirectory of a project - it will set
session.directoryto that pwd. Allowing a differentexternal_directorypermission setup.The web UI doesn't currently show these, so you're unable to access these sessions via web (they are shown in TUI),
Fix:
GET /session) viacontainsinstead of a direct match