zed-industries/zed · error · anyhow::Error
Login command failed with exit code: {:?}
Error message
Login command failed with exit code: {:?} What it means
Error "Login command failed with exit code: {:?}" thrown in zed-industries/zed.
Source
Thrown at crates/agent_ui/src/conversation_view.rs:2154
})?
.await?;
let success_patterns = match method.0.as_ref() {
"claude-login" | GEMINI_TERMINAL_AUTH_METHOD_ID => vec![
"Login successful".to_string(),
"Type your message".to_string(),
],
_ => Vec::new(),
};
if success_patterns.is_empty() {
// No success patterns specified: wait for the process to exit and check exit code
let exit_status = terminal
.read_with(cx, |terminal, cx| terminal.wait_for_completed_task(cx))?
.await;
match exit_status {
Some(status) if status.success() => Ok(()),
Some(status) => Err(anyhow!(
"Login command failed with exit code: {:?}",
status.code()
)),
None => Err(anyhow!("Login command terminated without exit status")),
}
} else {
// Look for specific output patterns to detect successful login
let mut exit_status = terminal
.read_with(cx, |terminal, cx| terminal.wait_for_completed_task(cx))?
.fuse();
let logged_in = cx
.spawn({
let terminal = terminal.clone();
async move |cx| {
loop {
cx.background_executor().timer(Duration::from_secs(1)).await;
let content =View on GitHub (pinned to bc538def45)
When it happens
Trigger: Thrown at crates/agent_ui/src/conversation_view.rs:2154 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@bc538def45 (2026-08-16).
Data as JSON: /api/errors/ff27173a9da14a63.
Report an issue: GitHub.