Expand description
Serde models for the OpenAI Codex CLI *.jsonl session format.
Every line is a CodexLog wrapping a type discriminator and a
CodexPayload. The payload is a wide union of optional fields because the
same struct deserializes session-meta, turn-context, event-message, and
response-item records; only the fields relevant to each record type are
populated.
Structsยง
- Codex
Content - One content block of a Codex message payload.
- Codex
Exec Command Arguments - Arguments for the current
name == "exec_command"function call. - Codex
GitInfo - Git repository metadata captured at the start of a Codex session.
- Codex
Log - A single line of a Codex/OpenAI session log.
- Codex
Payload - Event-specific payload of a
CodexLog. - Codex
Shell Arguments - Arguments of the legacy
name == "shell"function call. - Codex
Shell Metadata - Exit-code and timing metadata for a Codex shell command.
- Codex
Shell Output - Result of a Codex shell command: captured output plus optional metadata.