Repository navigation
refactor(ssh): connect fails for hosts orcad can't serve; remove the relay client path - #27214
Conversation
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 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 winRemove the stale relay cell IDs from the script.
The workflow no longer passes
pinned-*,legacy-opt-outororcad-cli-relay-kept. Line 120 now throws for any non-orcad-cell, sopinned-*andlegacy-opt-outcan no longer run. Line 9 still accepts them inValidateSetand defaults$Cellsto three of them. A caller that relies on the default fails at line 120. Line 15 still mapsorcad-cli-relay-keptto a spec grep. The upstream cell list inssh-windows-host-cells.tsalso still namesorcad-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 winUpdate the
source_changedstatus line. It still says the host runs the relay.
sourceChangedLineshows "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.unservedLinereturns this line forreason: '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 insrc/main/ssh/ssh-host-unserved-status.ts(Line 31) already uses the new wording. ThesshConnectFailureTexttoast 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
📒 Files selected for processing (296)
.github/workflows/pr.yml.github/workflows/ssh-hostile-hosts.yml.github/workflows/ssh-windows-hosts.ymlconfig/ci/windows-ssh-provider/invoke-pinned-relay-cells.ps1config/reliability-gates.jsoncconfig/scripts/orcad-windows-prebuild-workflow.test.mjsconfig/scripts/pr-code-change-scope.mjsconfig/scripts/ssh-localhost-e2e-routing.test.mjsconfig/scripts/ssh-relay-import-boundary.test.mjssrc/main/ai-vault/ssh-session-list.test.tssrc/main/ai-vault/ssh-session-list.tssrc/main/ipc/ai-vault-host-leg-cache-retention.test.tssrc/main/ipc/ai-vault-scan-coalescing.test.tssrc/main/ipc/ai-vault-search.test.tssrc/main/ipc/ai-vault-search.tssrc/main/ipc/ai-vault-session-title-routing.tssrc/main/ipc/ai-vault.test.tssrc/main/ipc/ai-vault.tssrc/main/ipc/managed-host-status-publication.test.tssrc/main/ipc/pty-controller-ownership-routing.test.tssrc/main/ipc/runtime-environment-managed-tunnel.tssrc/main/ipc/ssh-active-relay-sessions.test.tssrc/main/ipc/ssh-active-relay-sessions.tssrc/main/ipc/ssh-advertised-url-refresh.tssrc/main/ipc/ssh-app-shutdown.test.tssrc/main/ipc/ssh-connect-attempt-registry.tssrc/main/ipc/ssh-connect-decision-cancellation.test.tssrc/main/ipc/ssh-connect-flow.tssrc/main/ipc/ssh-connect-recheck-cancellation.test.tssrc/main/ipc/ssh-connection-handlers.tssrc/main/ipc/ssh-connection-state-callbacks.tssrc/main/ipc/ssh-disconnect-cancellation.test.tssrc/main/ipc/ssh-handler-reregistration.test.tssrc/main/ipc/ssh-host-node-runtime-connect.test.tssrc/main/ipc/ssh-host-server-connect.tssrc/main/ipc/ssh-host-server-decision-failure.test.tssrc/main/ipc/ssh-host-server-relay-decision.test.tssrc/main/ipc/ssh-host-sleep-reconnect.test.tssrc/main/ipc/ssh-host-sleep-reconnect.tssrc/main/ipc/ssh-ipc-mock-shapes.tssrc/main/ipc/ssh-ipc-module-mocks.tssrc/main/ipc/ssh-ipc-test-harness.tssrc/main/ipc/ssh-managed-server-move-conversion.test.tssrc/main/ipc/ssh-managed-server-move-stop-retention.test.tssrc/main/ipc/ssh-managed-server-move.test.tssrc/main/ipc/ssh-managed-server-move.tssrc/main/ipc/ssh-managed-server-unlink-broadcast.test.tssrc/main/ipc/ssh-plain-ssh-connect.test.tssrc/main/ipc/ssh-port-forward-handlers.tssrc/main/ipc/ssh-pty-consumer-identity.test.tssrc/main/ipc/ssh-relay-lost-backoff.tssrc/main/ipc/ssh-relay-reset-resume.test.tssrc/main/ipc/ssh-relay-session-callbacks.tssrc/main/ipc/ssh-renderer-broadcast.tssrc/main/ipc/ssh-session-teardown.tssrc/main/ipc/ssh-shutdown-drain.tssrc/main/ipc/ssh-state-broadcast-fanout.test.tssrc/main/ipc/ssh-target-registry.test.tssrc/main/ipc/ssh-terminate-sessions-previous-relay.test.tssrc/main/ipc/ssh-terminate-sessions.test.tssrc/main/ipc/ssh-terminate-sessions.tssrc/main/ipc/ssh.test.tssrc/main/ipc/ssh.tssrc/main/persistence/loading-store/ssh-lease-async-durability.test.tssrc/main/providers/ssh-directory-legacy-compatibility.test.tssrc/main/providers/ssh-directory-listing-options.test.tssrc/main/providers/ssh-directory-listing.tssrc/main/providers/ssh-directory-streaming-real.test.tssrc/main/providers/ssh-directory-streaming.test.tssrc/main/providers/ssh-file-listing.tssrc/main/providers/ssh-filesystem-doc-preview.test.tssrc/main/providers/ssh-filesystem-doc-preview.tssrc/main/providers/ssh-filesystem-download.test.tssrc/main/providers/ssh-filesystem-download.tssrc/main/providers/ssh-filesystem-file-upload.tssrc/main/providers/ssh-filesystem-listing-params.tssrc/main/providers/ssh-filesystem-path-existence.tssrc/main/providers/ssh-filesystem-provider-capabilities.test.tssrc/main/providers/ssh-filesystem-provider-capabilities.tssrc/main/providers/ssh-filesystem-provider-download-folder.test.tssrc/main/providers/ssh-filesystem-provider-range.test.tssrc/main/providers/ssh-filesystem-provider-stream.test.tssrc/main/providers/ssh-filesystem-provider-watch-waiters.test.tssrc/main/providers/ssh-filesystem-provider-watch.tssrc/main/providers/ssh-filesystem-provider.test.tssrc/main/providers/ssh-filesystem-provider.tssrc/main/providers/ssh-filesystem-range-read.tssrc/main/providers/ssh-filesystem-terminal-artifact.tssrc/main/providers/ssh-filesystem-watch-notifications.test.tssrc/main/providers/ssh-filesystem-watch-notifications.tssrc/main/providers/ssh-listing-compatibility.test.tssrc/main/providers/ssh-markdown-document-listing.tssrc/main/providers/ssh-plain-shell-pty-provider.test.tssrc/main/providers/ssh-plain-shell-pty-provider.tssrc/main/providers/ssh-sftp-directory-listing.tssrc/main/providers/ssh-sftp-filesystem-channel.tssrc/main/providers/ssh-sftp-filesystem-provider.test.tssrc/main/providers/ssh-sftp-filesystem-provider.tssrc/main/providers/terminal-path-existence-batch.integration.test.tssrc/main/runtime/orca-runtime-files-ssh-rearm.test.tssrc/main/runtime/runtime-file-commands-ssh-file-watcher-rearm.test.tssrc/main/runtime/runtime-file-upload-decode.test.tssrc/main/runtime/ssh-file-explorer-watch-test-connection.tssrc/main/ssh/orcad-windows-host-lane.test.tssrc/main/ssh/orcad-windows-relay-terminal-gate-test-cell.tssrc/main/ssh/relay-native-dependency-coverage.test.tssrc/main/ssh/relay-socket-path-limit.test.tssrc/main/ssh/remote-install-gc-termination.test.tssrc/main/ssh/ssh-bridge-caller-scope.test-fixture.tssrc/main/ssh/ssh-filesystem-stream-retention.test.tssrc/main/ssh/ssh-host-cli-deadline.tssrc/main/ssh/ssh-host-node-runtime-mode.tssrc/main/ssh/ssh-host-provider-set.test.tssrc/main/ssh/ssh-host-provider-set.tssrc/main/ssh/ssh-host-server-move-offer.test.tssrc/main/ssh/ssh-host-server-move-offer.tssrc/main/ssh/ssh-host-unserved-status.tssrc/main/ssh/ssh-hostile-host-cells.tssrc/main/ssh/ssh-hostile-host-managed-orcad.tssrc/main/ssh/ssh-hostile-host-test-harness.tssrc/main/ssh/ssh-hostile-hosts.docker.test.tssrc/main/ssh/ssh-orphan-relay-pty-sweep.test.tssrc/main/ssh/ssh-orphan-relay-pty-sweep.tssrc/main/ssh/ssh-orphan-sweep-pane-state-verdicts.test.tssrc/main/ssh/ssh-owner-admission-blocked-error.tssrc/main/ssh/ssh-pending-pty-kill-replay.test.tssrc/main/ssh/ssh-pending-pty-kill-replay.tssrc/main/ssh/ssh-plain-ssh-session.tssrc/main/ssh/ssh-port-scanner.test.tssrc/main/ssh/ssh-port-scanner.tssrc/main/ssh/ssh-pty-consumer-recovery.test.tssrc/main/ssh/ssh-pty-consumer-recovery.tssrc/main/ssh/ssh-pty-frame-rejection.tssrc/main/ssh/ssh-pty-recovery-retention-budget.test.tssrc/main/ssh/ssh-pty-recovery-retention-budget.tssrc/main/ssh/ssh-pty-retired-source-deliveries.test.tssrc/main/ssh/ssh-pty-retired-source-deliveries.tssrc/main/ssh/ssh-pty-targeted-reattach-queue.tssrc/main/ssh/ssh-relay-build-toolchain.test.tssrc/main/ssh/ssh-relay-build-toolchain.tssrc/main/ssh/ssh-relay-bundled-ripgrep.docker.test.tssrc/main/ssh/ssh-relay-cross-version-isolation.test.tssrc/main/ssh/ssh-relay-deploy-helpers.test.tssrc/main/ssh/ssh-relay-deploy-incumbent-verdict.test.tssrc/main/ssh/ssh-relay-deploy-pinned-node.test.tssrc/main/ssh/ssh-relay-deploy-staged-upload.test.tssrc/main/ssh/ssh-relay-deploy-windows-pipe.test.tssrc/main/ssh/ssh-relay-deploy.test.tssrc/main/ssh/ssh-relay-deploy.tssrc/main/ssh/ssh-relay-gc-retry.test.tssrc/main/ssh/ssh-relay-host-node-addons.test.tssrc/main/ssh/ssh-relay-host-node-addons.tssrc/main/ssh/ssh-relay-hostile-hosts.docker.test.tssrc/main/ssh/ssh-relay-live-connect.test.tssrc/main/ssh/ssh-relay-native-deps-cache-deploy.test.tssrc/main/ssh/ssh-relay-native-deps-cache-install.tssrc/main/ssh/ssh-relay-native-deps-install-staged-upload.test.tssrc/main/ssh/ssh-relay-native-deps-install.test.tssrc/main/ssh/ssh-relay-native-deps-probe-verdict.test.tssrc/main/ssh/ssh-relay-node-headers.test.tssrc/main/ssh/ssh-relay-node-headers.tssrc/main/ssh/ssh-relay-node-pty-repair.test.tssrc/main/ssh/ssh-relay-node-pty-repair.tssrc/main/ssh/ssh-relay-node-pty-spawn-repair.test.tssrc/main/ssh/ssh-relay-offline-node-headers.docker.test.tssrc/main/ssh/ssh-relay-opencode-pinned-node.test.tssrc/main/ssh/ssh-relay-opencode-pinned-node.tssrc/main/ssh/ssh-relay-opencode-runtime-commands.test.tssrc/main/ssh/ssh-relay-opencode-runtime-commands.tssrc/main/ssh/ssh-relay-opencode-runtime-retry.test.tssrc/main/ssh/ssh-relay-opencode-runtime-retry.tssrc/main/ssh/ssh-relay-opencode-runtime.test.tssrc/main/ssh/ssh-relay-opencode-runtime.tssrc/main/ssh/ssh-relay-orphan-abandon-paths.test.tssrc/main/ssh/ssh-relay-pinned-node-install.test.tssrc/main/ssh/ssh-relay-pinned-node-install.tssrc/main/ssh/ssh-relay-pty-master-cloexec-install.test.tssrc/main/ssh/ssh-relay-repair-lock-termination.test.tssrc/main/ssh/ssh-relay-repair-lock.tssrc/main/ssh/ssh-relay-reset.test.tssrc/main/ssh/ssh-relay-reset.tssrc/main/ssh/ssh-relay-ripgrep-cache-gc-commands.tssrc/main/ssh/ssh-relay-ripgrep-cache-gc-real.test.tssrc/main/ssh/ssh-relay-ripgrep-cache-gc.test.tssrc/main/ssh/ssh-relay-ripgrep-cache-gc.tssrc/main/ssh/ssh-relay-ripgrep-install.test.tssrc/main/ssh/ssh-relay-ripgrep-install.tssrc/main/ssh/ssh-relay-runtime-step-plan.tssrc/main/ssh/ssh-relay-session-agent-hooks.integration.test.tssrc/main/ssh/ssh-relay-session-data-delivery.test.tssrc/main/ssh/ssh-relay-session-incarnation.test.tssrc/main/ssh/ssh-relay-session-managed-hooks.test.tssrc/main/ssh/ssh-relay-session-model-migration.test.tssrc/main/ssh/ssh-relay-session-orphan-sweep.test.tssrc/main/ssh/ssh-relay-session-pending-kill-replay.test.tssrc/main/ssh/ssh-relay-session-plain-ssh.test.tssrc/main/ssh/ssh-relay-session-previous-relay-hold.test.tssrc/main/ssh/ssh-relay-session-reconnect-incarnation.test.tssrc/main/ssh/ssh-relay-session-recovery-durability.test.tssrc/main/ssh/ssh-relay-session-recovery-races.test.tssrc/main/ssh/ssh-relay-session-rejected-delivery.test.tssrc/main/ssh/ssh-relay-session-relay-loss.test.tssrc/main/ssh/ssh-relay-session-terminal-error.test.tssrc/main/ssh/ssh-relay-session-test-fixtures.tssrc/main/ssh/ssh-relay-session.test.tssrc/main/ssh/ssh-relay-session.tssrc/main/ssh/ssh-relay-sftp-namespace-install.test.tssrc/main/ssh/ssh-relay-upload-cancel.docker.test.tssrc/main/ssh/ssh-relay-upload-stage-commands.test.tssrc/main/ssh/ssh-relay-upload-stage-commands.tssrc/main/ssh/ssh-relay-upload-stage-contract.tssrc/main/ssh/ssh-relay-upload-stage-windows-commands.tssrc/main/ssh/ssh-relay-upload-stage-windows-identity.test.tssrc/main/ssh/ssh-relay-versioned-install.test.tssrc/main/ssh/ssh-relay-windows-host-lane.test.tssrc/main/ssh/ssh-remote-cli-args.tssrc/main/ssh/ssh-remote-cli-argument-error.tssrc/main/ssh/ssh-remote-cli-bridge-credential.test.tssrc/main/ssh/ssh-remote-cli-dispatch-refusal-passthrough.test.tssrc/main/ssh/ssh-remote-cli-error-response.tssrc/main/ssh/ssh-remote-cli-format.test.tssrc/main/ssh/ssh-remote-cli-format.tssrc/main/ssh/ssh-remote-cli-host-passthrough.test.tssrc/main/ssh/ssh-remote-cli-host-passthrough.tssrc/main/ssh/ssh-remote-cli-in-process-result.tssrc/main/ssh/ssh-remote-cli-terminal-host-scope.test.tssrc/main/ssh/ssh-remote-linear-activity-output.test.tssrc/main/ssh/ssh-remote-linear-cli.test.tssrc/main/ssh/ssh-remote-linear-cli.tssrc/main/ssh/ssh-remote-linear-list-issues.test.tssrc/main/ssh/ssh-remote-linear-list-issues.tssrc/main/ssh/ssh-remote-linear-output.tssrc/main/ssh/ssh-remote-linear-read-cli.tssrc/main/ssh/ssh-remote-linear-read-flags.tssrc/main/ssh/ssh-remote-linear-read-help.tssrc/main/ssh/ssh-remote-linear-relation-write.test.tssrc/main/ssh/ssh-remote-linear-relation-write.tssrc/main/ssh/ssh-remote-linear-result-guards.tssrc/main/ssh/ssh-remote-linear-save-issue.test.tssrc/main/ssh/ssh-remote-linear-save-issue.tssrc/main/ssh/ssh-remote-linear-truncation-output.test.tssrc/main/ssh/ssh-remote-linear-write-cli.tssrc/main/ssh/ssh-remote-linear-write-help.tssrc/main/ssh/ssh-remote-linear-write-support.tssrc/main/ssh/ssh-remote-node-addon-resolution.test.tssrc/main/ssh/ssh-remote-node-addon-resolution.tssrc/main/ssh/ssh-remote-orca-cli.test.tssrc/main/ssh/ssh-remote-orca-cli.tssrc/main/ssh/ssh-remote-orchestration-ask-output.tssrc/main/ssh/ssh-remote-orchestration-check-output.tssrc/main/ssh/ssh-remote-orchestration-compatibility.test.tssrc/main/ssh/ssh-remote-orchestration-post-output.tssrc/main/ssh/ssh-remote-orchestration-send.test.tssrc/main/ssh/ssh-remote-orchestration-send.tssrc/main/ssh/ssh-remote-windows-command-line-limit.test.tssrc/main/ssh/ssh-session-command-audit.test.tssrc/main/ssh/ssh-system-transport.integration.test.tssrc/main/startup/headless-serve-ssh-registration.test.tssrc/preload/api/ssh-api.tssrc/preload/api/ssh-bridge.tssrc/relay/pty-handler-ownership-attestation.test.tssrc/renderer/src/components/settings/SshHostAdvancedFields.tsxsrc/renderer/src/components/settings/SshManagedServerMoveDialog.test.tsxsrc/renderer/src/components/settings/SshManagedServerMoveDialog.tsxsrc/renderer/src/components/settings/SshPane.tsxsrc/renderer/src/components/settings/SshTargetCard.test.tsxsrc/renderer/src/components/settings/SshTargetCard.tsxsrc/renderer/src/components/settings/SshTargetDestructiveActions.tsxsrc/renderer/src/components/settings/SshTargetServerStatus.tsxsrc/renderer/src/components/settings/ssh-host-server-status-copy.test.tssrc/renderer/src/components/settings/ssh-host-server-status-copy.tssrc/renderer/src/components/settings/ssh-session-termination.tssrc/renderer/src/components/settings/ssh-target-draft.test.tssrc/renderer/src/components/settings/ssh-target-draft.tssrc/renderer/src/components/settings/ssh-target-remove.test.tssrc/renderer/src/components/settings/ssh-target-remove.tssrc/renderer/src/components/settings/ssh-target-save-payload.test.tssrc/renderer/src/components/settings/ssh-target-save-payload.tssrc/renderer/src/components/sidebar/HostRemoveDialog.tsxsrc/renderer/src/components/sidebar/add-remote-host-ssh-actions.tssrc/renderer/src/hooks/ipc-events/ssh-managed-server-state-effects.test.tssrc/renderer/src/hooks/ipc-events/ssh-managed-server-state-effects.tssrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/ssh/ssh-managed-server-move-terminal-tabs.test.tssrc/renderer/src/ssh/ssh-managed-server-move-terminal-tabs.tssrc/renderer/src/ssh/ssh-managed-server-move.tssrc/renderer/src/web/preload-api/web-terminal-api.tssrc/shared/ssh-managed-server-move.tssrc/shared/ssh-relay-pty-ownership-proof.test.tssrc/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.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
931e2e7f-d45b-4e81-a131-869ac9d55d9f
📒 Files selected for processing (125)
.github/workflows/e2e.yml.github/workflows/pr.ymlconfig/max-lines-baseline.txtconfig/performance-audit.mdconfig/process-host-direct-import-baseline.txtconfig/reliability-gates.jsoncconfig/scripts/ci-e2e-job-selection.mjsconfig/scripts/ci-e2e-job-selection.test.mjsconfig/scripts/ci-shard-timings.jsonconfig/scripts/localization-extraction-change-scope.test.mjsconfig/scripts/pr-e2e-gate-contract.test.mjsconfig/scripts/pr-e2e-native-only-routing.test.mjsconfig/scripts/pr-e2e-pane-close-routing.test.mjsconfig/scripts/pr-e2e-source-routing.mjsconfig/scripts/pr-ready-check-reuse.test.mjsconfig/scripts/release-cut-token-permissions.test.mjsconfig/scripts/run-local-ssh-browser-routing-e2e.mjsconfig/scripts/run-nested-runtime-ssh-e2e.mjsconfig/scripts/run-ssh-client-hosted-browser-drop-reconnect-e2e.mjsconfig/scripts/run-ssh-codex-artifacts-repro-e2e.mjsconfig/scripts/run-ssh-docker-bulk-open-freeze-e2e.mjsconfig/scripts/run-ssh-docker-e2e.mjsconfig/scripts/run-ssh-docker-perf-e2e.mjsconfig/scripts/run-ssh-docker-terminal-parking-e2e.mjsconfig/scripts/run-ssh-docker-watcher-isolation-e2e.mjsconfig/scripts/run-ssh-staged-upload-reliability.mjsconfig/scripts/ssh-browser-e2e-routing.test.mjsconfig/scripts/ssh-localhost-e2e-routing.test.mjsconfig/scripts/vitest-sqlite-database-runtime-files.mjsconfig/scripts/vitest-sqlite-runtime-files.mjsconfig/scripts/windows-cmd-shim-spawn-boundary.test.mjspackage.jsonsrc/main/ipc/ssh-connect-decision-cancellation.test.tssrc/main/ipc/ssh-host-server-on-connect-wiring.test.tssrc/main/ipc/ssh-host-sleep-reconnect.test.tssrc/main/ipc/ssh.test.tssrc/main/ssh/orcad-migration-terminal-gate.test.tssrc/main/ssh/orcad-migration-terminal-gate.tssrc/main/ssh/orcad-runtime-conversion.test.tssrc/main/ssh/ssh-host-relay-terminals-on-connect.test.tssrc/main/ssh/ssh-host-unserved-status.tssrc/renderer/src/components/settings/SshPane.tsxsrc/renderer/src/components/settings/ssh-host-server-status-copy.test.tssrc/renderer/src/components/settings/ssh-host-server-status-copy.tssrc/renderer/src/components/sidebar/WorktreeCardSshHostControl.tsxsrc/renderer/src/components/status-bar/SshTargetStatusRow.tsxsrc/renderer/src/components/terminal-pane/TerminalSshReconnectOverlay.tsxsrc/renderer/src/components/terminal-pane/terminal-pane-host-state.tssrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/ssh/ssh-connect-failure-text.tssrc/renderer/src/store/slices/direct-ssh-terminal-retry.test.tstests/e2e/artificial-opencode-hidden-pressure-scenario.tstests/e2e/ephemeral-vm-provisioned-root.spec.tstests/e2e/global-setup-cli-artifact.unit.test.tstests/e2e/global-setup.tstests/e2e/helpers/browser-pane-mount-census.tstests/e2e/helpers/docker-ssh-relay-faults.tstests/e2e/helpers/docker-ssh-relay-processes.tstests/e2e/helpers/docker-ssh-relay-workspace-snapshot.tstests/e2e/helpers/docker-ssh-relay-worktree-activation.tstests/e2e/helpers/nested-runtime-ssh-relay-lifecycle.tstests/e2e/helpers/nested-runtime-ssh-state.tstests/e2e/helpers/orca-app.tstests/e2e/helpers/orca-restart.tstests/e2e/helpers/paired-web-filesystem-route.tstests/e2e/helpers/ssh-port-forward-lifecycle-evidence.tstests/e2e/helpers/ssh-port-forward-transport-evidence.tstests/e2e/helpers/ssh-reconnect-failure-observation.tstests/e2e/helpers/ssh-recovery-input-observation.tstests/e2e/helpers/terminal-tab-open.tstests/e2e/local-ssh-browser-routing.spec.tstests/e2e/nested-runtime-ssh-lifecycle.spec.tstests/e2e/nested-runtime-ssh-routing.spec.tstests/e2e/pty-input-write-queue-ssh.spec.tstests/e2e/repo-registration-async.spec.tstests/e2e/ssh-ai-vault-session-history.spec.tstests/e2e/ssh-client-hosted-browser-drop-reconnect.spec.tstests/e2e/ssh-codex-display-artifacts-repro.spec.tstests/e2e/ssh-codex-real-remote.tstests/e2e/ssh-codex-reconnect-replay-driver.tstests/e2e/ssh-codex-repro-remote-fixtures.tstests/e2e/ssh-codex-terminal-observers.tstests/e2e/ssh-cold-activation-restore.spec.tstests/e2e/ssh-cold-hydration-gap-tab-seeding.spec.tstests/e2e/ssh-docker-bulk-open-freeze-repro.spec.tstests/e2e/ssh-docker-five-pane-input-under-flood.spec.tstests/e2e/ssh-docker-half-open-link.spec.tstests/e2e/ssh-docker-quick-open-large-listing.spec.tstests/e2e/ssh-docker-reconnect-pane-restore.spec.tstests/e2e/ssh-docker-relay-perf.spec.tstests/e2e/ssh-docker-relay-stall-credential.spec.tstests/e2e/ssh-docker-resource-accumulation.spec.tstests/e2e/ssh-docker-transport-drop-recovery.spec.tstests/e2e/ssh-docker-watcher-isolation.spec.tstests/e2e/ssh-egress-indicator-preview.spec.tstests/e2e/ssh-emptied-worktree-reactivation.spec.tstests/e2e/ssh-external-image-preview.spec.tstests/e2e/ssh-localhost.spec.tstests/e2e/ssh-lost-kill-tab-resurrection.spec.tstests/e2e/ssh-native-chat-phone-history.spec.tstests/e2e/ssh-pi-compatible-agent-title.spec.tstests/e2e/ssh-port-forward-lifecycle.spec.tstests/e2e/ssh-reattach-home-partition.spec.tstests/e2e/ssh-reconnect-tab-destruction.spec.tstests/e2e/ssh-restart-tab-accumulation.spec.tstests/e2e/ssh-routing-optout-demo.spec.tstests/e2e/ssh-skill-installation.spec.tstests/e2e/ssh-stale-resume-execution-host-scope.spec.tstests/e2e/ssh-startup-exec-readiness.spec.tstests/e2e/ssh-startup-local-shadow.spec.tstests/e2e/ssh-terminal-parking.spec.tstests/e2e/ssh-terminal-stale-grid-probe.tstests/e2e/ssh-terminal-window-wake-stale-grid-repro.spec.tstests/e2e/terminal-inline-images-ssh.spec.tstests/e2e/terminal-raster-artifact-analysis.tstests/e2e/terminal-repro-evidence.tstests/e2e/terminal-retention-budget.spec.tstests/e2e/terminal-webgl-reset-capture.tstests/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.
| return sshConnectFailureText( | ||
| {}, | ||
| useAppStore.getState().sshConnectionStates.get(targetId), | ||
| error instanceof Error ? error.message : fallback |
There was a problem hiding this comment.
🎯 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.tsRepository: 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/srcRepository: 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 || trueRepository: 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 \) -printRepository: 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 || trueRepository: 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/mainRepository: 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.
7e8b88b to
734dd99
Compare
7b105e8 to
aed15c5
Compare
8c3c846 to
aa49420
Compare
|
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.
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. |
…elay session, deploy and relay UI
…der terminals; translate every connect-failure surface
…ey seed a profile
…rofile The three journeys built their old-version state through a connect without an orcad template, which now refuses the host. They now start from a seeded relay-era profile, so the first connect converts the host as an upgrading user's would.
…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.
…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.
…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.
…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.
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
noexechome, 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:
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 notmanaged, the connect closes the transport its decision opened, publishes the status (publishUnservedHostServer), and throws. It never constructs a relay session.decideHostServerno longer swallows errors to fall back to the relay.managedServer: { kind: 'relay', reason, … }) so retained payloads and older readers are unaffected. Only its meaning changes ("not served"), as noted inssh-host-unserved-status.ts.orcaCLI (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.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
SshPtyProviderstack (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)
~/.orca-remote/relay-*, the shared native-deps cache, orripgrep/. Relay GC lived only in relay deploy, which is deleted.orcad-*. The Node runtime-store GC still scans every sibling directory plusps, so an old desktop's live relay keeps its runtime.refuseOrcadHostDowngrade, then uses its relay as before.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): passAffected 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 mainNew: 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 Englishcheck:code-quality:changed,oxlint,oxfmt, localization extraction, catalog, coverage and runtime-catalog checks, reliability gates: passI 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. Thessh-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 (asseedRelayEraProfilealready 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
Notes
Cross-platform: Windows hosts lose the relayed remote
orcaCLI; orcad's CLI launcher is POSIX-only today. Managed hook install on connect was relay-only; orcad installs hooks when hook settings change.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)