{"record":{"id":"ac6dc55c81ba304c","repo":"zed-industries/zed","slug":"connection-reset","errorCode":null,"errorMessage":"connection reset","messagePattern":"connection reset","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/client/src/client.rs","lineNumber":1075,"sourceCode":"                    is_staff_tx.send(state.is_staff).log_err();\n                }\n            })\n            .detach();\n        });\n\n        let credentials = self.sign_in(try_provider, cx).await?;\n\n        self.connect_to_cloud(cx);\n\n        cx.update(move |cx| {\n            cx.spawn({\n                let client = self.clone();\n                async move |cx| {\n                    let is_staff = is_staff_rx.await?;\n                    if is_staff {\n                        match client.connect_with_credentials(credentials, cx).await {\n                            ConnectionResult::Timeout => Err(anyhow!(\"connection timed out\")),\n                            ConnectionResult::ConnectionReset => Err(anyhow!(\"connection reset\")),\n                            ConnectionResult::Result(result) => {\n                                result.context(\"client auth and connect\")\n                            }\n                        }\n                    } else {\n                        Ok(())\n                    }\n                }\n            })\n            .detach_and_log_err(cx);\n        });\n\n        Ok(())\n    }\n\n    pub async fn connect(\n        self: &Arc<Self>,\n        try_provider: bool,","sourceCodeStart":1057,"sourceCodeEnd":1093,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/client/src/client.rs#L1057-L1093","documentation":"This sentinel error is produced when the authenticated staff connection attempt ends with ConnectionResult::Reset — the TCP/websocket connection was dropped mid-handshake; it distinguishes a connection reset from timeouts or credential rejection in the staff sign-in path.","triggerScenarios":"Thrown at crates/client/src/client.rs:1075 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the connection — resets are frequently transient network interruptions","Check for proxy/VPN interference with the zed.cloud endpoint","Fall back to the regular connection path if staff connectivity keeps failing"],"exampleFix":null,"handlingStrategy":"retry","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-14T00:17:10.932Z"}