pub struct PermissionCompletedData {
pub blocker: Option<TaskBlocker>,
pub decision_source: Option<PermissionDecisionSource>,
pub recovery_episode_id: Option<String>,
pub request_id: RequestId,
pub result: PermissionResult,
pub tool_call_id: Option<String>,
}Expand description
Session event “permission.completed”. Permission request completion notification signaling UI dismissal
Fields§
§blocker: Option<TaskBlocker>Atomic structured blocked outcome when this permission response ended an Autopilot recovery episode unsuccessfully
decision_source: Option<PermissionDecisionSource>Who decided this permission request. Absent on completions recorded before this field existed, which consumers must treat as “not a human decision” rather than assuming one. Authorization records are minted only for human_response; an assisted-approval verdict, a host policy, an unattended fallback, and a hook resolution all produce the same result a person does, so this is the only field that distinguishes them.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
recovery_episode_id: Option<String>Permission-recovery episode settled by this response, when the request was escalated by Autopilot
request_id: RequestIdRequest ID of the resolved permission request; clients should dismiss any UI for this request
result: PermissionResultThe result of the permission request
tool_call_id: Option<String>Optional tool call ID associated with this permission prompt; clients may use it to correlate UI created from tool-scoped prompts