mirror of
https://github.com/openai/codex.git
synced 2026-05-02 18:37:01 +00:00
representing guardian review timeouts in protocol types (#17381)
## Summary - Add `TimedOut` to Guardian/review carrier types: - `ReviewDecision::TimedOut` - `GuardianAssessmentStatus::TimedOut` - app-server v2 `GuardianApprovalReviewStatus::TimedOut` - Regenerate app-server JSON/TypeScript schemas for the new wire shape. - Wire the new status through core/app-server/TUI mappings with conservative fail-closed handling. - Keep `TimedOut` non-user-selectable in the approval UI. **Does not change runtime behavior yet; emitting `TimeOut` and parent-model timeout messaging will come in followup PRs**
This commit is contained in:
@@ -3494,6 +3494,9 @@ pub enum ReviewDecision {
|
||||
#[default]
|
||||
Denied,
|
||||
|
||||
/// Automatic approval review timed out before reaching a decision.
|
||||
TimedOut,
|
||||
|
||||
/// User has denied this command and the agent should not do anything until
|
||||
/// the user's next command.
|
||||
Abort,
|
||||
@@ -3514,6 +3517,7 @@ impl ReviewDecision {
|
||||
NetworkPolicyRuleAction::Deny => "denied_with_network_policy_deny",
|
||||
},
|
||||
ReviewDecision::Denied => "denied",
|
||||
ReviewDecision::TimedOut => "timed_out",
|
||||
ReviewDecision::Abort => "abort",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user