mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 11:07:42 +00:00
test(orchestration): pin a structured worker's CLI command as this app's absolute launcher
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { join } from 'node:path'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { getAppEnvironment } from '../../../../shared/app-environment'
|
||||
import { dispatchWriteFailureReason } from '../../../../shared/structured-agent-session-dispatch-rejection'
|
||||
|
||||
const hostRef: { current: unknown } = { current: null }
|
||||
@@ -94,7 +96,15 @@ describe('structured worker session hold', () => {
|
||||
onJournalActivity: () => {}
|
||||
})
|
||||
expect(envAtSpawn?.ORCA_TERMINAL_HANDLE).toBe(created.identity.handle)
|
||||
expect(envAtSpawn?.ORCA_CLI_COMMAND).toBe('orca')
|
||||
// This app's own launcher by absolute path, so a login shell's profile cannot swap in a global.
|
||||
expect(envAtSpawn?.ORCA_CLI_COMMAND).toBe(
|
||||
join(
|
||||
getAppEnvironment().getPath('userData'),
|
||||
'cli',
|
||||
'bin',
|
||||
process.platform === 'win32' ? 'orca-dev.cmd' : 'orca-dev'
|
||||
)
|
||||
)
|
||||
expect(envAtSpawn?.ORCA_PANE_KEY).toBeUndefined()
|
||||
releaseStructuredWorkerSession('d_spawn')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user