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-startup'
const SESSION = { key: 'session_id', id: 's1' } as const
describe('agent fork startup', () => {
it('builds a Claude fork plan that replaces a stored resume selector', () => {
const plan = buildAgentResumeStartupPlan({
agent: 'claude',
providerSession: SESSION,
cmdOverrides: { claude: 'claude --continue' },
platform: 'darwin',
fork: true
})
expect(plan?.launchCommand).toBe("claude '--resume' 's1' '--fork-session'")
})
it('builds a Codex fork plan that opens in the launch folder', () => {
const plan = buildAgentResumeStartupPlan({
agent: 'codex',
providerSession: SESSION,
cmdOverrides: {},
platform: 'darwin',
resumeInLaunchCwd: true,
fork: true
})
expect(plan?.launchCommand).toBe(
"codex '-c' 'disable_paste_burst=true' '-c' 'tui.resume_cwd=current' 'fork' 's1'"
)
})
it('refuses a fork for an agent that cannot fork rather than resuming it', () => {
expect(
buildAgentResumeStartupPlan({
agent: 'gemini',
providerSession: SESSION,
cmdOverrides: {},
platform: 'darwin',
fork: true
})
).toBeNull()
})
})