Skip to main content

parse_codex_jsonl

Function parse_codex_jsonl 

Source
pub fn parse_codex_jsonl(stdout: &str) -> Result<CodexResult, AppError>
Expand description

Parses JSONL output from codex exec --json.

Event format (DOTS notation):

  • thread.started — session init
  • turn.started — model turn begins
  • item.completed — message or tool call; last agent_message wins
  • turn.completed — includes usage stats
  • turn.failed — error with optional rate-limit indicator
  • error — schema or validation error

G32 (v1.0.69): this function is the single source of truth for JSONL parsing. Both enrich and ingest --mode codex consume it.