Skip to content

Propagate approval rejection reasons - #34400

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

Propagate approval rejection reasons#34400
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d48a55643aa03c7ecfa08a8e4b669913eec5464a

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 20, 2026

Copy link
Copy Markdown

Propagate approval rejection reasons

What changed

  • Change ReviewDecision::Denied to carry a rejection string and update the generated protocol schemas.
  • Preserve specific rejection reasons through command, patch, network, MCP, delegated, and automatic approval flows so tool results can return them to the model.
  • Distinguish invalid approval responses from user declines and truncate oversized rejection messages before adding them to model context.

Testing

  • Add coverage for denial serialization, invalid app-server approval responses, dropped automatic reviews, network rejection propagation, and rejection-message truncation.

## What changed

- Change `ReviewDecision::Denied` to carry a rejection string and update the generated protocol schemas.
- Preserve specific rejection reasons through command, patch, network, MCP, delegated, and automatic approval flows so tool results can return them to the model.
- Distinguish invalid approval responses from user declines and truncate oversized rejection messages before adding them to model context.

## Testing

- Add coverage for denial serialization, invalid app-server approval responses, dropped automatic reviews, network rejection propagation, and rejection-message truncation.

GitOrigin-RevId: d48a55643aa03c7ecfa08a8e4b669913eec5464a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d48a55643aa03c7ecfa08a8e4b669913eec5464a branch from c91a2d0 to e52c35b Compare July 20, 2026 19:24
@copyberry
copyberry Bot merged commit e52c35b into main Jul 20, 2026
18 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d48a55643aa03c7ecfa08a8e4b669913eec5464a branch July 20, 2026 19:25
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 20, 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.

4 participants