{"record":{"id":"6fc49d4633fe6f61","repo":"zed-industries/zed","slug":"authorization-channel-closed","errorCode":null,"errorMessage":"authorization channel closed","messagePattern":"authorization channel closed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent/src/thread.rs","lineNumber":6040,"sourceCode":"        })\n    }\n\n    /// Confirm, before running a command whose sandbox will contain a Windows\n    /// drive (DrvFs) path, that the user accepts the weaker integrity\n    /// guarantees. This is a transient gate *in front of* the normal sandbox\n    /// flow — it is never persisted or recorded as a grant; the only way to\n    /// stop it recurring is to disable `warn_ntfs_grants` in settings (offered\n    /// via the banner's gear). Returns `Ok(())` on \"Continue\" (after which the\n    /// caller proceeds to any escalation prompt) and `Err` on \"Abort\".\n    pub(crate) fn authorize_windows_fs_warning(&self, cx: &mut App) -> Task<Result<()>> {\n        // If the warning is already disabled, don't prompt.\n        if !AgentSettings::get_global(cx)\n            .sandbox_permissions\n            .warn_ntfs_grants\n        {\n            return Task::ready(Ok(()));\n        }\n\n        let details = acp_thread::SandboxAuthorizationDetails {\n            command: None,\n            network_hosts: Vec::new(),\n            network_all_hosts: false,\n            allow_fs_write_all: false,\n            unsandboxed: false,\n            write_paths: Vec::new(),\n            warn_windows_fs: true,\n            reason: String::new(),\n        };\n        let options = acp_thread::PermissionOptions::Flat(vec![\n            acp::PermissionOption::new(\n                acp::PermissionOptionId::new(acp_thread::SandboxPermission::AllowOnce.as_id()),\n                \"Continue\",\n                acp::PermissionOptionKind::AllowOnce,\n            ),\n            acp::PermissionOption::new(\n                acp::PermissionOptionId::new(acp_thread::SandboxPermission::Deny.as_id()),","sourceCodeStart":6022,"sourceCodeEnd":6058,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent/src/thread.rs#L6022-L6058","documentation":"Error mapping in the sandbox authorization flow: the oneshot response_rx was dropped before a decision arrived, meaning the UI side (or authorizing party) disappeared while a sandbox permission prompt was pending.","triggerScenarios":"Thrown at crates/agent/src/thread.rs:5908 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Abort the tool call; no authorization will ever arrive on the closed channel","Re-issue the tool call so a fresh authorization request is created","Investigate why the authorizing UI dropped the prompt (window closed, thread cancelled)"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}