{"record":{"id":"5abf611f0c02cc73","repo":"zed-industries/zed","slug":"resuming-sessions-is-not-supported-by-this-agent","errorCode":null,"errorMessage":"Resuming sessions is not supported by this agent.","messagePattern":"Resuming sessions is not supported by this agent\\.","errorType":"validation","errorClass":"LoadError","httpStatus":null,"severity":"error","filePath":"crates/agent_servers/src/acp.rs","lineNumber":1786,"sourceCode":"            cx,\n        )\n    }\n\n    fn resume_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\n            .agent_capabilities\n            .session_capabilities\n            .resume\n            .is_none()\n        {\n            return Task::ready(Err(anyhow!(LoadError::Other(\n                \"Resuming 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\n                                .into_resume_session_request(session_id.clone(), mcp_servers),\n                        )\n                        .block_task()","sourceCodeStart":1768,"sourceCodeEnd":1804,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/agent_servers/src/acp.rs#L1768-L1804","documentation":"Capability sentinel returned by the ACP connection's resume_session when the agent server's session_capabilities.resume is None, i.e. the server did not advertise session resumption in its initialize response. Any resume_session call against such a server fails immediately with a ready error task; the fault is invoking resume on a non-supporting agent.","triggerScenarios":"Thrown at crates/agent_servers/src/acp.rs:1782 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start a fresh session instead of resuming","Use load_session if the agent advertises loading with full history","Choose an agent that declares resume capability in its session capabilities"],"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"}