pub struct PermissionPromptRequestCommands {
pub assisted_approval: Option<PermissionAssistedApproval>,
pub can_offer_session_approval: bool,
pub command_identifiers: Vec<String>,
pub full_command_text: String,
pub intention: String,
pub kind: PermissionPromptRequestCommandsKind,
pub managed_approval_required: Option<bool>,
pub request_sandbox_bypass: Option<bool>,
pub request_sandbox_bypass_reason: Option<String>,
pub request_sandbox_permissive: Option<bool>,
pub tool_call_id: Option<String>,
pub warning: Option<String>,
}Expand description
Shell command permission prompt
Fields§
§assisted_approval: Option<PermissionAssistedApproval>Assisted-approval judge information for this request; present only in assisted mode.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
can_offer_session_approval: boolWhether the UI can offer session-wide approval for this command pattern
command_identifiers: Vec<String>Command identifiers covered by this approval prompt
full_command_text: StringThe complete shell command text to be executed
intention: StringHuman-readable description of what the command intends to do
kind: PermissionPromptRequestCommandsKindPrompt kind discriminator
managed_approval_required: Option<bool>Whether managed policy requires a human response and forbids host auto-approval
request_sandbox_bypass: Option<bool>True when the shell command is requesting sandbox escalation. This is a request, not a grant.
request_sandbox_bypass_reason: Option<String>Reason for the sandbox escalation request.
request_sandbox_permissive: Option<bool>True when the escalation is a permissive retry that keeps the sandbox and network policy attached while recording file and process accesses instead of blocking them.
tool_call_id: Option<String>Tool call ID that triggered this permission request
warning: Option<String>Optional warning message about risks of running this command