{"record":{"id":"5cb864adf562f73a","repo":"zed-industries/zed","slug":"view-commit-failed","errorCode":null,"errorMessage":"View commit failed","messagePattern":"View commit failed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/git_ui/src/git_ui.rs","lineNumber":692,"sourceCode":"                let show_result = show_future.await;\n\n                match show_result {\n                    Ok(Ok(details)) => {\n                        workspace.update_in(cx, |workspace, window, cx| {\n                            CommitView::open(\n                                details.sha.to_string(),\n                                repo.downgrade(),\n                                workspace.weak_handle(),\n                                None,\n                                None,\n                                window,\n                                cx,\n                            );\n                        })?;\n                    }\n                    Ok(Err(_)) | Err(_) => {\n                        workspace.update(cx, |workspace, cx| {\n                            let error = anyhow::anyhow!(\"View commit failed\");\n                            Self::show_git_error_toast(&git_ref_string, error, workspace, cx);\n                        });\n                    }\n                }\n\n                Ok(())\n            })\n            .detach();\n        cx.emit(DismissEvent);\n    }\n\n    fn show_git_error_toast(\n        _git_ref: &str,\n        error: anyhow::Error,\n        workspace: &mut Workspace,\n        cx: &mut Context<Workspace>,\n    ) {\n        let toast = Toast::new(NotificationId::unique::<()>(), error.to_string());","sourceCodeStart":674,"sourceCodeEnd":710,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/git_ui/src/git_ui.rs#L674-L710","documentation":"Sentinel failure in the commit-log/show flow: the `git show` future completed but the surrounding result was Err, so opening CommitView for the selected commit failed (git show failed or the commit could not be parsed).","triggerScenarios":"Thrown at crates/git_ui/src/git_ui.rs:692 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Refresh the git log — the commit may have been removed by a rebase/reset","Verify the commit exists with `git show <sha>` in the terminal","Check repository health: `git fsck` can detect a corrupted object store","Re-fetch if the commit is on a remote: `git fetch --all`"],"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-14T00:17:10.932Z"}