{"record":{"id":"47107e2da0aabfe1","repo":"zed-industries/zed","slug":"logout-is-not-supported-by-this-agent","errorCode":null,"errorMessage":"Logout is not supported by this agent.","messagePattern":"Logout is not supported by this agent\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent_servers/src/acp.rs","lineNumber":1893,"sourceCode":"    }\n\n    fn authenticate(&self, method_id: acp::AuthMethodId, cx: &mut App) -> Task<Result<()>> {\n        let conn = self.connection.clone();\n        cx.foreground_executor().spawn(async move {\n            conn.send_request(acp::AuthenticateRequest::new(method_id))\n                .block_task()\n                .await?;\n            Ok(())\n        })\n    }\n\n    fn supports_logout(&self) -> bool {\n        self.agent_capabilities.auth.logout.is_some()\n    }\n\n    fn logout(&self, cx: &mut App) -> Task<Result<()>> {\n        if !self.supports_logout() {\n            return Task::ready(Err(anyhow!(\"Logout is not supported by this agent.\")));\n        }\n\n        let conn = self.connection.clone();\n        cx.foreground_executor().spawn(async move {\n            conn.send_request(acp::LogoutRequest::new())\n                .block_task()\n                .await?;\n            Ok(())\n        })\n    }\n\n    fn prompt(\n        &self,\n        params: acp::PromptRequest,\n        cx: &mut App,\n    ) -> Task<Result<acp::PromptResponse>> {\n        let conn = self.connection.clone();\n        let sessions = self.sessions.clone();","sourceCodeStart":1875,"sourceCodeEnd":1911,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent_servers/src/acp.rs#L1875-L1911","documentation":"Capability sentinel returned by logout when the agent server's auth capabilities do not include a logout method (auth.logout is None). The connection rejects the call immediately with a ready error rather than issuing an unsupported RPC; the faulting input is any logout call against a server that never advertised logout.","triggerScenarios":"Thrown at crates/agent_servers/src/acp.rs:1940 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check supports_logout() before invoking logout","Log out via the agent's own CLI or external mechanism if the protocol lacks logout","Use an agent server that advertises auth logout capability"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}