orca/tests/e2e/helpers
Jinjing 637c7e94c9
Add SSH config host picker to add-host dialog (#12334)
* feat(ssh): add SSH config host picker for add-host form

Users can now click 'Fill from ~/.ssh/config…' to browse available SSH
config hosts in a picker, select one, and have the form automatically
prefill with resolved connection details (hostname, port, username, auth).

Previously, an 'import' button provided bulk sync on this form—confusing
and unhelpful when everything was already synced. That action is now
available as a secondary 'Add all' option in the picker.

* fix(ssh): import filter preservation and label fallback

- Reuse search loader on import completion to preserve active filter inside generation guard
- Fall back to hostname when manual host has no label, not empty string
- Make alias duplicate detection case-insensitive to match config picker behavior
- Validate host availability when restoring project group selection
- Add aria-selected attribute to picker options for accessibility

* fix(ssh): harden config picker import, alias folding, and host targeting

Review findings on the ~/.ssh/config picker + bulk add:

- Guard config-host resolution with a generation counter so a late resolve
  cannot overwrite a later pick or a form the user backed out of; freeze the
  other rows while a pick resolves.
- Stop "Add all N" from re-adopting deleted hosts — it now imports without
  reAdopt, matching the new-host count it advertises. Settings → Import keeps
  the explicit re-adopt path.
- Fold SSH aliases through a shared normalizeSshConfigAlias for import
  ownership, delete tombstones, reclaim, picker search, and the save-time
  duplicate check, which now occupies configHost *and* label like the picker.
- Persist GSSAPIAuthentication only when a parsed Host entry asks for it, not
  when `ssh -G` merely echoes the /etc/ssh system default.
- Fail closed with unavailable/setup-not-found when an explicit
  projectHostSetupId names a non-actionable host instead of silently creating
  the workspace on a sibling host.
- Cache the parsed config for the picker session (refresh on open/retry) so
  filter keystrokes no longer reparse and Include-expand the file, keep the
  filter usable during loads, add a Retry on load errors, explain an empty
  Identity file after a config fill, and drop the always-false aria-selected.

* refactor(ssh): centralize host result limit and extract folder group val

Move SSH_CONFIG_HOST_RESULT_LIMIT to shared types so the renderer's limit message
cannot drift from the host's query limit. Extract findActionableFolderProjectGroup
to avoid repeating the folder-host-availability check across the composer hook.

* fix(ssh): pass -F to ssh -G when HOME differs from passwd home

In E2E tests and sandboxes, isolated HOME can differ from the system
passwd home. OpenSSH resolves the default config via getpwuid (passwd),
while Node's loadUserSshConfig uses os.homedir() (HOME-aware). Pass -F
to explicitly specify the config path when they diverge, so ssh -G and
the picker resolve the same file.

* fix(ssh): verify config host exists before resolving with ssh -G

When a user edits ~/.ssh/config and removes a host, the import picker
should not fall back to ssh -G's echoed response (which treats any alias
as valid). Check the reloaded config file before resolving.

- Force reload config on each resolve to catch user edits post-open
- Reject aliases not in the current config before calling ssh -G
- Add test for deleted alias edge case
- Fix workspace-target fallback to honor explicit host selection

* fix(ssh): let tombstoned aliases be re-picked in the config picker

