Repository navigation
Expose original error details to turn lifecycle contributors - #49138
Merged
copyberry[bot] merged 1 commit intoSep 29, 2026
Conversation
## Why Turn error hooks receive only a `CodexErrorInfo` category, which omits backend metadata such as usage-limit reset times and rate-limit snapshots. ## What changed Add borrowed `CodexErrorDetails` to `TurnErrorInput` and pass the original details through turn and compaction error notifications, alongside the existing error category. ## Testing Add coverage for usage-limit metadata during sampling, manual compaction, and post-turn compaction, including preservation of completed answers and existing error events. Extend lifecycle tests to verify that an `InvalidImageRequest` retains its details when surfaced as `BadRequest`. GitOrigin-RevId: 6f2058992126da0f69508ef51998e7581557deea
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/6f2058992126da0f69508ef51998e7581557deea
branch
from
September 29, 2026 02:41
03173f3 to
f53f5a6
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/6f2058992126da0f69508ef51998e7581557deea
branch
September 29, 2026 02:41
indrolend
temporarily deployed
to
issue-triage
September 29, 2026 02:48 — with
GitHub Actions
Inactive
indrolend
temporarily deployed
to
issue-triage
September 29, 2026 02:48 — with
GitHub Actions
Inactive
indrolend
temporarily deployed
to
issue-triage
September 29, 2026 02:48 — with
GitHub Actions
Inactive
indrolend
temporarily deployed
to
issue-triage
September 29, 2026 02:49 — with
GitHub Actions
Inactive
W-guofeng
temporarily deployed
to
issue-triage
September 29, 2026 02:54 — with
GitHub Actions
Inactive
W-guofeng
temporarily deployed
to
issue-triage
September 29, 2026 02:54 — with
GitHub Actions
Inactive
W-guofeng
temporarily deployed
to
issue-triage
September 29, 2026 02:54 — with
GitHub Actions
Inactive
W-guofeng
temporarily deployed
to
issue-triage
September 29, 2026 02:55 — with
GitHub Actions
Inactive
m-szymanska
temporarily deployed
to
issue-triage
September 29, 2026 03:02 — with
GitHub Actions
Inactive
m-szymanska
temporarily deployed
to
issue-triage
September 29, 2026 03:02 — with
GitHub Actions
Inactive
m-szymanska
temporarily deployed
to
issue-triage
September 29, 2026 03:02 — with
GitHub Actions
Inactive
m-szymanska
temporarily deployed
to
issue-triage
September 29, 2026 03:03 — with
GitHub Actions
Inactive
zhumengting01
temporarily deployed
to
issue-triage
September 29, 2026 03:03 — with
GitHub Actions
Inactive
zhumengting01
temporarily deployed
to
issue-triage
September 29, 2026 03:03 — with
GitHub Actions
Inactive
zhumengting01
temporarily deployed
to
issue-triage
September 29, 2026 03:03 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expose original error details to turn lifecycle contributors
Why
Turn error hooks receive only a
CodexErrorInfocategory, which omits backend metadata such as usage-limit reset times and rate-limit snapshots.What changed
Add borrowed
CodexErrorDetailstoTurnErrorInputand pass the original details through turn and compaction error notifications, alongside the existing error category.Testing
Add coverage for usage-limit metadata during sampling, manual compaction, and post-turn compaction, including preservation of completed answers and existing error events. Extend lifecycle tests to verify that an
InvalidImageRequestretains its details when surfaced asBadRequest.