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
// Keep blocked/stopped prompt hooks as visible rows using the hook's reason, consistently across agents.
import type { AgentJournalPlainStatusItem } from './agent-session-journal-types'
import { AGENT_SESSION_TURN_NOTICE_PRESENTATION } from './agent-session-turn-notice'
export type AgentSessionHookOutcome = 'blocked' | 'stopped'
export function hookOutcomeRowBody(
outcome: AgentSessionHookOutcome,
details: readonly string[]
): AgentJournalPlainStatusItem {
const header = outcome === 'blocked' ? 'Blocked by hook' : 'Hook stopped'
const lines = details.map((detail) => detail.trim()).filter((detail) => detail.length > 0)
return {
kind: 'status',
tone: 'warning',
presentation: AGENT_SESSION_TURN_NOTICE_PRESENTATION,
text:
lines.length === 0
? `${header}.`
: lines.length === 1
? `${header}: ${lines[0]}`
: [header, ...lines].join('\n')
}
}