Skip to content

refactor(ssh): connect fails for hosts orcad can't serve; remove the relay client path - #27214

Merged
OrcaWin merged 17 commits into
mainfrom
OrcaWin/ssh-relay-retire-client
Oct 11, 2026
Merged

OrcaWin merged 17 commits into
mainfrom
OrcaWin/ssh-relay-retire-client

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 238 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​385 $\color{#cf222e}{\Huge{\mathbf{−}}}$​48439 $\color{#cf222e}{\Huge{\mathbf{−}}}$​48054
Prod 170 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​425 $\color{#cf222e}{\Huge{\mathbf{−}}}$​20418 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19993

ELI5

Orca used to upload a small program, the "relay", to every SSH host, and fell back to it whenever its managed server ("orcad") couldn't run. Since v1.4.224, SSH hosts run orcad. This PR removes the relay from the desktop's connect path. A host orcad can't serve now gets one clear, translated message, never a silent fallback.

This is the first of a stack (client → server/build). Do not merge; the owner decides when.

What Changed

What users see

  • Before: if orcad couldn't run on a host (glibc too old, missing system libraries, unsupported OS or CPU, a noexec home, an SSH server that refuses port forwarding, security software rewriting the runtime, ...), Orca quietly deployed the relay and the host kept working on the old path.

  • After: the connect fails. The SSH Hosts card shows, translated into all six catalogs:

    This host isn’t supported by this version of Orca (reason). To keep using it, install an older version of Orca.

    The port-forwarding case gets its own sentence. The connect toast uses the same translated text, and main's untranslated twin is the error message. "Couldn't start, try again" failures (deferred, failed) say so instead of falling back.

  • Terminals still running inside an older Orca's relay (the user upgraded while they were live): conversion still refuses while any exist. The host now shows "Terminals started by an older version of Orca are still running on this host, and they don’t stop on their own. Close them in that version of Orca or end them on the host, then reconnect." There is no bridge into the old relay any more (see "Live terminals" below).

  • Leftover leases from the older build no longer lock a host out. With no relay session, the terminal gate lets the host-wide relay census decide. If the census proves every relay idle, the leases are proven exited, conversion proceeds, and it retires them. An unanswered census still blocks as unverifiable.

  • The translated reason appears everywhere a connect can fail: SSH Hosts settings, the terminal reconnect overlay (toast and inline line), the worktree card, and the status bar.

  • Settings removed: Runtime (Auto / Orca-managed / Host Node), "Keep terminals alive until reset", and "Timeout after disconnect" (all relay-only). Also gone: Reset Relay, End Remote Terminals, the Move-to-managed-server toast and dialog, and the plain-SSH and Host-Node status lines.

Mechanism

  • ssh-connect-flow.ts: when the managed-server decision is not managed, the connect closes the transport its decision opened, publishes the status (publishUnservedHostServer), and throws. It never constructs a relay session. decideHostServer no longer swallows errors to fall back to the relay.
  • The published status keeps its shipped shape (managedServer: { kind: 'relay', reason, … }) so retained payloads and older readers are unaffected. Only its meaning changes ("not served"), as noted in ssh-host-unserved-status.ts.
  • Deleted: the relay session, relay deploy and the A/B/C/legacy/D runtime ladder (pinned node, npm and native deps, node headers, node-pty repair, build toolchain), plain-SSH mode, the relay's opencode, ripgrep and upload-stage helpers, the relayed remote orca CLI (incl. linear and orchestration passthrough), the relay port scanner, orphan PTY sweep, PTY consumer recovery, reset and repair locks, the SSH filesystem providers, and the AI Vault SSH legs. The IPC layer loses its relay-session bookkeeping (active sessions, relay-lost backoff, state overrides, reset-in-flight); shutdown drain and sleep/wake now handle only transports and managed tunnels.
  • Kept for the next PR in the stack: the ssh: git/pty provider classes and their ~100 routing consumers, and the previous-relay census/bridge modules they import. Nothing constructs them any more.

Live terminals: I replaced the bridge with the "reconnect to continue" notice. The bridge cannot stand alone: it lives inside the current relay session and reuses its SshPtyProvider stack (about 1,020 production plus 1,430 test lines for the bridge itself, on top of ~7k lines of SSH PTY plumbing). A standalone legacy terminal client would be 500–800 new lines of relay-protocol code.

Mixed versions (old and new desktop on one host)

  • The new desktop never deploys, sweeps, or stops anything under ~/.orca-remote/relay-*, the shared native-deps cache, or ripgrep/. Relay GC lived only in relay deploy, which is deleted.
  • orcad GC is prefix-limited to orcad-*. The Node runtime-store GC still scans every sibling directory plus ps, so an old desktop's live relay keeps its runtime.
  • Old relays read no orcad host state, so an older desktop keeps deploying and using its own relay. A v1.4.224+ desktop against a host activated by a newer app is refused by refuseOrcadHostDowngrade, then uses its relay as before.
  • No RPC or stream change. The published status is the same shape.
  • SSH execution boundary: no local fallback for a remote host. A host the managed server doesn't serve fails instead of running anywhere else, and a terminal census that can't answer stays unverifiable.

Net lines (vs main, which includes #27174): production −19,041 (+356 / −19,397); tests −51,184 (includes the e2e specs below); config/CI/locales −1,515.

Why

The owner decided on 2026-10-10 to delete the relay with no off-by-default stage; users on hosts orcad can't run on can downgrade. Failing with a translated reason is the only behavior that doesn't silently put a host on a code path we no longer ship. I kept the published status shape, rather than adding a new kind, so no paired client or retained payload has to learn a new arm (remote wire compatibility, Rule 3/4).

Linked Issue

Phase 6 (relay retirement) of the Node runtime plan. No issue.

Visual Proof

N/A in this PR: there are no new components. The SSH Hosts card shows the translated status line above in place of the old "Runs the relay: …" line, and the relay-only buttons and fields are gone. I didn't run Electron locally (repo policy for this task).

Testing

  • pnpm tc (node, web, cli): pass

  • Affected unit suites (src/main/{ipc,ssh,providers,runtime,persistence,ai-vault,agent-hooks,startup}, renderer settings/sidebar/hooks, src/shared, config/scripts): pass, apart from known Node 26 profile-state timeouts and a local bash-version test that also fail on main

  • New: unserved-host connect test (ssh.test.ts), status-copy tests for unsupported, port-forwarding, older-terminal and retry lines, the connect-toast translation, and the card not repeating main's English

  • check:code-quality:changed, oxlint, oxfmt, localization extraction, catalog, coverage and runtime-catalog checks, reliability gates: pass

  • I manually tested these changes locally

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

E2E: 41 Docker-SSH, localhost-SSH, nested-runtime and ephemeral-VM specs connected through the relay path in the general e2e lane, which never builds an orcad template, so they were removed along with their dedicated CI jobs (ssh-docker-watcher-isolation, ssh-localhost), routes and runner scripts. The ssh-orcad-* lane is unchanged and covers SSH on orcad. Porting the removed UX journeys (pane restore, reconnect, quick open, port forwards) to that lane is a follow-up.

Marked test.fixme (reason inline): three orcad-lane journeys built their "relay era" through a connect with no template, which now refuses the host: the retained browser tab routing after conversion, the browser service status, and the conversion-catalog retry. They need that era seeded from a profile (as seedRelayEraProfile already does for the auto-convert case). Follow-up.

Known gap: the hostile-host matrix keeps only its managed-orcad cells. The relay-only cells need "orcad activates or the host is classified unsupported" expectations from a real lane run.

Reviews: an Opus and an Astra P0/P1 review both flagged that leftover relay leases blocked unconverted hosts forever, and that the translation reached only Settings. Opus also flagged that live older terminals left no in-app remedy. All three are fixed (census-proven leases, the remedy named in the copy, one shared translator). Reports are in the coordinator's notes.

Agent skill upstream boundary

  • Not applicable

Notes

Cross-platform: Windows hosts lose the relayed remote orca CLI; orcad's CLI launcher is POSIX-only today. Managed hook install on connect was relay-only; orcad installs hooks when hook settings change.

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)

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

We couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting @coderabbitai full review.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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: 4c2f7e9a-00f6-486d-9ac1-47d5127c4c28














📥 Commits

Reviewing files that changed from the base of the PR and between 40cbf26 and 7e8b88b.















📒 Files selected for processing (1)
  • tests/e2e/ssh-orcad-auto-convert.spec.ts














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
















📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

This change removes SSH relay and plain-SSH paths, including related connection management, filesystem providers, AI Vault routing, managed-server move actions, and settings. SSH connections now use managed-server decisions, and unserved hosts receive status and error messages. The change also revises SSH status wording, CI routing, and SSH test coverage.





























































































Priority: ➖ Normal

Merge Risk: 🔵 Low · up to 7e8b8

Ordinary Windows validation remains available, but direct use of the validation script can fail, and some SSH status and connection-failure messages remain misleading. These bounded issues warrant follow-up.

Pre-merge checks | Passed 3 | Failed 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 22.22% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 81 functions across 72 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description explains the behavior, implementation, rationale, testing, known gaps, and user impact. However, the required Linked Issue section says “No issue” instead of linking an actual issue. Add a valid issue reference under Linked Issue, such as “Fixes #12345”. Replace “No issue.” with the actual issue link before merge.
✅ Passed checks (3 passed)
Check name Status Explanation
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.
Title check Passed The title clearly identifies the main change: SSH connections now fail when Orca cannot serve the host, and the relay client path is removed.



















✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

















⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch OrcaWin/ssh-relay-retire-client



























  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (2)

🟡 Minor · Remove the stale relay cell IDs from the script. · invoke-pinned-relay-cells.ps1:9

config/ci/windows-ssh-provider/invoke-pinned-relay-cells.ps1:9
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Remove the stale relay cell IDs from the script.

The workflow no longer passes pinned-*, legacy-opt-out or orcad-cli-relay-kept. Line 120 now throws for any non-orcad- cell, so pinned-* and legacy-opt-out can no longer run. Line 9 still accepts them in ValidateSet and defaults $Cells to three of them. A caller that relies on the default fails at line 120. Line 15 still maps orcad-cli-relay-kept to a spec grep. The upstream cell list in ssh-windows-host-cells.ts also still names orcad-cli-relay-kept. Align the script defaults and maps with the workflow.

Proposed fix for the default list
-[ValidateSet('pinned-cmd','pinned-powershell','legacy-opt-out','orcad-cmd','orcad-powershell','orcad-convert','orcad-cli-managed','orcad-cli-convert','orcad-cli-relay-kept')][string[]]$Cells=@('pinned-cmd','pinned-powershell','legacy-opt-out','orcad-cmd','orcad-powershell')
+[ValidateSet('orcad-cmd','orcad-powershell','orcad-convert','orcad-cli-managed','orcad-cli-convert')][string[]]$Cells=@('orcad-cmd','orcad-powershell')

Also applies to: 13-13, 15-15

🟡 Minor · Update the source_changed status line. It still says… · ssh-host-server-status-copy.ts:69-77

src/renderer/src/components/settings/ssh-host-server-status-copy.ts:69-77
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Update the source_changed status line. It still says the host runs the relay.

sourceChangedLine shows "Changed on an older Orca: runs the relay until it is moved to its managed server again." After this change, nothing serves the host through a relay. unservedLine returns this line for reason: 'source_changed', and the connect fails. The other unserved lines were rewritten to remove relay wording. The new test at Line 103 checks that no unsupported line contains "relay". The main-process twin in src/main/ssh/ssh-host-unserved-status.ts (Line 31) already uses the new wording. The sshConnectFailureText toast also shows this text, so users see two different messages for the same state.

Change the text to match the main-process message. Use a new intent-named key so translators do not keep the old relay meaning.

Proposed fix
 function sourceChangedLine(): SshHostServerStatusLine {
   return {
     tone: 'warning',
     text: translate(
-      'auto.components.settings.sshHostServer.sourceChanged',
-      'Changed on an older Orca: runs the relay until it is moved to its managed server again.'
+      'auto.components.settings.sshHostServer.sourceChangedMoveRequired',
+      'An older version of Orca changed this host’s projects. Move those changes to its managed server to continue.'
     )
   }
 }

Based on learnings: new user-facing strings must use "intent-named localization IDs with named interpolation placeholders".

Source: Learnings


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4f598d8f-934b-461f-bb48-ff74bba92db5
📥 Commits

Reviewing files that changed from the base of the PR and between 6af18ab and 478dd2c.

📒 Files selected for processing (296)
  • .github/workflows/pr.yml
  • .github/workflows/ssh-hostile-hosts.yml
  • .github/workflows/ssh-windows-hosts.yml
  • config/ci/windows-ssh-provider/invoke-pinned-relay-cells.ps1
  • config/reliability-gates.jsonc
  • config/scripts/orcad-windows-prebuild-workflow.test.mjs
  • config/scripts/pr-code-change-scope.mjs
  • config/scripts/ssh-localhost-e2e-routing.test.mjs
  • config/scripts/ssh-relay-import-boundary.test.mjs
  • src/main/ai-vault/ssh-session-list.test.ts
  • src/main/ai-vault/ssh-session-list.ts
  • src/main/ipc/ai-vault-host-leg-cache-retention.test.ts
  • src/main/ipc/ai-vault-scan-coalescing.test.ts
  • src/main/ipc/ai-vault-search.test.ts
  • src/main/ipc/ai-vault-search.ts
  • src/main/ipc/ai-vault-session-title-routing.ts
  • src/main/ipc/ai-vault.test.ts
  • src/main/ipc/ai-vault.ts
  • src/main/ipc/managed-host-status-publication.test.ts
  • src/main/ipc/pty-controller-ownership-routing.test.ts
  • src/main/ipc/runtime-environment-managed-tunnel.ts
  • src/main/ipc/ssh-active-relay-sessions.test.ts
  • src/main/ipc/ssh-active-relay-sessions.ts
  • src/main/ipc/ssh-advertised-url-refresh.ts
  • src/main/ipc/ssh-app-shutdown.test.ts
  • src/main/ipc/ssh-connect-attempt-registry.ts
  • src/main/ipc/ssh-connect-decision-cancellation.test.ts
  • src/main/ipc/ssh-connect-flow.ts
  • src/main/ipc/ssh-connect-recheck-cancellation.test.ts
  • src/main/ipc/ssh-connection-handlers.ts
  • src/main/ipc/ssh-connection-state-callbacks.ts
  • src/main/ipc/ssh-disconnect-cancellation.test.ts
  • src/main/ipc/ssh-handler-reregistration.test.ts
  • src/main/ipc/ssh-host-node-runtime-connect.test.ts
  • src/main/ipc/ssh-host-server-connect.ts
  • src/main/ipc/ssh-host-server-decision-failure.test.ts
  • src/main/ipc/ssh-host-server-relay-decision.test.ts
  • src/main/ipc/ssh-host-sleep-reconnect.test.ts
  • src/main/ipc/ssh-host-sleep-reconnect.ts
  • src/main/ipc/ssh-ipc-mock-shapes.ts
  • src/main/ipc/ssh-ipc-module-mocks.ts
  • src/main/ipc/ssh-ipc-test-harness.ts
  • src/main/ipc/ssh-managed-server-move-conversion.test.ts
  • src/main/ipc/ssh-managed-server-move-stop-retention.test.ts
  • src/main/ipc/ssh-managed-server-move.test.ts
  • src/main/ipc/ssh-managed-server-move.ts
  • src/main/ipc/ssh-managed-server-unlink-broadcast.test.ts
  • src/main/ipc/ssh-plain-ssh-connect.test.ts
  • src/main/ipc/ssh-port-forward-handlers.ts
  • src/main/ipc/ssh-pty-consumer-identity.test.ts
  • src/main/ipc/ssh-relay-lost-backoff.ts
  • src/main/ipc/ssh-relay-reset-resume.test.ts
  • src/main/ipc/ssh-relay-session-callbacks.ts
  • src/main/ipc/ssh-renderer-broadcast.ts
  • src/main/ipc/ssh-session-teardown.ts
  • src/main/ipc/ssh-shutdown-drain.ts
  • src/main/ipc/ssh-state-broadcast-fanout.test.ts
  • src/main/ipc/ssh-target-registry.test.ts
  • src/main/ipc/ssh-terminate-sessions-previous-relay.test.ts
  • src/main/ipc/ssh-terminate-sessions.test.ts
  • src/main/ipc/ssh-terminate-sessions.ts
  • src/main/ipc/ssh.test.ts
  • src/main/ipc/ssh.ts
  • src/main/persistence/loading-store/ssh-lease-async-durability.test.ts
  • src/main/providers/ssh-directory-legacy-compatibility.test.ts
  • src/main/providers/ssh-directory-listing-options.test.ts
  • src/main/providers/ssh-directory-listing.ts
  • src/main/providers/ssh-directory-streaming-real.test.ts
  • src/main/providers/ssh-directory-streaming.test.ts
  • src/main/providers/ssh-file-listing.ts
  • src/main/providers/ssh-filesystem-doc-preview.test.ts
  • src/main/providers/ssh-filesystem-doc-preview.ts
  • src/main/providers/ssh-filesystem-download.test.ts
  • src/main/providers/ssh-filesystem-download.ts
  • src/main/providers/ssh-filesystem-file-upload.ts
  • src/main/providers/ssh-filesystem-listing-params.ts
  • src/main/providers/ssh-filesystem-path-existence.ts
  • src/main/providers/ssh-filesystem-provider-capabilities.test.ts
  • src/main/providers/ssh-filesystem-provider-capabilities.ts
  • src/main/providers/ssh-filesystem-provider-download-folder.test.ts
  • src/main/providers/ssh-filesystem-provider-range.test.ts
  • src/main/providers/ssh-filesystem-provider-stream.test.ts
  • src/main/providers/ssh-filesystem-provider-watch-waiters.test.ts
  • src/main/providers/ssh-filesystem-provider-watch.ts
  • src/main/providers/ssh-filesystem-provider.test.ts
  • src/main/providers/ssh-filesystem-provider.ts
  • src/main/providers/ssh-filesystem-range-read.ts
  • src/main/providers/ssh-filesystem-terminal-artifact.ts
  • src/main/providers/ssh-filesystem-watch-notifications.test.ts
  • src/main/providers/ssh-filesystem-watch-notifications.ts
  • src/main/providers/ssh-listing-compatibility.test.ts
  • src/main/providers/ssh-markdown-document-listing.ts
  • src/main/providers/ssh-plain-shell-pty-provider.test.ts
  • src/main/providers/ssh-plain-shell-pty-provider.ts
  • src/main/providers/ssh-sftp-directory-listing.ts
  • src/main/providers/ssh-sftp-filesystem-channel.ts
  • src/main/providers/ssh-sftp-filesystem-provider.test.ts
  • src/main/providers/ssh-sftp-filesystem-provider.ts
  • src/main/providers/terminal-path-existence-batch.integration.test.ts
  • src/main/runtime/orca-runtime-files-ssh-rearm.test.ts
  • src/main/runtime/runtime-file-commands-ssh-file-watcher-rearm.test.ts
  • src/main/runtime/runtime-file-upload-decode.test.ts
  • src/main/runtime/ssh-file-explorer-watch-test-connection.ts
  • src/main/ssh/orcad-windows-host-lane.test.ts
  • src/main/ssh/orcad-windows-relay-terminal-gate-test-cell.ts
  • src/main/ssh/relay-native-dependency-coverage.test.ts
  • src/main/ssh/relay-socket-path-limit.test.ts
  • src/main/ssh/remote-install-gc-termination.test.ts
  • src/main/ssh/ssh-bridge-caller-scope.test-fixture.ts
  • src/main/ssh/ssh-filesystem-stream-retention.test.ts
  • src/main/ssh/ssh-host-cli-deadline.ts
  • src/main/ssh/ssh-host-node-runtime-mode.ts
  • src/main/ssh/ssh-host-provider-set.test.ts
  • src/main/ssh/ssh-host-provider-set.ts
  • src/main/ssh/ssh-host-server-move-offer.test.ts
  • src/main/ssh/ssh-host-server-move-offer.ts
  • src/main/ssh/ssh-host-unserved-status.ts
  • src/main/ssh/ssh-hostile-host-cells.ts
  • src/main/ssh/ssh-hostile-host-managed-orcad.ts
  • src/main/ssh/ssh-hostile-host-test-harness.ts
  • src/main/ssh/ssh-hostile-hosts.docker.test.ts
  • src/main/ssh/ssh-orphan-relay-pty-sweep.test.ts
  • src/main/ssh/ssh-orphan-relay-pty-sweep.ts
  • src/main/ssh/ssh-orphan-sweep-pane-state-verdicts.test.ts
  • src/main/ssh/ssh-owner-admission-blocked-error.ts
  • src/main/ssh/ssh-pending-pty-kill-replay.test.ts
  • src/main/ssh/ssh-pending-pty-kill-replay.ts
  • src/main/ssh/ssh-plain-ssh-session.ts
  • src/main/ssh/ssh-port-scanner.test.ts
  • src/main/ssh/ssh-port-scanner.ts
  • src/main/ssh/ssh-pty-consumer-recovery.test.ts
  • src/main/ssh/ssh-pty-consumer-recovery.ts
  • src/main/ssh/ssh-pty-frame-rejection.ts
  • src/main/ssh/ssh-pty-recovery-retention-budget.test.ts
  • src/main/ssh/ssh-pty-recovery-retention-budget.ts
  • src/main/ssh/ssh-pty-retired-source-deliveries.test.ts
  • src/main/ssh/ssh-pty-retired-source-deliveries.ts
  • src/main/ssh/ssh-pty-targeted-reattach-queue.ts
  • src/main/ssh/ssh-relay-build-toolchain.test.ts
  • src/main/ssh/ssh-relay-build-toolchain.ts
  • src/main/ssh/ssh-relay-bundled-ripgrep.docker.test.ts
  • src/main/ssh/ssh-relay-cross-version-isolation.test.ts
  • src/main/ssh/ssh-relay-deploy-helpers.test.ts
  • src/main/ssh/ssh-relay-deploy-incumbent-verdict.test.ts
  • src/main/ssh/ssh-relay-deploy-pinned-node.test.ts
  • src/main/ssh/ssh-relay-deploy-staged-upload.test.ts
  • src/main/ssh/ssh-relay-deploy-windows-pipe.test.ts
  • src/main/ssh/ssh-relay-deploy.test.ts
  • src/main/ssh/ssh-relay-deploy.ts
  • src/main/ssh/ssh-relay-gc-retry.test.ts
  • src/main/ssh/ssh-relay-host-node-addons.test.ts
  • src/main/ssh/ssh-relay-host-node-addons.ts
  • src/main/ssh/ssh-relay-hostile-hosts.docker.test.ts
  • src/main/ssh/ssh-relay-live-connect.test.ts
  • src/main/ssh/ssh-relay-native-deps-cache-deploy.test.ts
  • src/main/ssh/ssh-relay-native-deps-cache-install.ts
  • src/main/ssh/ssh-relay-native-deps-install-staged-upload.test.ts
  • src/main/ssh/ssh-relay-native-deps-install.test.ts
  • src/main/ssh/ssh-relay-native-deps-probe-verdict.test.ts
  • src/main/ssh/ssh-relay-node-headers.test.ts
  • src/main/ssh/ssh-relay-node-headers.ts
  • src/main/ssh/ssh-relay-node-pty-repair.test.ts
  • src/main/ssh/ssh-relay-node-pty-repair.ts
  • src/main/ssh/ssh-relay-node-pty-spawn-repair.test.ts
  • src/main/ssh/ssh-relay-offline-node-headers.docker.test.ts
  • src/main/ssh/ssh-relay-opencode-pinned-node.test.ts
  • src/main/ssh/ssh-relay-opencode-pinned-node.ts
  • src/main/ssh/ssh-relay-opencode-runtime-commands.test.ts
  • src/main/ssh/ssh-relay-opencode-runtime-commands.ts
  • src/main/ssh/ssh-relay-opencode-runtime-retry.test.ts
  • src/main/ssh/ssh-relay-opencode-runtime-retry.ts
  • src/main/ssh/ssh-relay-opencode-runtime.test.ts
  • src/main/ssh/ssh-relay-opencode-runtime.ts
  • src/main/ssh/ssh-relay-orphan-abandon-paths.test.ts
  • src/main/ssh/ssh-relay-pinned-node-install.test.ts
  • src/main/ssh/ssh-relay-pinned-node-install.ts
  • src/main/ssh/ssh-relay-pty-master-cloexec-install.test.ts
  • src/main/ssh/ssh-relay-repair-lock-termination.test.ts
  • src/main/ssh/ssh-relay-repair-lock.ts
  • src/main/ssh/ssh-relay-reset.test.ts
  • src/main/ssh/ssh-relay-reset.ts
  • src/main/ssh/ssh-relay-ripgrep-cache-gc-commands.ts
  • src/main/ssh/ssh-relay-ripgrep-cache-gc-real.test.ts
  • src/main/ssh/ssh-relay-ripgrep-cache-gc.test.ts
  • src/main/ssh/ssh-relay-ripgrep-cache-gc.ts
  • src/main/ssh/ssh-relay-ripgrep-install.test.ts
  • src/main/ssh/ssh-relay-ripgrep-install.ts
  • src/main/ssh/ssh-relay-runtime-step-plan.ts
  • src/main/ssh/ssh-relay-session-agent-hooks.integration.test.ts
  • src/main/ssh/ssh-relay-session-data-delivery.test.ts
  • src/main/ssh/ssh-relay-session-incarnation.test.ts
  • src/main/ssh/ssh-relay-session-managed-hooks.test.ts
  • src/main/ssh/ssh-relay-session-model-migration.test.ts
  • src/main/ssh/ssh-relay-session-orphan-sweep.test.ts
  • src/main/ssh/ssh-relay-session-pending-kill-replay.test.ts
  • src/main/ssh/ssh-relay-session-plain-ssh.test.ts
  • src/main/ssh/ssh-relay-session-previous-relay-hold.test.ts
  • src/main/ssh/ssh-relay-session-reconnect-incarnation.test.ts
  • src/main/ssh/ssh-relay-session-recovery-durability.test.ts
  • src/main/ssh/ssh-relay-session-recovery-races.test.ts
  • src/main/ssh/ssh-relay-session-rejected-delivery.test.ts
  • src/main/ssh/ssh-relay-session-relay-loss.test.ts
  • src/main/ssh/ssh-relay-session-terminal-error.test.ts
  • src/main/ssh/ssh-relay-session-test-fixtures.ts
  • src/main/ssh/ssh-relay-session.test.ts
  • src/main/ssh/ssh-relay-session.ts
  • src/main/ssh/ssh-relay-sftp-namespace-install.test.ts
  • src/main/ssh/ssh-relay-upload-cancel.docker.test.ts
  • src/main/ssh/ssh-relay-upload-stage-commands.test.ts
  • src/main/ssh/ssh-relay-upload-stage-commands.ts
  • src/main/ssh/ssh-relay-upload-stage-contract.ts
  • src/main/ssh/ssh-relay-upload-stage-windows-commands.ts
  • src/main/ssh/ssh-relay-upload-stage-windows-identity.test.ts
  • src/main/ssh/ssh-relay-versioned-install.test.ts
  • src/main/ssh/ssh-relay-windows-host-lane.test.ts
  • src/main/ssh/ssh-remote-cli-args.ts
  • src/main/ssh/ssh-remote-cli-argument-error.ts
  • src/main/ssh/ssh-remote-cli-bridge-credential.test.ts
  • src/main/ssh/ssh-remote-cli-dispatch-refusal-passthrough.test.ts
  • src/main/ssh/ssh-remote-cli-error-response.ts
  • src/main/ssh/ssh-remote-cli-format.test.ts
  • src/main/ssh/ssh-remote-cli-format.ts
  • src/main/ssh/ssh-remote-cli-host-passthrough.test.ts
  • src/main/ssh/ssh-remote-cli-host-passthrough.ts
  • src/main/ssh/ssh-remote-cli-in-process-result.ts
  • src/main/ssh/ssh-remote-cli-terminal-host-scope.test.ts
  • src/main/ssh/ssh-remote-linear-activity-output.test.ts
  • src/main/ssh/ssh-remote-linear-cli.test.ts
  • src/main/ssh/ssh-remote-linear-cli.ts
  • src/main/ssh/ssh-remote-linear-list-issues.test.ts
  • src/main/ssh/ssh-remote-linear-list-issues.ts
  • src/main/ssh/ssh-remote-linear-output.ts
  • src/main/ssh/ssh-remote-linear-read-cli.ts
  • src/main/ssh/ssh-remote-linear-read-flags.ts
  • src/main/ssh/ssh-remote-linear-read-help.ts
  • src/main/ssh/ssh-remote-linear-relation-write.test.ts
  • src/main/ssh/ssh-remote-linear-relation-write.ts
  • src/main/ssh/ssh-remote-linear-result-guards.ts
  • src/main/ssh/ssh-remote-linear-save-issue.test.ts
  • src/main/ssh/ssh-remote-linear-save-issue.ts
  • src/main/ssh/ssh-remote-linear-truncation-output.test.ts
  • src/main/ssh/ssh-remote-linear-write-cli.ts
  • src/main/ssh/ssh-remote-linear-write-help.ts
  • src/main/ssh/ssh-remote-linear-write-support.ts
  • src/main/ssh/ssh-remote-node-addon-resolution.test.ts
  • src/main/ssh/ssh-remote-node-addon-resolution.ts
  • src/main/ssh/ssh-remote-orca-cli.test.ts
  • src/main/ssh/ssh-remote-orca-cli.ts
  • src/main/ssh/ssh-remote-orchestration-ask-output.ts
  • src/main/ssh/ssh-remote-orchestration-check-output.ts
  • src/main/ssh/ssh-remote-orchestration-compatibility.test.ts
  • src/main/ssh/ssh-remote-orchestration-post-output.ts
  • src/main/ssh/ssh-remote-orchestration-send.test.ts
  • src/main/ssh/ssh-remote-orchestration-send.ts
  • src/main/ssh/ssh-remote-windows-command-line-limit.test.ts
  • src/main/ssh/ssh-session-command-audit.test.ts
  • src/main/ssh/ssh-system-transport.integration.test.ts
  • src/main/startup/headless-serve-ssh-registration.test.ts
  • src/preload/api/ssh-api.ts
  • src/preload/api/ssh-bridge.ts
  • src/relay/pty-handler-ownership-attestation.test.ts
  • src/renderer/src/components/settings/SshHostAdvancedFields.tsx
  • src/renderer/src/components/settings/SshManagedServerMoveDialog.test.tsx
  • src/renderer/src/components/settings/SshManagedServerMoveDialog.tsx
  • src/renderer/src/components/settings/SshPane.tsx
  • src/renderer/src/components/settings/SshTargetCard.test.tsx
  • src/renderer/src/components/settings/SshTargetCard.tsx
  • src/renderer/src/components/settings/SshTargetDestructiveActions.tsx
  • src/renderer/src/components/settings/SshTargetServerStatus.tsx
  • src/renderer/src/components/settings/ssh-host-server-status-copy.test.ts
  • src/renderer/src/components/settings/ssh-host-server-status-copy.ts
  • src/renderer/src/components/settings/ssh-session-termination.ts
  • src/renderer/src/components/settings/ssh-target-draft.test.ts
  • src/renderer/src/components/settings/ssh-target-draft.ts
  • src/renderer/src/components/settings/ssh-target-remove.test.ts
  • src/renderer/src/components/settings/ssh-target-remove.ts
  • src/renderer/src/components/settings/ssh-target-save-payload.test.ts
  • src/renderer/src/components/settings/ssh-target-save-payload.ts
  • src/renderer/src/components/sidebar/HostRemoveDialog.tsx
  • src/renderer/src/components/sidebar/add-remote-host-ssh-actions.ts
  • src/renderer/src/hooks/ipc-events/ssh-managed-server-state-effects.test.ts
  • src/renderer/src/hooks/ipc-events/ssh-managed-server-state-effects.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • 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
  • src/renderer/src/ssh/ssh-managed-server-move-terminal-tabs.test.ts
  • src/renderer/src/ssh/ssh-managed-server-move-terminal-tabs.ts
  • src/renderer/src/ssh/ssh-managed-server-move.ts
  • src/renderer/src/web/preload-api/web-terminal-api.ts
  • src/shared/ssh-managed-server-move.ts
  • src/shared/ssh-relay-pty-ownership-proof.test.ts
  • src/shared/ssh-relay-pty-ownership-proof.ts
💤 Files with no reviewable changes (116)
  • config/scripts/ssh-localhost-e2e-routing.test.mjs
  • src/main/ipc/ai-vault-host-leg-cache-retention.test.ts
  • src/main/ssh/ssh-host-provider-set.test.ts
  • src/main/ipc/ssh-managed-server-move-conversion.test.ts
  • src/main/runtime/runtime-file-commands-ssh-file-watcher-rearm.test.ts
  • src/main/providers/ssh-directory-listing-options.test.ts
  • src/main/providers/ssh-directory-legacy-compatibility.test.ts
  • src/main/ssh/ssh-port-scanner.test.ts
  • src/main/ssh/ssh-relay-build-toolchain.test.ts
  • src/main/ssh/ssh-relay-versioned-install.test.ts
  • src/main/providers/ssh-filesystem-doc-preview.test.ts
  • src/main/ssh/ssh-pty-recovery-retention-budget.test.ts
  • src/main/ipc/ssh-terminate-sessions.test.ts
  • src/main/providers/ssh-plain-shell-pty-provider.test.ts
  • src/main/providers/ssh-filesystem-provider-range.test.ts
  • src/main/ipc/ssh-managed-server-move.test.ts
  • src/main/ipc/ssh-host-node-runtime-connect.test.ts
  • src/main/ipc/ssh-host-server-decision-failure.test.ts
  • src/main/providers/ssh-directory-streaming-real.test.ts
  • src/main/providers/ssh-filesystem-download.test.ts
  • src/main/providers/ssh-filesystem-watch-notifications.test.ts
  • src/main/providers/ssh-filesystem-provider-stream.test.ts
  • src/main/ipc/ssh-connect-recheck-cancellation.test.ts
  • src/main/runtime/orca-runtime-files-ssh-rearm.test.ts
  • src/main/ssh/relay-native-dependency-coverage.test.ts
  • src/main/ipc/ssh-active-relay-sessions.test.ts
  • src/main/providers/ssh-sftp-filesystem-provider.test.ts
  • config/scripts/pr-code-change-scope.mjs
  • src/main/providers/ssh-filesystem-listing-params.ts
  • src/main/ssh/ssh-orphan-sweep-pane-state-verdicts.test.ts
  • .github/workflows/pr.yml
  • src/main/runtime/ssh-file-explorer-watch-test-connection.ts
  • src/main/ssh/ssh-system-transport.integration.test.ts
  • src/main/ipc/ssh-pty-consumer-identity.test.ts
  • src/main/providers/ssh-filesystem-provider.test.ts
  • src/main/ssh/ssh-pty-targeted-reattach-queue.ts
  • src/main/startup/headless-serve-ssh-registration.test.ts
  • src/main/providers/ssh-listing-compatibility.test.ts
  • src/main/providers/ssh-filesystem-provider-download-folder.test.ts
  • src/main/ssh/remote-install-gc-termination.test.ts
  • src/main/ipc/ssh-managed-server-move-stop-retention.test.ts
  • src/main/providers/ssh-directory-streaming.test.ts
  • src/main/ssh/ssh-pending-pty-kill-replay.test.ts
  • src/main/providers/ssh-filesystem-range-read.ts
  • src/main/ipc/ssh-active-relay-sessions.ts
  • src/main/providers/ssh-filesystem-provider-watch-waiters.test.ts
  • src/main/ipc/ssh-relay-reset-resume.test.ts
  • src/main/ssh/ssh-host-cli-deadline.ts
  • src/main/ai-vault/ssh-session-list.ts
  • src/main/providers/ssh-markdown-document-listing.ts
  • src/main/ipc/ssh-plain-ssh-connect.test.ts
  • src/main/ipc/ssh-terminate-sessions-previous-relay.test.ts
  • src/main/ssh/ssh-bridge-caller-scope.test-fixture.ts
  • src/main/ssh/ssh-relay-build-toolchain.ts
  • src/main/ipc/pty-controller-ownership-routing.test.ts
  • src/main/providers/ssh-filesystem-file-upload.ts
  • src/main/ssh/ssh-host-server-move-offer.test.ts
  • src/renderer/src/components/settings/ssh-target-save-payload.test.ts
  • src/main/ssh/ssh-relay-bundled-ripgrep.docker.test.ts
  • src/main/ssh/ssh-relay-deploy-helpers.test.ts
  • src/main/providers/ssh-filesystem-provider.ts
  • src/main/providers/ssh-filesystem-terminal-artifact.ts
  • src/main/ipc/ssh-host-server-relay-decision.test.ts
  • src/main/ipc/ai-vault-session-title-routing.ts
  • src/main/providers/ssh-sftp-directory-listing.ts
  • src/renderer/src/web/preload-api/web-terminal-api.ts
  • src/main/providers/ssh-filesystem-path-existence.ts
  • src/main/providers/ssh-directory-listing.ts
  • src/main/providers/ssh-filesystem-doc-preview.ts
  • src/main/ssh/orcad-windows-relay-terminal-gate-test-cell.ts
  • src/main/providers/ssh-filesystem-provider-capabilities.test.ts
  • src/main/ssh/ssh-host-node-runtime-mode.ts
  • src/main/ssh/ssh-port-scanner.ts
  • src/main/ipc/ssh-connect-attempt-registry.ts
  • src/main/ssh/ssh-plain-ssh-session.ts
  • src/main/providers/ssh-filesystem-download.ts
  • src/main/ipc/ssh-managed-server-move.ts
  • src/main/ssh/ssh-owner-admission-blocked-error.ts
  • src/main/ipc/ai-vault-scan-coalescing.test.ts
  • src/main/ssh/ssh-host-server-move-offer.ts
  • src/main/providers/ssh-sftp-filesystem-provider.ts
  • src/main/persistence/loading-store/ssh-lease-async-durability.test.ts
  • src/main/providers/ssh-file-listing.ts
  • src/main/ssh/ssh-pty-retired-source-deliveries.test.ts
  • src/main/providers/ssh-filesystem-watch-notifications.ts
  • src/main/ssh/ssh-pty-consumer-recovery.test.ts
  • src/main/ssh/ssh-filesystem-stream-retention.test.ts
  • src/main/ipc/ssh-advertised-url-refresh.ts
  • src/main/ai-vault/ssh-session-list.test.ts
  • src/main/ssh/ssh-orphan-relay-pty-sweep.test.ts
  • src/main/ipc/ssh-host-sleep-reconnect.test.ts
  • src/main/ssh/ssh-remote-windows-command-line-limit.test.ts
  • src/main/runtime/runtime-file-upload-decode.test.ts
  • src/main/ssh/ssh-host-provider-set.ts
  • src/preload/api/ssh-bridge.ts
  • src/main/providers/ssh-sftp-filesystem-channel.ts
  • src/main/ssh/ssh-orphan-relay-pty-sweep.ts
  • src/main/ssh/ssh-pending-pty-kill-replay.ts
  • src/main/ipc/managed-host-status-publication.test.ts
  • src/main/ipc/ssh-ipc-mock-shapes.ts
  • src/main/ssh/ssh-pty-retired-source-deliveries.ts
  • src/main/providers/ssh-filesystem-provider-watch.ts
  • src/main/ipc/ssh-terminate-sessions.ts
  • src/main/ipc/ssh-relay-session-callbacks.ts
  • src/main/ssh/ssh-pty-frame-rejection.ts
  • src/main/providers/ssh-filesystem-provider-capabilities.ts
  • src/main/ssh/ssh-pty-consumer-recovery.ts
  • src/main/ssh/ssh-session-command-audit.test.ts
  • src/renderer/src/hooks/ipc-events/ssh-managed-server-state-effects.ts
  • src/main/ipc/ssh-relay-lost-backoff.ts
  • config/scripts/ssh-relay-import-boundary.test.mjs
  • src/main/providers/terminal-path-existence-batch.integration.test.ts
  • src/main/ssh/ssh-pty-recovery-retention-budget.ts
  • src/main/ipc/ai-vault.test.ts
  • src/main/ipc/ssh-host-sleep-reconnect.ts
  • src/main/providers/ssh-plain-shell-pty-provider.ts

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 931e2e7f-d45b-4e81-a131-869ac9d55d9f
📥 Commits

Reviewing files that changed from the base of the PR and between 478dd2c and 40cbf26.

📒 Files selected for processing (125)
  • .github/workflows/e2e.yml
  • .github/workflows/pr.yml
  • config/max-lines-baseline.txt
  • config/performance-audit.md
  • config/process-host-direct-import-baseline.txt
  • config/reliability-gates.jsonc
  • config/scripts/ci-e2e-job-selection.mjs
  • config/scripts/ci-e2e-job-selection.test.mjs
  • config/scripts/ci-shard-timings.json
  • config/scripts/localization-extraction-change-scope.test.mjs
  • config/scripts/pr-e2e-gate-contract.test.mjs
  • config/scripts/pr-e2e-native-only-routing.test.mjs
  • config/scripts/pr-e2e-pane-close-routing.test.mjs
  • config/scripts/pr-e2e-source-routing.mjs
  • config/scripts/pr-ready-check-reuse.test.mjs
  • config/scripts/release-cut-token-permissions.test.mjs
  • config/scripts/run-local-ssh-browser-routing-e2e.mjs
  • config/scripts/run-nested-runtime-ssh-e2e.mjs
  • config/scripts/run-ssh-client-hosted-browser-drop-reconnect-e2e.mjs
  • config/scripts/run-ssh-codex-artifacts-repro-e2e.mjs
  • config/scripts/run-ssh-docker-bulk-open-freeze-e2e.mjs
  • config/scripts/run-ssh-docker-e2e.mjs
  • config/scripts/run-ssh-docker-perf-e2e.mjs
  • config/scripts/run-ssh-docker-terminal-parking-e2e.mjs
  • config/scripts/run-ssh-docker-watcher-isolation-e2e.mjs
  • config/scripts/run-ssh-staged-upload-reliability.mjs
  • config/scripts/ssh-browser-e2e-routing.test.mjs
  • config/scripts/ssh-localhost-e2e-routing.test.mjs
  • config/scripts/vitest-sqlite-database-runtime-files.mjs
  • config/scripts/vitest-sqlite-runtime-files.mjs
  • config/scripts/windows-cmd-shim-spawn-boundary.test.mjs
  • package.json
  • src/main/ipc/ssh-connect-decision-cancellation.test.ts
  • src/main/ipc/ssh-host-server-on-connect-wiring.test.ts
  • src/main/ipc/ssh-host-sleep-reconnect.test.ts
  • src/main/ipc/ssh.test.ts
  • src/main/ssh/orcad-migration-terminal-gate.test.ts
  • src/main/ssh/orcad-migration-terminal-gate.ts
  • src/main/ssh/orcad-runtime-conversion.test.ts
  • src/main/ssh/ssh-host-relay-terminals-on-connect.test.ts
  • src/main/ssh/ssh-host-unserved-status.ts
  • src/renderer/src/components/settings/SshPane.tsx
  • src/renderer/src/components/settings/ssh-host-server-status-copy.test.ts
  • src/renderer/src/components/settings/ssh-host-server-status-copy.ts
  • src/renderer/src/components/sidebar/WorktreeCardSshHostControl.tsx
  • src/renderer/src/components/status-bar/SshTargetStatusRow.tsx
  • src/renderer/src/components/terminal-pane/TerminalSshReconnectOverlay.tsx
  • src/renderer/src/components/terminal-pane/terminal-pane-host-state.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • 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
  • src/renderer/src/ssh/ssh-connect-failure-text.ts
  • src/renderer/src/store/slices/direct-ssh-terminal-retry.test.ts
  • tests/e2e/artificial-opencode-hidden-pressure-scenario.ts
  • tests/e2e/ephemeral-vm-provisioned-root.spec.ts
  • tests/e2e/global-setup-cli-artifact.unit.test.ts
  • tests/e2e/global-setup.ts
  • tests/e2e/helpers/browser-pane-mount-census.ts
  • tests/e2e/helpers/docker-ssh-relay-faults.ts
  • tests/e2e/helpers/docker-ssh-relay-processes.ts
  • tests/e2e/helpers/docker-ssh-relay-workspace-snapshot.ts
  • tests/e2e/helpers/docker-ssh-relay-worktree-activation.ts
  • tests/e2e/helpers/nested-runtime-ssh-relay-lifecycle.ts
  • tests/e2e/helpers/nested-runtime-ssh-state.ts
  • tests/e2e/helpers/orca-app.ts
  • tests/e2e/helpers/orca-restart.ts
  • tests/e2e/helpers/paired-web-filesystem-route.ts
  • tests/e2e/helpers/ssh-port-forward-lifecycle-evidence.ts
  • tests/e2e/helpers/ssh-port-forward-transport-evidence.ts
  • tests/e2e/helpers/ssh-reconnect-failure-observation.ts
  • tests/e2e/helpers/ssh-recovery-input-observation.ts
  • tests/e2e/helpers/terminal-tab-open.ts
  • tests/e2e/local-ssh-browser-routing.spec.ts
  • tests/e2e/nested-runtime-ssh-lifecycle.spec.ts
  • tests/e2e/nested-runtime-ssh-routing.spec.ts
  • tests/e2e/pty-input-write-queue-ssh.spec.ts
  • tests/e2e/repo-registration-async.spec.ts
  • tests/e2e/ssh-ai-vault-session-history.spec.ts
  • tests/e2e/ssh-client-hosted-browser-drop-reconnect.spec.ts
  • tests/e2e/ssh-codex-display-artifacts-repro.spec.ts
  • tests/e2e/ssh-codex-real-remote.ts
  • tests/e2e/ssh-codex-reconnect-replay-driver.ts
  • tests/e2e/ssh-codex-repro-remote-fixtures.ts
  • tests/e2e/ssh-codex-terminal-observers.ts
  • tests/e2e/ssh-cold-activation-restore.spec.ts
  • tests/e2e/ssh-cold-hydration-gap-tab-seeding.spec.ts
  • tests/e2e/ssh-docker-bulk-open-freeze-repro.spec.ts
  • tests/e2e/ssh-docker-five-pane-input-under-flood.spec.ts
  • tests/e2e/ssh-docker-half-open-link.spec.ts
  • tests/e2e/ssh-docker-quick-open-large-listing.spec.ts
  • tests/e2e/ssh-docker-reconnect-pane-restore.spec.ts
  • tests/e2e/ssh-docker-relay-perf.spec.ts
  • tests/e2e/ssh-docker-relay-stall-credential.spec.ts
  • tests/e2e/ssh-docker-resource-accumulation.spec.ts
  • tests/e2e/ssh-docker-transport-drop-recovery.spec.ts
  • tests/e2e/ssh-docker-watcher-isolation.spec.ts
  • tests/e2e/ssh-egress-indicator-preview.spec.ts
  • tests/e2e/ssh-emptied-worktree-reactivation.spec.ts
  • tests/e2e/ssh-external-image-preview.spec.ts
  • tests/e2e/ssh-localhost.spec.ts
  • tests/e2e/ssh-lost-kill-tab-resurrection.spec.ts
  • tests/e2e/ssh-native-chat-phone-history.spec.ts
  • tests/e2e/ssh-pi-compatible-agent-title.spec.ts
  • tests/e2e/ssh-port-forward-lifecycle.spec.ts
  • tests/e2e/ssh-reattach-home-partition.spec.ts
  • tests/e2e/ssh-reconnect-tab-destruction.spec.ts
  • tests/e2e/ssh-restart-tab-accumulation.spec.ts
  • tests/e2e/ssh-routing-optout-demo.spec.ts
  • tests/e2e/ssh-skill-installation.spec.ts
  • tests/e2e/ssh-stale-resume-execution-host-scope.spec.ts
  • tests/e2e/ssh-startup-exec-readiness.spec.ts
  • tests/e2e/ssh-startup-local-shadow.spec.ts
  • tests/e2e/ssh-terminal-parking.spec.ts
  • tests/e2e/ssh-terminal-stale-grid-probe.ts
  • tests/e2e/ssh-terminal-window-wake-stale-grid-repro.spec.ts
  • tests/e2e/terminal-inline-images-ssh.spec.ts
  • tests/e2e/terminal-raster-artifact-analysis.ts
  • tests/e2e/terminal-repro-evidence.ts
  • tests/e2e/terminal-retention-budget.spec.ts
  • tests/e2e/terminal-webgl-reset-capture.ts
  • tests/e2e/workspace-layout-oracle-ssh.spec.ts
💤 Files with no reviewable changes (84)
  • config/scripts/pr-e2e-native-only-routing.test.mjs
  • config/max-lines-baseline.txt
  • config/process-host-direct-import-baseline.txt
  • tests/e2e/terminal-webgl-reset-capture.ts
  • tests/e2e/ssh-port-forward-lifecycle.spec.ts
  • tests/e2e/local-ssh-browser-routing.spec.ts
  • tests/e2e/terminal-inline-images-ssh.spec.ts
  • tests/e2e/ssh-docker-resource-accumulation.spec.ts
  • tests/e2e/ssh-reconnect-tab-destruction.spec.ts
  • tests/e2e/helpers/terminal-tab-open.ts
  • tests/e2e/ssh-localhost.spec.ts
  • tests/e2e/ssh-cold-hydration-gap-tab-seeding.spec.ts
  • config/scripts/vitest-sqlite-database-runtime-files.mjs
  • tests/e2e/terminal-repro-evidence.ts
  • tests/e2e/ssh-startup-exec-readiness.spec.ts
  • tests/e2e/ssh-external-image-preview.spec.ts
  • tests/e2e/ssh-terminal-parking.spec.ts
  • tests/e2e/ssh-docker-relay-perf.spec.ts
  • tests/e2e/ssh-native-chat-phone-history.spec.ts
  • tests/e2e/ssh-restart-tab-accumulation.spec.ts
  • tests/e2e/ssh-client-hosted-browser-drop-reconnect.spec.ts
  • tests/e2e/ephemeral-vm-provisioned-root.spec.ts
  • tests/e2e/ssh-ai-vault-session-history.spec.ts
  • config/scripts/release-cut-token-permissions.test.mjs
  • tests/e2e/ssh-docker-watcher-isolation.spec.ts
  • config/scripts/run-ssh-docker-e2e.mjs
  • config/scripts/ssh-localhost-e2e-routing.test.mjs
  • tests/e2e/ssh-stale-resume-execution-host-scope.spec.ts
  • tests/e2e/ssh-emptied-worktree-reactivation.spec.ts
  • tests/e2e/helpers/nested-runtime-ssh-state.ts
  • tests/e2e/nested-runtime-ssh-lifecycle.spec.ts
  • tests/e2e/pty-input-write-queue-ssh.spec.ts
  • tests/e2e/ssh-skill-installation.spec.ts
  • tests/e2e/ssh-pi-compatible-agent-title.spec.ts
  • tests/e2e/ssh-docker-reconnect-pane-restore.spec.ts
  • package.json
  • config/scripts/vitest-sqlite-runtime-files.mjs
  • tests/e2e/helpers/ssh-reconnect-failure-observation.ts
  • tests/e2e/ssh-cold-activation-restore.spec.ts
  • tests/e2e/terminal-retention-budget.spec.ts
  • tests/e2e/ssh-lost-kill-tab-resurrection.spec.ts
  • config/scripts/run-ssh-codex-artifacts-repro-e2e.mjs
  • config/scripts/run-ssh-docker-perf-e2e.mjs
  • tests/e2e/ssh-codex-reconnect-replay-driver.ts
  • tests/e2e/global-setup-cli-artifact.unit.test.ts
  • tests/e2e/ssh-codex-real-remote.ts
  • tests/e2e/helpers/ssh-port-forward-lifecycle-evidence.ts
  • tests/e2e/helpers/ssh-port-forward-transport-evidence.ts
  • tests/e2e/helpers/docker-ssh-relay-workspace-snapshot.ts
  • tests/e2e/workspace-layout-oracle-ssh.spec.ts
  • tests/e2e/nested-runtime-ssh-routing.spec.ts
  • tests/e2e/helpers/ssh-recovery-input-observation.ts
  • tests/e2e/repo-registration-async.spec.ts
  • tests/e2e/helpers/nested-runtime-ssh-relay-lifecycle.ts
  • tests/e2e/ssh-terminal-window-wake-stale-grid-repro.spec.ts
  • tests/e2e/ssh-egress-indicator-preview.spec.ts
  • config/scripts/run-ssh-client-hosted-browser-drop-reconnect-e2e.mjs
  • tests/e2e/ssh-docker-quick-open-large-listing.spec.ts
  • config/scripts/run-nested-runtime-ssh-e2e.mjs
  • tests/e2e/ssh-docker-five-pane-input-under-flood.spec.ts
  • tests/e2e/ssh-docker-transport-drop-recovery.spec.ts
  • tests/e2e/ssh-reattach-home-partition.spec.ts
  • config/scripts/run-local-ssh-browser-routing-e2e.mjs
  • tests/e2e/ssh-startup-local-shadow.spec.ts
  • tests/e2e/ssh-codex-repro-remote-fixtures.ts
  • tests/e2e/ssh-terminal-stale-grid-probe.ts
  • config/scripts/run-ssh-docker-bulk-open-freeze-e2e.mjs
  • tests/e2e/ssh-docker-bulk-open-freeze-repro.spec.ts
  • tests/e2e/ssh-routing-optout-demo.spec.ts
  • tests/e2e/ssh-codex-terminal-observers.ts
  • tests/e2e/ssh-docker-half-open-link.spec.ts
  • tests/e2e/ssh-docker-relay-stall-credential.spec.ts
  • config/scripts/run-ssh-docker-terminal-parking-e2e.mjs
  • config/scripts/windows-cmd-shim-spawn-boundary.test.mjs
  • config/scripts/run-ssh-docker-watcher-isolation-e2e.mjs
  • tests/e2e/helpers/paired-web-filesystem-route.ts
  • tests/e2e/helpers/docker-ssh-relay-faults.ts
  • tests/e2e/ssh-codex-display-artifacts-repro.spec.ts
  • tests/e2e/terminal-raster-artifact-analysis.ts
  • tests/e2e/helpers/docker-ssh-relay-processes.ts
  • tests/e2e/helpers/browser-pane-mount-census.ts
  • tests/e2e/helpers/docker-ssh-relay-worktree-activation.ts
  • .github/workflows/e2e.yml
  • config/scripts/ci-shard-timings.json
🚧 Files skipped from review as they are similar to previous changes (10)
  • src/renderer/src/i18n/en-runtime-required.json
  • src/main/ssh/ssh-host-unserved-status.ts
  • src/renderer/src/components/settings/ssh-host-server-status-copy.ts
  • src/renderer/src/components/settings/ssh-host-server-status-copy.test.ts
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/fr.json

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

Comment on lines +10 to +13
return sshConnectFailureText(
{},
useAppStore.getState().sshConnectionStates.get(targetId),
error instanceof Error ? error.message : fallback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

rg -n 'sshTargetConnectFailureText|connectRuntimeEnvironmentSshTarget|sshStateByEnvironment|managedServer:' src/renderer/src/components/sidebar/WorktreeCardSshHostControl.tsx src/renderer/src/components/terminal-pane/TerminalSshReconnectOverlay.tsx src/renderer/src/store/slices/runtime-environment-ssh-selectors.ts src/renderer/src/ssh/ssh-connect-failure-text.ts

Repository: stablyai/orca

Length of output: 2065


🏁 Script executed:

set -e
printf '%s\n' '--- formatter ---'
nl -ba src/renderer/src/ssh/ssh-connect-failure-text.ts
printf '%s\n' '--- formatter helper and selector ---'
nl -ba src/renderer/src/components/settings/ssh-host-server-status-copy.ts | sed -n '1,110p'
nl -ba src/renderer/src/store/slices/runtime-environment-ssh-selectors.ts | sed -n '1,135p'
printf '%s\n' '--- sidebar caller ---'
nl -ba src/renderer/src/components/sidebar/WorktreeCardSshHostControl.tsx | sed -n '70,135p'
printf '%s\n' '--- terminal caller ---'
nl -ba src/renderer/src/components/terminal-pane/TerminalSshReconnectOverlay.tsx | sed -n '80,145p'
printf '%s\n' '--- connect implementation and status publication ---'
rg -n -F --glob '*.ts' --glob '*.tsx' -- 'connectRuntimeEnvironmentSshTarget' src/renderer/src src/main/src || true
rg -n -F --glob '*.ts' --glob '*.tsx' -- 'managedServer' src/renderer/src src/main/src | head -200
printf '%s\n' '--- ownership and formatter callers ---'
rg -n -F --glob '*.ts' --glob '*.tsx' -- 'sshOwnerEnvironmentId' src/renderer/src | head -120
rg -n -F --glob '*.ts' --glob '*.tsx' -- 'sshTargetConnectFailureText' src/renderer/src

Repository: stablyai/orca

Length of output: 43726


🏁 Script executed:

set -e
printf '%s\n' '--- runtime SSH state helper ---'
nl -ba src/renderer/src/runtime/runtime-environment-ssh-state.ts | sed -n '1,380p'
printf '%s\n' '--- runtime helper tests ---'
nl -ba src/renderer/src/runtime/runtime-environment-ssh-state.test.ts | sed -n '500,590p'
printf '%s\n' '--- formatter caller blocks ---'
nl -ba src/renderer/src/components/status-bar/SshTargetStatusRow.tsx | sed -n '60,105p'
nl -ba src/renderer/src/components/settings/SshPane.tsx | sed -n '175,220p'
printf '%s\n' '--- runtime relay/refusal references ---'
rg -n -F --glob '*.ts' --glob '*.tsx' -- 'orcad_unavailable' src/renderer/src
rg -n -F --glob '*.ts' --glob '*.tsx' -- 'relay_terminals_live' src/renderer/src
rg -n -F --glob '*.ts' --glob '*.tsx' -- 'managedServer: { kind: '\''relay'\''' src/renderer/src/runtime src/renderer/src/hooks src/renderer/src/ssh src/renderer/src/components || true

Repository: stablyai/orca

Length of output: 24552


🏁 Script executed:

set -e
printf '%s\n' '--- RPC and relay definitions ---'
rg -n -F --glob '*.ts' --glob '*.tsx' --glob '*.js' --glob '*.mjs' --glob '*.cjs' -- 'ssh.connect' . || true
rg -n -F --glob '*.ts' --glob '*.tsx' --glob '*.js' --glob '*.mjs' --glob '*.cjs' -- 'kind: '\''relay'\''' . || true
rg -n -F --glob '*.ts' --glob '*.tsx' --glob '*.js' --glob '*.mjs' --glob '*.cjs' -- 'managedServer: { kind: '\''relay'\''' . || true
printf '%s\n' '--- RPC registration candidates ---'
rg -n -i --glob '*.ts' --glob '*.tsx' --glob '*.js' --glob '*.mjs' --glob '*.cjs' 'runtime.*rpc|rpc.*runtime|callRuntimeRpc|register.*ssh|ssh.*handler' src packages apps 2>/dev/null | head -300 || true
printf '%s\n' '--- repository layout candidates ---'
find . -maxdepth 3 -type d \( -name src -o -name apps -o -name packages -o -name main \) -print

Repository: stablyai/orca

Length of output: 41101


🏁 Script executed:

set -e
printf '%s\n' '--- main SSH RPC method ---'
nl -ba src/main/runtime/rpc/methods/ssh.ts
printf '%s\n' '--- unserved status helper ---'
nl -ba src/main/ssh/ssh-host-unserved-status.ts
printf '%s\n' '--- SSH runtime registration and connect flow ---'
rg -n -F --glob '*.ts' -- 'registerSsh' src/main src/shared src/renderer/src | head -120 || true
rg -n -F --glob '*.ts' -- 'connectRegisteredSshTarget' src/main
rg -n -F --glob '*.ts' -- 'buildUnserved' src/main || true
rg -n -F --glob '*.ts' -- 'ssh-host-unserved-status' src/main
printf '%s\n' '--- runtime SSH event bridge ---'
rg -n -i -F --glob '*.ts' --glob '*.tsx' -- 'sshStateChanged' src/main src/preload src/renderer/src | head -160 || true

Repository: stablyai/orca

Length of output: 26208


🏁 Script executed:

set -e
printf '%s\n' '--- target registry ---'
nl -ba src/main/ssh/ssh-target-registry.ts | sed -n '1,145p'
printf '%s\n' '--- host-server connect wiring ---'
nl -ba src/main/ipc/ssh-host-server-on-connect-wiring.ts | sed -n '1,180p'
printf '%s\n' '--- SSH connect implementation ---'
nl -ba src/main/ipc/ssh-host-server-connect.ts | sed -n '1,240p'
printf '%s\n' '--- renderer broadcast ---'
nl -ba src/main/ipc/ssh-renderer-broadcast.ts | sed -n '1,90p'

Repository: stablyai/orca

Length of output: 24518


🏁 Script executed:

set -e
nl -ba src/renderer/src/hooks/ipc-events/runtime-client-ipc-bridge.ts | sed -n '100,130p'
nl -ba src/renderer/src/runtime/runtime-client-events.ts | sed -n '50,80p'

Repository: stablyai/orca

Length of output: 2675


🏁 Script executed:

set -e
rg -n -F --glob '*.ts' -- 'publishUnservedHostServer(' src/main

Repository: stablyai/orca

Length of output: 324


Read connection state from the target’s owning environment.

Runtime-owned connects store their state in sshStateByEnvironment, but sshTargetConnectFailureText reads only sshConnectionStates. A runtime-owned refusal publishes managedServer.kind === 'relay' before the runtime RPC rejects. The runtime event bridge stores that state in the owning environment bucket, so the formatter uses the fallback instead of the translated refusal reason.

Pass sshOwnerEnvironmentId from the sidebar and terminal callers. Read the environment bucket when that ID is present, and keep reading sshConnectionStates for local callers.

@OrcaWin

OrcaWin commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator Author

E2E coverage after relay removal

Most of the deleted relay-based e2e specs were either ported to the new managed-server lane (#27323) or are already covered by other specs. Specs that tested behaviour that only existed in the relay were dropped.

Seven journeys have no e2e coverage after this PR. That's a known, accepted gap for now. Each one needs a test setup the managed-server lane doesn't have yet: a paired hub server, or a phone client.

  • Browser fallback cards ("Try anyway")
  • A browser on this computer reaching a paired hub's SSH host
  • Nested runtimes (two journeys)
  • AI Vault session history over SSH
  • Native chat history on the phone
  • Host scope for stale session resume

Possible follow-up: a paired-hub Docker setup would cover most of these. A lightweight fake phone client at the RPC level would cover the two history journeys.

nwparker added a commit that referenced this pull request Oct 22, 2026
…H file watcher

Nothing in production has registered an SSH filesystem provider since the
relay removal (#27214/#27215), so every getSshFilesystemProvider read
returned undefined. Delete the provider table and the remote watcher
subsystem, and collapse the call sites to that always-undefined behaviour:
fs:watchWorktree/fs:unwatchWorktree ignore SSH roots, the worktree base
watcher only resolves local repos, and worktree removal skips the desktop
watcher for SSH paths.
nwparker added a commit that referenced this pull request Oct 22, 2026
…H file watcher (#31922)

* refactor(ssh): remove the dead SSH filesystem provider and desktop SSH file watcher

Nothing in production has registered an SSH filesystem provider since the
relay removal (#27214/#27215), so every getSshFilesystemProvider read
returned undefined. Delete the provider table and the remote watcher
subsystem, and collapse the call sites to that always-undefined behaviour:
fs:watchWorktree/fs:unwatchWorktree ignore SSH roots, the worktree base
watcher only resolves local repos, and worktree removal skips the desktop
watcher for SSH paths.

* test: drop the nested SSH watcher catalog case that can no longer occur

The base-directory watcher never carries a connection id now, so the
host-blind-event guard it exercised is gone. Also prune the deleted remote
watcher suites from the shard timings and the nested-SSH wording from the
worktree catalog reliability gate.
nwparker added a commit that referenced this pull request Oct 26, 2026
…how remote hit previews

Since #27214 every SSH session is retagged runtime:<env>, so the #24236
check that drops a deleted cwd (and its prebuilt `cd`) before resuming
only ever ran for the legacy ssh: spelling. Resume on a paired or
SSH-managed server therefore ran `cd '<deleted folder>' &&` and failed.
The check now covers runtime hosts too, probing the folder with the
existing files.browseServerDir RPC; only a definite "missing" answer
drops the cwd, so an older or unreachable host keeps today's behaviour.

Search-hit cards carry no turns and remote hosts cannot reparse a first
prompt, so a server session found through search showed "No first
prompt" and "No conversation preview". Hits now borrow the preview of
their scanned history row.
nwparker added a commit that referenced this pull request Oct 26, 2026
…how remote hit previews (#33965)

Since #27214 every SSH session is retagged runtime:<env>, so the #24236
check that drops a deleted cwd (and its prebuilt `cd`) before resuming
only ever ran for the legacy ssh: spelling. Resume on a paired or
SSH-managed server therefore ran `cd '<deleted folder>' &&` and failed.
The check now covers runtime hosts too, probing the folder with the
existing files.browseServerDir RPC; only a definite "missing" answer
drops the cwd, so an older or unreachable host keeps today's behaviour.

Search-hit cards carry no turns and remote hosts cannot reparse a first
prompt, so a server session found through search showed "No first
prompt" and "No conversation preview". Hits now borrow the preview of
their scanned history row.
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