Skip to content

Fix diff sidebar spinner pulsing on background refresh#17

Merged
nicosuave merged 1 commit intomainfrom
nicosuave/fix-sidebar-pulse
Feb 26, 2026
Merged

Fix diff sidebar spinner pulsing on background refresh#17
nicosuave merged 1 commit intomainfrom
nicosuave/fix-sidebar-pulse

Conversation

@nicosuave
Copy link
Member

The 2-second poll loop and file watcher in GitDiffSidebarState were unconditionally setting isLoading = true on every performRefresh call. Since the sidebar view renders a ProgressView spinner whenever isLoading is true, this caused a visible pulse every few seconds. Now the loading indicator is only shown for forced/user-initiated refreshes (opening the panel, switching worktrees, stage/unstage), while background poll and watch refreshes update silently.

The 2-second poll and file watcher were setting isLoading on every
cycle, causing a visible spinner pulse in the sidebar. Only show the
loading indicator for forced (user-initiated) refreshes now.
@nicosuave nicosuave merged commit ba73b8f into main Feb 26, 2026
116 of 118 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant