Skip to content

Separate Codex error details from retry metadata - #34996

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d3ab8a305f2a2ee21d0c0a8c8c388b06dda9c59a
Jul 23, 2026
Merged

Separate Codex error details from retry metadata#34996
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d3ab8a305f2a2ee21d0c0a8c8c388b06dda9c59a

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 23, 2026

Copy link
Copy Markdown

Separate Codex error details from retry metadata

What changed

  • Wrap CodexErrorDetails and an optional retry delay in CodexErr, allowing any mapped error to preserve server-provided retry timing.
  • Generate the payload-free CodexErrKind classification alongside the error details and reuse it for analytics.
  • Update error handling sites to inspect CodexErr::details() while preserving existing display, debug, protocol mapping, and retryability behavior.

Testing

  • Add coverage for legacy debug formatting, error-specific retryability, and retry-delay propagation through API error mapping.

## What changed

- Wrap `CodexErrorDetails` and an optional retry delay in `CodexErr`, allowing any mapped error to preserve server-provided retry timing.
- Generate the payload-free `CodexErrKind` classification alongside the error details and reuse it for analytics.
- Update error handling sites to inspect `CodexErr::details()` while preserving existing display, debug, protocol mapping, and retryability behavior.

## Testing

- Add coverage for legacy debug formatting, error-specific retryability, and retry-delay propagation through API error mapping.

GitOrigin-RevId: d3ab8a305f2a2ee21d0c0a8c8c388b06dda9c59a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d3ab8a305f2a2ee21d0c0a8c8c388b06dda9c59a branch from 5a332ec to 7bafdad Compare July 23, 2026 19:32
@copyberry
copyberry Bot merged commit 7bafdad into main Jul 23, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d3ab8a305f2a2ee21d0c0a8c8c388b06dda9c59a branch July 23, 2026 19:33
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant