{"record":{"id":"52ff3ff314e95b8a","repo":"zed-industries/zed","slug":"loading-sessions-is-not-supported-by-this-agent","errorCode":null,"errorMessage":"Loading sessions is not supported by this agent.","messagePattern":"Loading sessions is not supported by this agent\\.","errorType":"validation","errorClass":"LoadError","httpStatus":null,"severity":"error","filePath":"crates/agent_servers/src/acp.rs","lineNumber":1742,"sourceCode":"    }\n\n    fn supports_session_additional_directories(&self) -> bool {\n        self.agent_capabilities\n            .session_capabilities\n            .additional_directories\n            .is_some()\n    }\n\n    fn load_session(\n        self: Rc<Self>,\n        session_id: acp::SessionId,\n        project: Entity<Project>,\n        work_dirs: PathList,\n        title: Option<SharedString>,\n        cx: &mut App,\n    ) -> Task<Result<Entity<AcpThread>>> {\n        if !self.agent_capabilities.load_session {\n            return Task::ready(Err(anyhow!(LoadError::Other(\n                \"Loading sessions is not supported by this agent.\".into()\n            ))));\n        }\n\n        let mcp_servers = mcp_servers_for_project(&project, cx);\n        self.open_or_create_session(\n            session_id,\n            project,\n            work_dirs,\n            title,\n            move |connection, session_id, directories| {\n                Box::pin(async move {\n                    let response = connection\n                        .send_request(\n                            directories.into_load_session_request(session_id.clone(), mcp_servers),\n                        )\n                        .block_task()\n                        .await","sourceCodeStart":1724,"sourceCodeEnd":1760,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/agent_servers/src/acp.rs#L1724-L1760","documentation":"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.","triggerScenarios":"Thrown at crates/agent_servers/src/acp.rs:1738 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}