Files
orca/src/relay/remote-cli-env.test.ts
T
OrcaWinandOrcaWin 363e478909 fix(orchestration): preserve active workers across updates (#11271)
* fix(orchestration): preserve active workers across updates

* test(ssh): model absent legacy adoption

* test(orchestration): align compatibility contracts

* fix(windows): escape updater PowerShell booleans

* fix(windows): restore stock uninstall process check

* fix(orchestration): keep recovery off renderer startup barrier

* fix(orchestration): harden legacy recovery migration

* fix(orchestration): close recovery review gaps

* fix(orchestration): complete legacy worker cutover recovery

* fix(orchestration): preserve legacy workers across updates

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-07-29 11:31:35 -07:00

28 lines
866 B
TypeScript

import { describe, expect, it } from 'vitest'
import { pickRemoteCliEnv } from './remote-cli-env'
describe('pickRemoteCliEnv', () => {
it('forwards SSH Orca terminal and worktree context for remote CLI calls', () => {
expect(
pickRemoteCliEnv({
ORCA_TERMINAL_HANDLE: 'term_ssh',
ORCA_WORKTREE_ID: 'repo::remote',
ORCA_PANE_KEY: 'pane-1',
ORCA_AGENT_LAUNCH_TOKEN: 'launch-secret',
ORCA_WORKSPACE_ID: 'workspace-1',
ORCA_USER_DATA_PATH: '/tmp/orca',
PATH: '/usr/bin',
SECRET_TOKEN: 'nope'
})
).toEqual({
ORCA_TERMINAL_HANDLE: 'term_ssh',
ORCA_WORKTREE_ID: 'repo::remote',
ORCA_PANE_KEY: 'pane-1',
ORCA_AGENT_LAUNCH_TOKEN: 'launch-secret',
ORCA_WORKSPACE_ID: 'workspace-1',
ORCA_USER_DATA_PATH: '/tmp/orca',
PATH: '/usr/bin'
})
})
})