zed-industries/zed · error · LoadError
Loading sessions is not supported by this agent.
Error message
Loading sessions is not supported by this agent.
What it means
Capability sentinel returned by the ACP connection's load_session when the connected agent server did not advertise the load_session capability in its initialize response. The request is rejected up front with a ready error task instead of sending an RPC the server cannot handle; the faulting input is any load_session call against this server.
Source
Thrown at crates/agent_servers/src/acp.rs:1742
}
fn supports_session_additional_directories(&self) -> bool {
self.agent_capabilities
.session_capabilities
.additional_directories
.is_some()
}
fn load_session(
self: Rc<Self>,
session_id: acp::SessionId,
project: Entity<Project>,
work_dirs: PathList,
title: Option<SharedString>,
cx: &mut App,
) -> Task<Result<Entity<AcpThread>>> {
if !self.agent_capabilities.load_session {
return Task::ready(Err(anyhow!(LoadError::Other(
"Loading sessions is not supported by this agent.".into()
))));
}
let mcp_servers = mcp_servers_for_project(&project, cx);
self.open_or_create_session(
session_id,
project,
work_dirs,
title,
move |connection, session_id, directories| {
Box::pin(async move {
let response = connection
.send_request(
directories.into_load_session_request(session_id.clone(), mcp_servers),
)
.block_task()
.awaitView on GitHub (pinned to 9d272b0363)
Solutions
- Use resume_session instead if the agent supports resuming without history
- Start a new session rather than loading a previous one
- Upgrade or switch to an agent implementation that advertises load_session support
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/agent_servers/src/acp.rs:1738 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@9d272b0363 (2026-08-20).
Data as JSON: /api/errors/52ff3ff314e95b8a.
Report an issue: GitHub.