zed-industries/zed · error
Windows-drive write aborted by user
Error message
Windows-drive write aborted by user
What it means
The user explicitly declined the Windows-drive write escalation prompt. This is a user-decision error, not a system fault: the sandboxed write outside allowed locations was refused, so the tool must stop the operation.
Solutions
- Do not retry the same write; the user declined it deliberately
- Ask the user to adjust sandbox settings or grant access if the write is genuinely needed
- Re-target the operation to an allowed (worktree/sandboxed) path
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/agent/src/thread.rs:6017 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/23c2c842cff30def.
Report an issue: GitHub.
Appendix: source
Thrown at crates/agent/src/thread.rs:6150
);
match acp_thread::SandboxPermission::from_id(outcome.option_id.0.as_ref()) {
Some(acp_thread::SandboxPermission::AllowOnce) => Ok(()),
Some(acp_thread::SandboxPermission::AllowThread) => {
sandbox_grants.borrow_mut().record(request);
Self::persist_thread_grants(&thread, cx);
Ok(())
}
Some(acp_thread::SandboxPermission::AllowAlways) => {
Self::persist_sandbox_always_permission(request, fs, cx);
Ok(())
}
Some(acp_thread::SandboxPermission::Deny) => {
Err(anyhow!("Permission to run tool denied by user"))
}
None => {
let other = outcome.option_id.0.as_ref();
debug_assert!(false, "unexpected sandbox permission option_id: {other}");
Err(anyhow!("Permission to run tool denied by user"))
}
}
}
fn persist_sandbox_always_permission(
request: &SandboxRequest,
fs: Option<Arc<dyn Fs>>,
cx: &AsyncApp,
) {
let Some(fs) = fs else {
log::error!(
"Cannot persist \"allow always\" sandbox permission: no filesystem available"
);
return;
};
let request = request.clone();View on GitHub (pinned to 916fc2b8cb)