Allow users to reclaim a deleted SSH host by re-picking it from ~/.ssh/config. Tombstoned aliases now appear in the picker with a "Removed from Orca" badge and remain pickable, but don't count toward "Add all" operations — ensuring passive import never resurrects a deleted alias while still giving the user a recovery path.
2026-08-03 17:32:13 -07:00
..
agent-hook-endpoint.ts
alt-screen-frame.ts test(e2e): fix two stale E2E specs failing on main (runtime host seeding, alt-screen snapshot) (#10614) 2026-07-25 15:58:40 -07:00
computer-cli-driver.ts feat(codex): real-home routing + self-contained multi-account homes (#9501) 2026-07-20 14:34:53 -07:00
computer-driver.ts
daemon-generation-processes.ts fix(terminal): prevent reconnect from killing live daemon sessions (#9804) 2026-07-21 19:20:16 -07:00
daemon-generation-runtime-fixture.ts fix(terminals): negotiate explicit close intent for paired runtimes (#10129) 2026-07-27 15:22:55 -07:00
daemon-generation-safety-fixtures.ts fix(terminals): negotiate explicit close intent for paired runtimes (#10129) 2026-07-27 15:22:55 -07:00
dead-terminal.ts
docker-ssh-relay-connection.ts fix(ssh): recover orphaned relay install locks (#9828) (#10207) 2026-07-31 16:17:37 -07:00
docker-ssh-relay-image.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
docker-ssh-relay-processes.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
docker-ssh-relay-target.ts fix(ssh): recover orphaned relay install locks (#9828) (#10207) 2026-07-31 16:17:37 -07:00
docker-ssh-relay-worktree-activation.ts fix(terminal): bound SSH & remote hidden-worktree terminal retention (C1) (#10625) 2026-07-29 00:47:18 -07:00
e2e-completed-onboarding-profile.ts feat(status-bar): notify upgraded users usage meters show % used (#8319) 2026-07-11 14:49:49 -07:00
electron-home-isolation.ts feat(codex): real-home routing + self-contained multi-account homes (#9501) 2026-07-20 14:34:53 -07:00
electron-home-isolation.unit.test.ts feat(codex): real-home routing + self-contained multi-account homes (#9501) 2026-07-20 14:34:53 -07:00
electron-launch-args.ts fix(e2e): launch plugins with real app identity (#11024) 2026-07-27 17:56:07 -07:00
electron-launch-args.unit.test.ts fix(e2e): launch plugins with real app identity (#11024) 2026-07-27 17:56:07 -07:00
electron-process-shutdown.ts
file-explorer.ts
headless-paired-runtime-host.ts fix(runtime): coalesce concurrent host terminal focus (#11841) 2026-08-03 02:18:05 -07:00
headless-paired-runtime-host.unit.test.ts fix(runtime): coalesce concurrent host terminal focus (#11841) 2026-08-03 02:18:05 -07:00
local-https-test-certificate.ts fix(browser): local HTTPS Try HTTPS + cert proceed (#8454) (#9104) 2026-07-16 19:11:34 -07:00
local-https-test-server.ts fix(browser): local HTTPS Try HTTPS + cert proceed (#8454) (#9104) 2026-07-16 19:11:34 -07:00
markdown-ordered-list-exit.ts
nested-runtime-proxy-jump-fixture.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
nested-runtime-proxy-jump-fixture.unit.test.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
nested-runtime-same-id-pairing.ts Support Windows drives in the remote host filesystem picker (#7439) 2026-07-28 20:51:14 -07:00
nested-runtime-ssh-client-route.ts Support Windows drives in the remote host filesystem picker (#7439) 2026-07-28 20:51:14 -07:00
nested-runtime-ssh-filesystem-route.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
nested-runtime-ssh-relay-lifecycle.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
nested-runtime-ssh-state.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
nested-runtime-ssh-terminal-creation.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
orca-app.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
orca-restart.ts feat: bound direct SSH reconnect fan-out and recovery (#11003) 2026-07-28 12:33:17 -07:00
paired-electron-client.ts fix(remote): recover and safely park paired terminals (#11416) 2026-07-29 20:04:55 -07:00
paired-terminal-cold-activation-observation.ts fix(remote): stabilize shared control and terminal parking (#11656) 2026-07-31 00:22:53 -07:00
paired-terminal-cold-activation-oracle.ts fix(remote): stabilize shared control and terminal parking (#11656) 2026-07-31 00:22:53 -07:00
paired-terminal-hidden-output-oracle.ts [P0] fix(terminal): pause hidden paired output (#11665) 2026-07-30 20:58:11 -07:00
paired-terminal-parking-fixture.ts [P0] fix(terminal): pause hidden paired output (#11665) 2026-07-30 20:58:11 -07:00
paired-terminal-parking-oracle.ts [P0] fix(terminal): pause hidden paired output (#11665) 2026-07-30 20:58:11 -07:00
paired-web-client-url.ts fix(remote): recover and safely park paired terminals (#11416) 2026-07-29 20:04:55 -07:00
paired-web-filesystem-route.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
plugin-panel-navigation-observer.ts feat: bound direct SSH reconnect fan-out and recovery (#11003) 2026-07-28 12:33:17 -07:00
pr-comments-sidebar-fixture.ts
remote-session-bulk-open-fixture.ts fix(runtime): coalesce concurrent host terminal focus (#11841) 2026-08-03 02:18:05 -07:00
remote-session-bulk-open-oracle.ts fix(runtime): coalesce concurrent host terminal focus (#11841) 2026-08-03 02:18:05 -07:00
remote-terminal-source-range-contract-fixture.ts feat(ssh): bound relay PTY output end to end (#11005) 2026-07-29 17:03:15 -07:00
remote-terminal-source-range-contract-fixture.unit.test.ts feat(ssh): bound relay PTY output end to end (#11005) 2026-07-29 17:03:15 -07:00
restored-terminal-input-readiness.ts test(e2e): harden terminal restart regressions on Windows (#9064) 2026-07-17 17:18:36 -07:00
run-node-script-in-terminal.ts test(e2e): deliver node burst via temp file so PowerShell quoting can't break OSC title (#8521) (#9391) 2026-07-20 03:04:28 -04:00
runtime-types.ts
seeded-test-repo.ts Fix diff notes overlapping following lines (#7803) 2026-07-26 23:48:20 -07:00
shortcuts.ts
source-control-ai-generation.ts
source-control-ai-generators.ts Add {linkedIssue} template variable for commit and PR generation (#10640) 2026-07-25 19:31:44 -07:00
ssh-config-host-picker.ts Add SSH config host picker to add-host dialog (#12334) 2026-08-03 17:32:13 -07:00
ssh-port-forward-lifecycle-evidence.ts Fix SSH port-forward rows disappearing after hydration (#11713) 2026-07-31 00:36:09 -07:00
ssh-port-forward-snapshot-barrier.ts Fix SSH port-forward rows disappearing after hydration (#11713) 2026-07-31 00:36:09 -07:00
ssh-port-forward-snapshot-barrier.unit.test.ts Fix SSH port-forward rows disappearing after hydration (#11713) 2026-07-31 00:36:09 -07:00
ssh-port-forward-transport-evidence.ts Fix SSH port-forward rows disappearing after hydration (#11713) 2026-07-31 00:36:09 -07:00
store.ts
streaming-terminal-cleanup.ts fix(runtime): coalesce concurrent host terminal focus (#11841) 2026-08-03 02:18:05 -07:00
streaming-terminal-cleanup.unit.test.ts fix(runtime): coalesce concurrent host terminal focus (#11841) 2026-08-03 02:18:05 -07:00
terminal-hidden-parking.ts fix(terminal): bound SSH & remote hidden-worktree terminal retention (C1) (#10625) 2026-07-29 00:47:18 -07:00
terminal-host-focus-storm-oracle.ts fix(runtime): coalesce concurrent host terminal focus (#11841) 2026-08-03 02:18:05 -07:00
terminal-input-probes.ts test(e2e): harden terminal restart regressions on Windows (#9064) 2026-07-17 17:18:36 -07:00
terminal-pty-injection.ts
terminal-pty-write-spy.ts
terminal-title-log.ts
terminal.ts fix(runtime): route HUB-owned SSH worktrees through owning runtime (#9994) 2026-07-22 18:25:05 -07:00
windows-ime-native-events.ts test(terminal): preserve Windows IME Shift commits (#12276) 2026-08-03 02:21:56 -07:00
worktree-registration.ts