Repository navigation
fix(projects): stop offering a project on a paired server's SSH host, and say where to add it - #29919
Conversation
… 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.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
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
ssh.target-management.v1. You could pick a connected host and a valid folder, and adding it failed withSSH connection "<id>" not found or not connected.Mechanism:
getAddRepoLocalStartActionstakesoffersServerSshHosts(a paired server is selected) instead of the capability state, and always disables the row with the new message.RuntimeProjectHostSetupController.addSshRepo(behindrepo.addRemote) keeps refusing, with the new message.repo.addRemotestays registered so older clients get the explanation rather thanmethod_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.tsand the orca-runtime repository spec:repo.addRemoterefuses 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 frompr.ymlpass 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/varvs/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
Notes
New strings are translated in all six locale catalogs; the two retired keys are removed.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)