zed-industries/zed · error · LoadError
Closing sessions are not supported by this agent.
Error message
Closing sessions are not supported by this agent.
What it means
Error "Closing sessions are not supported by this agent." thrown in zed-industries/zed.
Source
Thrown at crates/agent_servers/src/acp.rs:1823
config_options: response.config_options,
})
})
},
cx,
)
}
fn supports_close_session(&self) -> bool {
self.agent_capabilities.session_capabilities.close.is_some()
}
fn close_session(
self: Rc<Self>,
session_id: &acp::SessionId,
cx: &mut App,
) -> Task<Result<()>> {
if !self.supports_close_session() {
return Task::ready(Err(anyhow!(LoadError::Other(
"Closing sessions is not supported by this agent.".into()
))));
}
// If a load is still in flight, decrement its ref count. The pending
// entry is the source of truth for how many handles exist during a
// load, so we must tick it down here as well as the `sessions` entry
// that was pre-registered to receive history-replay notifications.
// Only once the pending ref count hits zero do we actually close the
// session; the load task will observe the missing sessions entry and
// fail with "session was closed before load completed".
let pending_ref_count = {
let mut pending_sessions = self.pending_sessions.borrow_mut();
pending_sessions.get_mut(session_id).map(|pending| {
pending.ref_count = pending.ref_count.saturating_sub(1);
pending.ref_count
})
};View on GitHub (pinned to bc538def45)
When it happens
Trigger: Thrown at crates/agent_servers/src/acp.rs:1823 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@bc538def45 (2026-08-16).
Data as JSON: /api/errors/2d56c511563145c8.
Report an issue: GitHub.