Files
codex/codex-rs/ext
felixxia-oai 9938ffba35 Notify extensions when Guardian policy changes the approvals reviewer (#63995)
## Why

A Guardian policy refresh can switch a running thread from Auto Review
to user approvals. Without a config change notification, Guardian's
shadow reviewers can stay active after that switch.

## What changed

Notify config contributors with the previous and updated effective
configs when a policy refresh changes the approvals reviewer. Send the
notification after releasing the session locks, even if the refreshed
policy blocks the current model.

## Testing

Extend the Guardian shadow test to refresh policy on a root thread and
its child. Verify that both receive the reviewer change, that switching
to user approvals cancels their shadow reviewers, and that allowing
Auto Review again restores the requested reviewer.

GitOrigin-RevId: fd61acf7fb161be341a63a2e867582e6c308d0dc
2026-11-25 22:42:49 +00:00
..