Skip to content

fix(projects): stop offering a project on a paired server's SSH host, and say where to add it - #29919

Merged
nwparker merged 1 commit into
mainfrom
nwparker/server-ssh-project-add-retired
Oct 17, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/server-ssh-project-add-retired

Conversation

@nwparker

@nwparker nwparker commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​27 $\color{#cf222e}{\Huge{\mathbf{−}}}$​29 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2
Prod 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​29 $\color{#cf222e}{\Huge{\mathbf{−}}}$​34 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5

ELI5

When you're connected to another Orca server, the "Add a project" dialog offered "Project on this server's SSH host". Picking it always failed with a confusing "SSH connection not found or not connected" error, even when the SSH host was connected. Orca servers no longer register projects on their SSH hosts, so the dialog now says so and tells you what to do instead: add that SSH host on this computer.

What Changed

  • Before: with a paired server selected, "Project on this server's SSH host" was enabled whenever the server advertised ssh.target-management.v1. You could pick a connected host and a valid folder, and adding it failed with SSH connection "<id>" not found or not connected.
  • After: the row is still listed but disabled, reading "Not available from a server. Add the SSH host on this computer to open its projects." An older client that still offers the flow gets the same advice from the server: "This Orca server can't add projects on its SSH hosts. Add the SSH host on your computer to open its projects."

Mechanism:

  • Renderer: getAddRepoLocalStartActions takes offersServerSshHosts (a paired server is selected) instead of the capability state, and always disables the row with the new message.
  • Host: RuntimeProjectHostSetupController.addSshRepo (behind repo.addRemote) keeps refusing, with the new message. repo.addRemote stays registered so older clients get the explanation rather than method_not_found.

Why

I chose to remove the option rather than route it through the SSH host's managed server. Since #27609, no Orca process serves an SSH target: a project on an SSH host lives on that host's own managed server, reached as runtime:<env>. Routing this through the target's managed server would need three new pieces: the paired server deploying or reaching a managed server on its SSH host, forwarding project registration to it, and republishing that server's catalog to this client so the new project appears. That is a new cross-server federation feature with its own wire contract, too large and risky for a fix. Until it exists, an option that always fails is worse than an honest one.

I kept the row visible but disabled, rather than deleting it, so people who look for it are told where the feature went. The now-unreachable remote step code is left untouched to keep this diff small; removing it is a mechanical follow-up.

Mixed versions: no RPC or capability change. The only host-side change is the refusal text, and that text is meant to reach old clients.

Linked Issue

Finding 6 of the third external SSH review (maintainer follow-up, no GitHub issue).

Visual Proof

N/A: copy change on an existing row (enabled to disabled with a new description), asserted in AddRepoStartSteps.test.tsx.

Testing

  • AddRepoStartSteps.test.tsx: with a paired server, the row is disabled with the new message (fails on main, where it was enabled).

  • runtime-project-host-setup-controller.test.ts and the orca-runtime repository spec: repo.addRemote refuses with the new message (fails on main).

  • src/renderer/src/components/sidebar (369 files), pnpm tc, localization catalog and coverage checks, and the static-analysis job steps from pr.yml pass locally.

  • Not verified live: needs a paired server plus the Electron dialog. Verified only in tests. One unrelated orca-runtime test (preserves existing badgeColor on runtime cloneRepo…) fails on macOS on main too, because of /var vs /private/var.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

Review

Codex review (gpt-6.1-sol, high): no findings.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

New strings are translated in all six locale catalogs; the two retired keys are removed.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

… and say where to add it

Since #27609 a server serves no SSH target and refuses repo.addRemote, yet the add-project dialog
still offered "Project on this server's SSH host" and the refusal read "SSH connection not found
or not connected". The row is now disabled with a message pointing to adding the SSH host on this
computer, and the server's refusal says the same for older clients that still offer it.
@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7a9cb80f-7ba9-4d5a-915f-97e1582c8f23
📥 Commits

Reviewing files that changed from the base of the PR and between 6bbc3cb and 0b4fe53.

📒 Files selected for processing: 13
  • src/main/runtime/orca-runtime-tests/repository-project-operations.spec.ts
  • src/main/runtime/runtime-project-host-setup-controller.test.ts
  • src/main/runtime/runtime-project-host-setup-controller.ts
  • src/renderer/src/components/sidebar/AddRepoDialogStepContent.tsx
  • src/renderer/src/components/sidebar/AddRepoStartSteps.test.tsx
  • src/renderer/src/components/sidebar/AddRepoStartSteps.tsx
  • src/renderer/src/components/sidebar/add-repo-local-start-actions.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

📝 Walkthrough

The runtime controller now rejects SSH project-add requests with a server-specific message. The local add-repository flow uses a boolean to indicate whether server SSH hosts are offered. When they are, the remote action appears disabled and directs users to add the SSH host on this computer. Tests and six locale strings reflect these changes.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 0b4fe

The change disables the server SSH-host option in the Add a project dialog and tells users to add the SSH host on their computer. The refusal on the server is unchanged apart from a clearer message. No actionable merge-blocking risk is identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 7 files. (6 skipped: 6… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: disabling the paired server SSH-host project option and directing users where to add it.
Description check Passed The description is complete and covers the user impact, implementation, rationale, testing, visual proof, localization, compatibility, and checklist status. It explains why no GitHub issue is linked a…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description is complete and covers the user impact, implementation, rationale, testing, visual proof, localization, compatibility, and checklist status. It explains why no GitHub issue is linked and reports the remaining test limitations.

Full details: Docstring Coverage

Explanation

Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 7 files. (6 skipped: 6 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 49450b7 into main Oct 17, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant