mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Notify clients when Guardian requires strict review (#39157)
## What changed - Add the experimental `autoApprovalReview/strictReviewRequired` app-server notification with the review's `threadId`, `turnId`, and `startedAtMs`. - Emit it when Guardian v2 leaves an approval review in progress because the action risk is elevated or its score is stale. - Export the notification through the Rust, TypeScript, and JSON schema surfaces and route it to the associated thread. ## Testing - Cover strict-review reason tracking for elevated and stale risk scores. - Verify that high-risk approval routing emits one notification whose identifiers and timestamp match the review-started event. GitOrigin-RevId: e65352894520bfb756c75b2c95e2e149f9767bb2
This commit is contained in:
1 parent
f6ba9110fa
commit
f5e9d66851
20 files changed
+258
-6
No files matched your search
@@ -90,6 +90,9 @@ pub(super) fn server_notification_thread_target(
|
||||
ServerNotification::ItemGuardianApprovalReviewCompleted(notification) => {
|
||||
Some(notification.thread_id.as_str())
|
||||
}
|
||||
ServerNotification::StrictReviewRequired(notification) => {
|
||||
Some(notification.thread_id.as_str())
|
||||
}
|
||||
ServerNotification::ItemCompleted(notification) => Some(notification.thread_id.as_str()),
|
||||
ServerNotification::RawResponseItemCompleted(notification) => {
|
||||
Some(notification.thread_id.as_str())
|
||||
|
||||
Reference in new issue
Block a user