zed-industries/zed · error

Login command terminated without exit status

Error message

Login command terminated without exit status

What it means

Raised in the external-agent login flow when no success patterns are configured for the auth method, so the code falls back to waiting for the login task's exit status — and the terminal task terminated without reporting any exit status. The offending condition is a terminal task that ended abnormally (e.g. killed or the terminal was closed), leaving neither a success pattern nor an exit code to check.

Solutions

  1. Re-run the login command and keep the terminal open until it exits
  2. Check for signals or resource limits that killed the login process
  3. Complete the login manually in an external terminal if the in-editor task keeps dying
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/agent_ui/src/conversation_view.rs:2158 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/9e942334be707857. Report an issue: GitHub.

Appendix: source

Thrown at crates/agent_ui/src/conversation_view.rs:2165

                    });

                    if let Some(resolve_task) = resolved_node_runtime {
                        if let Ok(node_path) = resolve_task.await {
                            task.command = Some(node_path.to_string_lossy().to_string());
                        }
                    }
                }
            }
            task.shell = task::Shell::WithArguments {
                program: task.command.take().expect("login command should be set"),
                args: std::mem::take(&mut task.args),
                title_override: None,
            };

            let terminal = terminal_panel
                .update_in(cx, |terminal_panel, window, cx| {
                    terminal_panel.spawn_task(&task, window, cx)
                })?
                .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!(

View on GitHub (pinned to 916fc2b8cb)