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 { test } from './helpers/orca-app'
import {
createRuntimeDesktopPairingOffer,
launchPairedWebClient
} from './helpers/paired-electron-client'
import { runPairedTerminalParkingOracle } from './helpers/paired-terminal-parking-oracle'
test('ordinary-parks paired terminals and restores authoritative host scrollback @headful', async ({
electronApp,
orcaPage
}) => {
test.setTimeout(240_000)
const seed = await orcaPage.evaluate(() => {
const state = window.__store?.getState()
const worktrees = state?.allWorktrees() ?? []
const active = worktrees.find((worktree) => worktree.id === state?.activeWorktreeId)
if (!active) {
throw new Error('Paired retention host has no active seeded worktree')
}
return { activeWorktreeId: active.id, repoId: active.repoId }
})
const offer = await createRuntimeDesktopPairingOffer(orcaPage)
const client = await launchPairedWebClient(electronApp, offer, {
terminalParkingDelayMs: 100
})
try {
await runPairedTerminalParkingOracle(
client.page,
{
fallbackWorktreeId: seed.activeWorktreeId,
repoId: seed.repoId
},
{ hostPage: orcaPage }
)
} finally {
await client.dispose()
}
})