{"record":{"id":"9e942334be707857","repo":"zed-industries/zed","slug":"login-command-terminated-without-exit-status","errorCode":null,"errorMessage":"Login command terminated without exit status","messagePattern":"Login command terminated without exit status","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/conversation_view.rs","lineNumber":2158,"sourceCode":"                \"claude-login\" | GEMINI_TERMINAL_AUTH_METHOD_ID => vec![\n                    \"Login successful\".to_string(),\n                    \"Type your message\".to_string(),\n                ],\n                _ => Vec::new(),\n            };\n            if success_patterns.is_empty() {\n                // No success patterns specified: wait for the process to exit and check exit code\n                let exit_status = terminal\n                    .read_with(cx, |terminal, cx| terminal.wait_for_completed_task(cx))?\n                    .await;\n\n                match exit_status {\n                    Some(status) if status.success() => Ok(()),\n                    Some(status) => Err(anyhow!(\n                        \"Login command failed with exit code: {:?}\",\n                        status.code()\n                    )),\n                    None => Err(anyhow!(\"Login command terminated without exit status\")),\n                }\n            } else {\n                // Look for specific output patterns to detect successful login\n                let mut exit_status = terminal\n                    .read_with(cx, |terminal, cx| terminal.wait_for_completed_task(cx))?\n                    .fuse();\n\n                let logged_in = cx\n                    .spawn({\n                        let terminal = terminal.clone();\n                        async move |cx| {\n                            loop {\n                                cx.background_executor().timer(Duration::from_secs(1)).await;\n                                let content =\n                                    terminal.update(cx, |terminal, _cx| terminal.get_content())?;\n                                if success_patterns\n                                    .iter()\n                                    .any(|pattern| content.contains(pattern))","sourceCodeStart":2140,"sourceCodeEnd":2176,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/agent_ui/src/conversation_view.rs#L2140-L2176","documentation":"Error \"Login command terminated without exit status\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/agent_ui/src/conversation_view.rs:2158 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bc538def4545534201bbfcac4e95ac34ea6501b6","analyzedAt":"2026-08-16T07:30:46.435Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}