Uh oh!
There was an error while loading. Please reload this page.
fix: (web UI / API) show sandbox sessions created in project subdirectories - #9531
fix: (web UI / API) show sandbox sessions created in project subdirectories #9531pschiel wants to merge 1 commit into
Conversation
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. |
| 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) |
There was a problem hiding this comment.
based on Filesystem patch
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). |
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