Files
OpenHands/scripts
2130a364c9 Mount dev:docker project path at /projects and auto-list it as a work… (#241)
* 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>
2026-05-09 14:18:58 -07:00
..