{"record":{"id":"ec88edc2f6080e03","repo":"zed-industries/zed","slug":"sign-in-did-not-complete-current-status","errorCode":null,"errorMessage":"sign-in did not complete: {current_status:?}","messagePattern":"sign-in did not complete: (.+?)","errorType":"exception","errorClass":"AuthenticateError","httpStatus":null,"severity":"error","filePath":"crates/language_models/src/provider/cloud.rs","lineNumber":350,"sourceCode":"        }\n        let mut status = self.state.read(cx).client.status();\n        let mut current_user = self.state.read(cx).user_store.read(cx).watch_current_user();\n        if !status.borrow().is_signing_in() {\n            return Task::ready(Ok(()));\n        }\n        cx.background_spawn(async move {\n            while status.borrow().is_signing_in() {\n                status.next().await;\n            }\n            while current_user.borrow().is_none() {\n                let current_status = *status.borrow();\n                if !matches!(\n                    current_status,\n                    client::Status::Authenticated\n                        | client::Status::Reauthenticated\n                        | client::Status::Connected { .. }\n                ) {\n                    return Err(AuthenticateError::Other(anyhow!(\n                        \"sign-in did not complete: {current_status:?}\"\n                    )));\n                }\n                futures::select_biased! {\n                    _ = current_user.next().fuse() => {},\n                    _ = status.next().fuse() => {},\n                }\n            }\n            Ok(())\n        })\n    }\n\n    fn settings_view(&self, cx: &mut App) -> Option<ProviderSettingsView> {\n        let state = self.state.read(cx);\n        let user_store = state.user_store.read(cx);\n        let is_zed_model_provider_enabled = user_store\n            .current_organization_configuration()\n            .map_or(true, |config| config.is_zed_model_provider_enabled);","sourceCodeStart":332,"sourceCodeEnd":368,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/language_models/src/provider/cloud.rs#L332-L368","documentation":"authenticate spawns a watcher that waits for the client status to leave the signing-in state and for a current user to appear; if the sign-in flow ends in any terminal state other than signed-in (or the user watch never resolves), the wait gives up with this error. It means the sign-in did not finish successfully, not a transport failure.","triggerScenarios":"Thrown at crates/language_models/src/provider/cloud.rs:350 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the Zed Cloud sign-in flow","Check network/proxy connectivity to Zed's cloud services","Sign in via the account menu and complete the browser flow"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}