fix: allow v2 project setup on selected remote host

Merged
RI
6mo ago
+262-82

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/--import usage
  • enhances superset projects list with 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.tsx
  • bun run --cwd packages/cli typecheck
  • bun run --cwd apps/desktop typecheck
  • git 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.


Open in Stage

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 hostId from 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).
  • New Features

    • superset projects setup supports --project <id> and --path <path> (alias for --import), with stricter argument validation; existing positional ID and --parentDir still work.
    • superset projects list adds per-host setup status and path columns and supports --host <machineId> or --local filters.

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

Review Change Stack