mirror of
https://github.com/stablyai/orca.git
synced 2026-09-28 16:02:45 +00:00
* 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>
28 lines
866 B
TypeScript
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'
|
|
})
|
|
})
|
|
})
|