codex - 💡(How to fix) Fix Forward structured CodexErrorInfo in codex exec JSONL error events [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#22570Fetched 2026-05-14 03:34:22
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Error Message

Request: include the structured CodexErrorInfo (for example as error.codexErrorInfo, using the existing camelCase v2 shape) on turn.failed and top-level error JSONL events, preserving the human-readable message for display.

RAW_BUFFERClick to expand / collapse

codex exec --json currently emits terminal failures as ThreadErrorEvent with only a message string in exec_events.rs. The app-server protocol already has structured CodexErrorInfo in shared.rs, including variants such as unauthorized, usageLimitExceeded, badRequest, serverOverloaded, and HTTP-status-bearing connection/stream variants.

Request: include the structured CodexErrorInfo (for example as error.codexErrorInfo, using the existing camelCase v2 shape) on turn.failed and top-level error JSONL events, preserving the human-readable message for display.

Why this matters: downstream harnesses need to distinguish auth, quota/rate, configuration, and transient provider failures without classifying English message text. Forwarding the existing structured discriminator would let callers use the JSON contract directly and remove message-substring fallback code.

Current observed shape on main: ThreadErrorEvent { message: String } in codex-rs/exec/src/exec_events.rs; CodexErrorInfo exists separately in codex-rs/app-server-protocol/src/protocol/v2/shared.rs but is not present in exec JSONL ThreadErrorEvent.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Forward structured CodexErrorInfo in codex exec JSONL error events [1 participants]