zed-industries/zed · error
authorization channel closed
Error message
authorization channel closed
What it means
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.
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)
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at crates/agent/src/thread.rs:5908 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/6fc49d4633fe6f61.
Report an issue: GitHub.
Appendix: source
Thrown at crates/agent/src/thread.rs:6040
})
}
/// Confirm, before running a command whose sandbox will contain a Windows
/// drive (DrvFs) path, that the user accepts the weaker integrity
/// guarantees. This is a transient gate *in front of* the normal sandbox
/// flow — it is never persisted or recorded as a grant; the only way to
/// stop it recurring is to disable `warn_ntfs_grants` in settings (offered
/// via the banner's gear). Returns `Ok(())` on "Continue" (after which the
/// caller proceeds to any escalation prompt) and `Err` on "Abort".
pub(crate) fn authorize_windows_fs_warning(&self, cx: &mut App) -> Task<Result<()>> {
// If the warning is already disabled, don't prompt.
if !AgentSettings::get_global(cx)
.sandbox_permissions
.warn_ntfs_grants
{
return Task::ready(Ok(()));
}
let details = acp_thread::SandboxAuthorizationDetails {
command: None,
network_hosts: Vec::new(),
network_all_hosts: false,
allow_fs_write_all: false,
unsandboxed: false,
write_paths: Vec::new(),
warn_windows_fs: true,
reason: String::new(),
};
let options = acp_thread::PermissionOptions::Flat(vec![
acp::PermissionOption::new(
acp::PermissionOptionId::new(acp_thread::SandboxPermission::AllowOnce.as_id()),
"Continue",
acp::PermissionOptionKind::AllowOnce,
),
acp::PermissionOption::new(
acp::PermissionOptionId::new(acp_thread::SandboxPermission::Deny.as_id()),View on GitHub (pinned to 916fc2b8cb)