zed-industries/zed · error
Logout is not supported by this agent.
Error message
Logout is not supported by this agent.
What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/agent_servers/src/acp.rs:1940 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/47107e2da0aabfe1.
Report an issue: GitHub.
Appendix: source
Thrown at crates/agent_servers/src/acp.rs:1893
}
fn authenticate(&self, method_id: acp::AuthMethodId, cx: &mut App) -> Task<Result<()>> {
let conn = self.connection.clone();
cx.foreground_executor().spawn(async move {
conn.send_request(acp::AuthenticateRequest::new(method_id))
.block_task()
.await?;
Ok(())
})
}
fn supports_logout(&self) -> bool {
self.agent_capabilities.auth.logout.is_some()
}
fn logout(&self, cx: &mut App) -> Task<Result<()>> {
if !self.supports_logout() {
return Task::ready(Err(anyhow!("Logout is not supported by this agent.")));
}
let conn = self.connection.clone();
cx.foreground_executor().spawn(async move {
conn.send_request(acp::LogoutRequest::new())
.block_task()
.await?;
Ok(())
})
}
fn prompt(
&self,
params: acp::PromptRequest,
cx: &mut App,
) -> Task<Result<acp::PromptResponse>> {
let conn = self.connection.clone();
let sessions = self.sessions.clone();View on GitHub (pinned to 916fc2b8cb)