Files
orca/src/relay/remote-cli-env.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

20 lines
453 B
TypeScript

export function pickRemoteCliEnv(env: NodeJS.ProcessEnv): Record<string, string> {
const picked: Record<string, string> = {}
for (const key of [
'ORCA_TERMINAL_HANDLE',
'ORCA_WORKTREE_ID',
'ORCA_PANE_KEY',
'ORCA_AGENT_LAUNCH_TOKEN',
'ORCA_WORKSPACE_ID',
'ORCA_USER_DATA_PATH',
'PATH',
'Path'
]) {
const value = env[key]
if (typeof value === 'string') {
picked[key] = value
}
}
return picked
}