Repository navigation
Add opt-in structured errors for Guardian circuit-breaker interruptions - #48796
Merged
copyberry[bot] merged 1 commit intoSep 27, 2026
Conversation
…ns (#48796) ## Why Guardian denial-limit interruptions lack a structured error identifying the cause. Make this opt-in because older clients may not recognize the new error in shared history. ## What changed - Add `auto_review.circuit_break_action = "strict"` to attach `TooManyDenials` to the interrupted turn. The default leaves the error unset. - Expose `turn.error.codexErrorInfo = "tooManyDenials"` in app-server notifications and saved history, and update protocol schemas and generated types. - Preserve the warning, denial limit, and interrupted status without emitting a separate error notification. ## Testing Add an integration test covering omitted, `default`, and `strict` settings, checking warnings, live turn errors, the absence of separate error notifications, and persisted turn errors after restart. GitOrigin-RevId: cb5d379e64728d4d7b9daf834c13756e4a70db31
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/cb5d379e64728d4d7b9daf834c13756e4a70db31
branch
from
September 27, 2026 22:05
a0560d2 to
d7748e1
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/cb5d379e64728d4d7b9daf834c13756e4a70db31
branch
September 27, 2026 22:05
This branch was successfully 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.
Add opt-in structured errors for Guardian circuit-breaker interruptions
Why
Guardian denial-limit interruptions lack a structured error identifying the cause. Make this opt-in because older clients may not recognize the new error in shared history.
What changed
auto_review.circuit_break_action = "strict"to attachTooManyDenialsto the interrupted turn. The default leaves the error unset.turn.error.codexErrorInfo = "tooManyDenials"in app-server notifications and saved history, and update protocol schemas and generated types.Testing
Add an integration test covering omitted,
default, andstrictsettings, checking warnings, live turn errors, the absence of separate error notifications, and persisted turn errors after restart.