{"record":{"id":"70060bb2f3a817ac","repo":"zed-industries/zed","slug":"err","errorCode":null,"errorMessage":"{err:?}","messagePattern":"\\{err:\\?\\}","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/copilot/src/copilot.rs","lineNumber":810,"sourceCode":"                                    this.update_sign_in_status(\n                                        request::SignInStatus::NotSignedIn,\n                                        cx,\n                                    );\n                                    Err(Arc::new(error))\n                                }\n                            })?\n                        })\n                        .shared();\n                    server.sign_in_status = SignInStatus::SigningIn {\n                        prompt: None,\n                        task: task.clone(),\n                    };\n                    cx.notify();\n                    task\n                }\n            };\n\n            cx.background_spawn(task.map_err(|err| anyhow!(\"{err:?}\")))\n        } else {\n            // If we're downloading, wait until download is finished\n            // If we're in a stuck state, display to the user\n            Task::ready(Err(anyhow!(\"copilot hasn't started yet\")))\n        }\n    }\n\n    pub fn sign_out(&mut self, cx: &mut Context<Self>) -> Task<Result<()>> {\n        self.update_sign_in_status(request::SignInStatus::NotSignedIn, cx);\n        match &self.server {\n            CopilotServer::Running(RunningCopilotServer { lsp: server, .. }) => {\n                let request_timeout = ProjectSettings::get_global(cx)\n                    .global_lsp_settings\n                    .get_request_timeout();\n\n                let server = server.clone();\n                cx.background_spawn(async move {\n                    server","sourceCodeStart":792,"sourceCodeEnd":828,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/copilot/src/copilot.rs#L792-L828","documentation":"In sign_in, the device/token exchange task failed and its error (an Arc<str> from the sign-in flow) is re-wrapped with Debug formatting; the underlying cause is shown in the message. This surfaces whatever broke the sign-in attempt (network, GitHub denial, token rejection).","triggerScenarios":"Thrown at crates/copilot/src/copilot.rs:810 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the wrapped error text to identify the failing sign-in step","Check GitHub connectivity and credentials, then retry sign-in"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}