fix(core): bound interim one-shot dead-code expectation

This commit is contained in:
Chris Bookholt
2026-07-02 22:41:16 -07:00
parent 00e7179f00
commit 498ca9ee04

View File

@@ -196,6 +196,13 @@ pub(crate) enum ExecApprovalRequirement {
/// Approval is required for this invocation, but the decision must not be
/// reused from or written to the session approval cache.
#[cfg_attr(not(windows), allow(dead_code))]
#[cfg_attr(
all(windows, not(test)),
expect(
dead_code,
reason = "constructed by the later stacked Windows policy layer"
)
)]
NeedsOneShotApproval { reason: Option<String> },
/// Execution forbidden for this tool call.
Forbidden { reason: String },