From 63dc3ce01996ab9d323b695b7e4576e69a9d8608 Mon Sep 17 00:00:00 2001 From: Haileyesus Date: Mon, 23 Feb 2026 11:47:29 +0300 Subject: [PATCH] fix(git-panel): add error handling for commit diff fetch --- src/components/git-panel/view/history/HistoryView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/git-panel/view/history/HistoryView.tsx b/src/components/git-panel/view/history/HistoryView.tsx index 0ffbdf6..75c81e8 100644 --- a/src/components/git-panel/view/history/HistoryView.tsx +++ b/src/components/git-panel/view/history/HistoryView.tsx @@ -38,7 +38,9 @@ export default function HistoryView({ // Load commit diff lazily only the first time a commit is expanded. if (isExpanding && !commitDiffs[commitHash]) { - void onFetchCommitDiff(commitHash); + onFetchCommitDiff(commitHash).catch((err) => { + console.error('Failed to fetch commit diff:', err); + }); } }, [commitDiffs, expandedCommits, onFetchCommitDiff, setExpandedCommits],