pub enum PermissionDeniedReasonCode {
ClassifierTranscriptTooLong,
OutsideReadsBlocked,
MemoryPaused,
AutoModeNoCheckInSession,
AutoModeStopNoCheckInSession,
AutoModeStopNoResultForCalls,
AutoModeStopNoVerdict,
Unknown(String),
}Expand description
An actionable reason behind a system/permission_denied frame
(PermissionDeniedMessage::decision_reason_code).
Variants§
ClassifierTranscriptTooLong
The auto-mode classifier’s transcript exceeded its context window.
OutsideReadsBlocked
permissions.blockReadsOutsideWorkingDirectories refused the path.
MemoryPaused
/pause-memory has memory paused.
AutoModeNoCheckInSession
Auto mode’s safety check does not run for this session, so calls that need it are refused. Another permission mode can run such a call unless only the check may allow the tool; the check can come back (CLI 2.1.319+).
AutoModeStopNoCheckInSession
The denial that ended a turn or subagent run after ten responses in a row with no verdict: the check does not run for this session (CLI 2.1.319+).
AutoModeStopNoResultForCalls
As AutoModeStopNoCheckInSession,
but the call got no result from the check (CLI 2.1.319+).
AutoModeStopNoVerdict
As AutoModeStopNoCheckInSession,
but the server returned no usable verdict, as in an outage
(CLI 2.1.319+).
Unknown(String)
A code not yet known to this version of the crate.