Repository navigation
Conversation
Walkthrough
Priority: Severity of issue fixed: Medium Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
fdb0c87b-ec67-4c4f-a4e4-61bc9c53e2ac
Files selected for processing: 8-
src/main/ipc/repos-local-add-and-project-setup.test.tssrc/main/ipc/repos/project-host-setup-handlers.tssrc/main/runtime/orca-runtime-tests/repository-project-operations.spec.tssrc/main/runtime/runtime-project-host-setup-controller.test.tssrc/main/runtime/runtime-project-host-setup-controller.tssrc/renderer/src/store/projects/project-host-setup-actions.tssrc/renderer/src/store/slices/repos.test.tssrc/shared/project-host-setup-target.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
| export const SERVER_SSH_PROJECT_ADD_UNAVAILABLE_MESSAGE = | ||
| "This Orca server can't add projects on its SSH hosts. Add the SSH host on your computer to open its projects." |
There was a problem hiding this comment.
Localize the new SSH setup message before display.
The renderer places this English message directly in the failure toast. Users of other languages receive no localized instruction. Keep the shared error message for backend callers, but use an intent-named localization ID when the renderer displays it.
Based on learnings, newly added user-facing strings in stablyai/orca TypeScript files use intent-named localization IDs with named interpolation placeholders.
Source: Learnings
|
Thank you @MokiMeow for this fix and the thorough testing notes! You were right on both counts: a paired client can't route project setup to its server's SSH host today, and refusing before anything is dispatched is the honest answer. Using the real web fallback in your regression test was a great call, since that's exactly what produced the TypeError. Your commit is in #33284 unchanged and with your authorship. On top of it we added a few things: a standalone desktop's own SSH host keeps its previous "not connected" wording, so it isn't told to "add the SSH host on your computer"; the desktop's local IPC message is left as it was; a re-export is dropped; and a headless paired e2e now covers it. Closing this in favour of #33284, which carries your work. Really appreciate the contribution! |
ELI5
Adding a project on a paired server's SSH host should explain that this setup is unsupported. It currently reports a TypeError or incorrectly says the SSH host is disconnected.
What Changed
Reject SSH existing-folder setup and cloning before local API dispatch. Reuse the existing unsupported-setup message across renderer, runtime controller and IPC. Preserve typed SSH refusal and connection identity.
Why
Implement the issue's explicit unsupported-operation fallback. Replace a stale mocked-success test with regressions using the real web fallback producer. Nested SSH setup is not implemented.
Linked Issue
Fixes #33124.
Visual Proof
Automated before/after: four folder/git and focused/unfocused-runtime cases fail on original production with "Cannot read properties of undefined (reading 'repo')". With this fix, they return the existing clear unsupported message before local API/RPC calls or catalog mutation.
No rendered screenshot is attached. No live paired-client -> Electron server -> SSH topology was exercised locally.
Testing
Linux x86-64, Node 24.22.1, pinned dependencies:
Affected tests: 1,550 passed, 3 existing skips.
All four new real-fallback regressions fail on original production.
Full lint, type checking, changed-code quality and production build pass, including native protocol and glibc checks. Native dependency fetching needed transport retries; sources/checks were unchanged.
Eight additional Electron tests pass with isolated Xvfb.
Broad Node validation remains INCOMPLETE and has additional failures. Direct upstream comparisons reproduce 31 failing process tests across 10 unchanged suites. Other broad failures have not all been attributed. No whole-suite success is claimed.
No local macOS, Windows or live paired SSH validation.
I manually tested these changes locally (live paired SSH topology untested)
Automated tests added/updated
AI Disclosure
Implemented and reviewed with OpenAI Codex (GPT-6). Author X: @smohiths.
Review
Considered local/runtime/SSH routing, folder/git setup, mixed client/server versions, mobile server-error reuse, catalog mutation, cross-platform behavior, security and performance scope.
Agent skill upstream boundary
Notes
Existing legacy SSH project import flows are unchanged.
Checklist