Skip to content

Commit 3895ddd

Browse files
authored
Clarify guardian timeout guidance (openai#17521)
## Summary - update the guardian timeout guidance to say permission approval review timed out - simplify the retry guidance to say retry once or ask the user for guidance or explicit approval ## Testing - cargo test -p codex-core guardian_timeout_message_distinguishes_timeout_from_policy_denial - cargo test -p codex-core guardian_review_decision_maps_to_mcp_tool_decision
1 parent ba839c2 commit 3895ddd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

codex-rs/core/src/guardian/review.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ const GUARDIAN_REJECTION_INSTRUCTIONS: &str = concat!(
3939
);
4040

4141
const GUARDIAN_TIMEOUT_INSTRUCTIONS: &str = concat!(
42-
"The automatic approval review did not finish before its deadline. ",
42+
"The automatic permission approval review did not finish before its deadline. ",
4343
"Do not assume the action is unsafe based on the timeout alone. ",
44-
"You may retry once with a narrower or simpler request, or ask the user for guidance or explicit approval.",
44+
"You may retry once, or ask the user for guidance or explicit approval.",
4545
);
4646

4747
pub(crate) fn new_guardian_review_id() -> String {

0 commit comments

Comments
 (0)