mirror of
https://github.com/stablyai/orca.git
synced 2026-10-07 16:02:29 +00:00
* fix: preserve Codex status on ambiguous Ctrl+C input * fix: confirm Codex turn cancellations from host rollout records * fix: keep ephemeral side hooks separate from the Codex main turn * perf: watch active Codex rollouts and skip unrelated records * fix: retain confirmed Codex cancellation across late relay events
8 lines
370 B
TypeScript
8 lines
370 B
TypeScript
// Codex writes these lifecycle types as JSON strings; message and token records need no decoding.
|
|
const STATUS_RECORD_TYPE =
|
|
/"(?:turn_context|thread_settings_applied|sub_agent_activity|task_started|turn_started|task_complete|turn_complete|turn_aborted)"/
|
|
|
|
export function isCodexStatusTranscriptLine(line: string): boolean {
|
|
return STATUS_RECORD_TYPE.test(line)
|
|
}
|