mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-10-07 17:08:34 +08:00
* Mount dev:docker project path at /projects and auto-list it as a workspace parent The dev:docker script previously mounted PROJECT_PATH at /workspace/projects inside the agent-server container. Move the mount to /projects to match the shorter, more conventional path used elsewhere in our dockerized setup. To keep that change useful out of the box, useResolvedWorkspaces now always treats /projects as an implicit workspace parent in addition to any parents saved in the workspaces store. Its immediate subdirectories show up in the workspace dropdown automatically. In dockerless dev the search request simply errors and contributes nothing, so the implicit parent stays silent. Tests: - workspace-selection-form.test.tsx now installs an empty default searchSubdirs spy in beforeEach so the implicit /projects query doesn't hit the network in tests that don't care about it. - The 'remove parent' test scopes its mock to the user-added parent so the implicit /projects query doesn't echo the same children back. Co-authored-by: openhands <openhands@all-hands.dev> * Update src/hooks/query/use-resolved-workspaces.ts Co-authored-by: OpenHands Bot <contact@all-hands.dev> * Update src/hooks/query/use-resolved-workspaces.ts Co-authored-by: OpenHands Bot <contact@all-hands.dev> --------- Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: OpenHands Bot <contact@all-hands.dev>