{"record":{"id":"79bb2f734845898d","repo":"zed-industries/zed","slug":"exited-before-logging-in","errorCode":null,"errorMessage":"exited before logging in","messagePattern":"exited before logging in","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/conversation_view.rs","lineNumber":2189,"sourceCode":"                                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))\n                                {\n                                    return anyhow::Ok(());\n                                }\n                            }\n                        }\n                    })\n                    .fuse();\n                futures::pin_mut!(logged_in);\n                futures::select_biased! {\n                    result = logged_in => {\n                        if let Err(e) = result {\n                            log::error!(\"{e}\");\n                            return Err(anyhow!(\"exited before logging in\"));\n                        }\n                    }\n                    _ = exit_status => {\n                        if !previous_attempt\n                            && project.read_with(cx, |project, _| project.is_via_remote_server())\n                            && method.0.as_ref() == GEMINI_TERMINAL_AUTH_METHOD_ID\n                        {\n                            return cx\n                                .update(|window, cx| {\n                                    Self::spawn_external_agent_login(\n                                        login,\n                                        workspace,\n                                        project.clone(),\n                                        method,\n                                        true,\n                                        window,\n                                        cx,\n                                    )","sourceCodeStart":2171,"sourceCodeEnd":2207,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/agent_ui/src/conversation_view.rs#L2171-L2207","documentation":"Error \"exited before logging in\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/agent_ui/src/conversation_view.rs:2189 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"}