{"record":{"id":"92444df8727a7683","repo":"zed-industries/zed","slug":"failed-to-send-sandbox-authorization-error","errorCode":null,"errorMessage":"Failed to send sandbox authorization: {error}","messagePattern":"Failed to send sandbox authorization: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent/src/thread.rs","lineNumber":6022,"sourceCode":"                        );\n                    }\n                    _ = settings_changed.fuse() => {\n                        if cx.update(|cx| Self::sandbox_request_covered_by_grants(\n                            &request,\n                            &sandbox_grants,\n                            cx,\n                        )) {\n                            drop(response_rx);\n                            stream.resolve_tool_call_authorization(\n                                &tool_call_id,\n                                auto_allow_outcome.clone(),\n                            );\n                            return Ok(());\n                        }\n                    }\n                }\n            }\n        })\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","sourceCodeStart":6004,"sourceCodeEnd":6040,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent/src/thread.rs#L6004-L6040","documentation":"While setting up a sandboxed terminal tool call, sending the ToolCallAuthorization event (sandbox permission prompt) over the event stream failed; the send error is interpolated, so authorization cannot proceed.","triggerScenarios":"Thrown at crates/agent/src/thread.rs:5890 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The unbounded_send of the ToolCallAuthorization event failed because the event stream receiver is gone (thread/cancelled); abort the pending tool call","Retry the tool call in a live thread if the stream was dropped due to a transient teardown","Log and surface the error to the user instead of blocking on an authorization that can never arrive"],"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"}