From fd6635a9631b11a871c2acc86a4689e402cf51da Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Tue, 5 May 2026 19:00:35 +0300 Subject: [PATCH] fix: prevent generate button flicker during git refresh Keep Generate enabled during changed-file refreshes Preserve existing blockers for generation and commits --- packages/ui/src/components/views/GitView.tsx | 1 - packages/ui/src/components/views/git/CommitSection.tsx | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/ui/src/components/views/GitView.tsx b/packages/ui/src/components/views/GitView.tsx index d98bdef6..24cffb2c 100644 --- a/packages/ui/src/components/views/GitView.tsx +++ b/packages/ui/src/components/views/GitView.tsx @@ -2119,7 +2119,6 @@ export const GitView: React.FC = () => { onCommit={() => handleCommit({ pushAfter: false })} onCommitAndPush={() => handleCommit({ pushAfter: true })} commitAction={commitAction} - isBusy={isBusy} gitmojiEnabled={settingsGitmojiEnabled} onOpenGitmojiPicker={() => setIsGitmojiPickerOpen(true)} /> diff --git a/packages/ui/src/components/views/git/CommitSection.tsx b/packages/ui/src/components/views/git/CommitSection.tsx index 83b1ed3b..ca298838 100644 --- a/packages/ui/src/components/views/git/CommitSection.tsx +++ b/packages/ui/src/components/views/git/CommitSection.tsx @@ -25,7 +25,6 @@ interface CommitSectionProps { onCommit: () => void; onCommitAndPush: () => void; commitAction: CommitAction; - isBusy: boolean; gitmojiEnabled: boolean; onOpenGitmojiPicker: () => void; } @@ -41,7 +40,6 @@ export const CommitSection: React.FC = ({ onCommit, onCommitAndPush, commitAction, - isBusy, gitmojiEnabled, onOpenGitmojiPicker, }) => { @@ -102,8 +100,7 @@ export const CommitSection: React.FC = ({ disabled={ isGeneratingMessage || commitAction !== null || - selectedCount === 0 || - isBusy + selectedCount === 0 } type="button" aria-label={t('gitView.commit.generateAria')}