From 5b95940aeabd414452cf3b401000a755e76efbcf Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Tue, 24 Mar 2026 19:03:15 -0700 Subject: [PATCH] Use guardian denial message for execve reviews Co-authored-by: Codex --- codex-rs/core/src/tools/runtimes/shell/unix_escalation.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/tools/runtimes/shell/unix_escalation.rs b/codex-rs/core/src/tools/runtimes/shell/unix_escalation.rs index fbf3e7b7ad..79e2e766fb 100644 --- a/codex-rs/core/src/tools/runtimes/shell/unix_escalation.rs +++ b/codex-rs/core/src/tools/runtimes/shell/unix_escalation.rs @@ -6,6 +6,7 @@ use crate::exec::ExecCapturePolicy; use crate::exec::ExecExpiration; use crate::exec::ExecToolCallOutput; use crate::exec::is_likely_sandbox_denied; +use crate::guardian::GUARDIAN_REJECTION_MESSAGE; use crate::guardian::GuardianApprovalDecision; use crate::guardian::GuardianApprovalRequest; use crate::guardian::review_approval_request; @@ -552,7 +553,7 @@ impl CoreShellActionProvider { APPROVAL_REVIEW_TIMEOUT_MESSAGE.to_string(), )), GuardianApprovalDecision::Denied => { - EscalationDecision::deny(Some("User denied execution".to_string())) + EscalationDecision::deny(Some(GUARDIAN_REJECTION_MESSAGE.to_string())) } GuardianApprovalDecision::Aborted => { EscalationDecision::deny(Some("User cancelled execution".to_string()))