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 type { RuntimeTerminalWaitBlockedReason } from './runtime-terminal-contracts'
// Older hosts mislabeled generic dialogs codex-*; render neutral equivalents for other agents.
// Use Map for unvalidated wire keys so constructor/toString cannot print inherited functions.
// Only map old → neutral: old clients receiving new tokens use their own shipped rendering.
const LEGACY_CODEX_REASON_ALIASES = new Map<string, RuntimeTerminalWaitBlockedReason>([
['codex-update-prompt', 'agent-update-prompt'],
['codex-trust-workspace', 'agent-trust-workspace'],
['codex-cwd-prompt', 'agent-cwd-prompt'],
['codex-hooks-review-prompt', 'agent-hooks-review-prompt'],
['codex-interactive-prompt', 'agent-interactive-prompt']
])
/** Neutral spelling for a reason an older host published, or null when it is already neutral or agent-specific. */
export function agentNeutralTerminalWaitBlockedReason(
reason: RuntimeTerminalWaitBlockedReason
): RuntimeTerminalWaitBlockedReason | null {
return LEGACY_CODEX_REASON_ALIASES.get(reason) ?? null
}
/** Append the neutral spelling for old hosts; preserve the published raw token because scripts parse it. */
export function describeTerminalWaitBlockedReason(
reason: RuntimeTerminalWaitBlockedReason
): string {
const neutral = agentNeutralTerminalWaitBlockedReason(reason)
return neutral ? `${reason} (${neutral})` : reason
}