Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { describe, expect, it } from 'vitest'
import { buildAgentResumeStartupPlan } from './tui-agent-resume-startup'
describe('Kiro cold restore', () => {
it.each([
['darwin', 'posix', "kiro-cli chat --tui '--trust-all-tools' '--resume-id' 'session-1'"],
['linux', 'posix', "kiro-cli chat --tui '--trust-all-tools' '--resume-id' 'session-1'"],
['win32', 'powershell', "kiro-cli chat --tui '--trust-all-tools' '--resume-id' 'session-1'"],
['win32', 'cmd', 'kiro-cli chat --tui "--trust-all-tools" "--resume-id" "session-1"']
] as const)('appends only the resume selector on %s/%s', (platform, shell, expected) => {
const plan = buildAgentResumeStartupPlan({
agent: 'kiro',
providerSession: { key: 'session_id', id: 'session-1' },
cmdOverrides: {},
agentArgs: '--trust-all-tools',
platform,
shell
})
expect(plan?.launchCommand).toBe(expected)
})
it('preserves the captured engine and agent selection on a remote host', () => {
const plan = buildAgentResumeStartupPlan({
agent: 'kiro',
providerSession: { key: 'session_id', id: 'session-1' },
cmdOverrides: {},
agentCommand: 'kiro-cli chat --tui --v2 --agent reviewer',
platform: 'linux',
isRemote: true
})
expect(plan?.launchCommand).toBe(
"kiro-cli chat --tui --v2 --agent reviewer '--resume-id' 'session-1'"
)
})
})