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 { isRemoteRuntimePtyId, parseRemoteRuntimePtyId } from './remote-runtime-pty-id'
import { getPtyExecutionHost } from '../terminal-execution-host'
describe('isRemoteRuntimePtyId', () => {
// Pins the merge of the prefix-only and parse-based copies: an unparseable `remote:` id still
// runs off this host, matching getPtyExecutionHost's 'foreign' verdict.
it('treats an unparseable remote id as remote, never local', () => {
const malformed = 'remote:%E0%A4%A@@handle'
expect(parseRemoteRuntimePtyId(malformed)).toBeNull()
expect(isRemoteRuntimePtyId(malformed)).toBe(true)
expect(getPtyExecutionHost(malformed)).toBe('foreign')
})
})