fix: allow v2 project setup on selected remote host
Merged
RI
6mo ago+262+262+012345678901234567890123456789-82-82-01234567890123456789
Fixes the remote/headless host setup gap where the New Workspace modal detects that a project is not registered on the selected host, but project setup opens local-only settings.
This change:
- threads selected host context from the New Workspace setup CTA into v2 project settings
- resolves the selected host URL/name in project settings and uses that host client for project setup, conflict checks, and scripts
- adds remote path entry for headless hosts instead of using the local directory picker for remote setup
- supports
superset projects setup --project <projectId> --path <path>while keeping existing positional/--importusage - enhances
superset projects listwith per-host setup status and path
Verification:
bunx biome check packages/cli/src/commands/projects/list/command.ts packages/cli/src/commands/projects/setup/command.ts apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/DashboardNewWorkspaceForm/PromptGroup/PromptGroup.tsx apps/desktop/src/renderer/routes/_authenticated/settings/projects/\$projectId/page.tsx apps/desktop/src/renderer/routes/_authenticated/settings/v2-project/\$projectId/components/V2ProjectSettings/V2ProjectSettings.tsx apps/desktop/src/renderer/routes/_authenticated/settings/v2-project/\$projectId/components/V2ProjectSettings/components/ProjectLocationSection/ProjectLocationSection.tsxbun run --cwd packages/cli typecheckbun run --cwd apps/desktop typecheckgit diff --check
Note: initial bun install failed rebuilding native node-pty because node-gyp is not installed in this environment; reran bun install --ignore-scripts to install JS tooling for typecheck.
Summary by cubic
Fixes v2 project setup so a selected remote/headless host is honored end-to-end. The New Workspace flow now opens project settings for that host and runs setup, conflict checks, and scripts on that host.
-
Bug Fixes
- Thread
hostIdfrom New Workspace to v2 project settings and resolve target host URL/name. - Use the target host client for project fetch, setup, conflict checks, and scripts.
- For remote/headless hosts, replace the local directory picker with inputs for remote import path and clone parent directory.
- Clarify UI copy (e.g., “this device” vs the remote host name).
- Thread
-
New Features
superset projects setupsupports--project <id>and--path <path>(alias for--import), with stricter argument validation; existing positional ID and--parentDirstill work.superset projects listadds per-host setup status and path columns and supports--host <machineId>or--localfilters.
Summary by CodeRabbit
- New Features
- Remote host support for project settings and configuration management
- CLI projects list now displays per-host setup status and repository paths
- CLI projects setup command now supports --project flag and --path option for flexible project registration