From c2699c666ccee395b25b0b48885787ca165840b9 Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Wed, 1 Apr 2026 20:16:44 -0700 Subject: [PATCH] fix: guard guardian_command_source_tool_name with cfg(unix) (#16498) This currently contributing to `rust-ci-full.yml` being red on `main` for windows lint builds due to the cargo/bazel coverage gap that I'm working on. Hopefully this gets us back on track. --- codex-rs/core/src/guardian/approval_request.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/core/src/guardian/approval_request.rs b/codex-rs/core/src/guardian/approval_request.rs index 250ed7e92..b89d020ca 100644 --- a/codex-rs/core/src/guardian/approval_request.rs +++ b/codex-rs/core/src/guardian/approval_request.rs @@ -160,6 +160,7 @@ fn command_assessment_action( } } +#[cfg(unix)] fn guardian_command_source_tool_name(source: GuardianCommandSource) -> &'static str { match source { GuardianCommandSource::Shell => "shell",