Skip to content

[BUG] Auto Fetch changes active selection in the git log window and content inside the diff viewer #652

Description

@kool79

Describe the bug
After Auto Fetch is triggered, the current commit selection in Git Log is reset. Any manually selected commits (including multi-selection from different branches) are cleared and replaced with the latest commit from the currently selected branch. As a result, the “Repository Diff” window is updated to reflect this new selection, losing the originally selected diff context.
Additionally, I have occasionally noticed other IntelliJ IDEA popups/windows (code completion, documentation popup, etc.) closing unexpectedly. I suspect (but have not confirmed) that this may also happen during Auto Fetch.

Steps To Reproduce

Preconditions:

  • Project has 2 separate branches with different commits: branchA and branchB
  • Auto Fetch is enabled with a minimum interval (5 minutes)

Steps:

  1. Open Git Log and select branchA in the branches tree
  2. In the commits list, select one or several commits from branchB (Ctrl/Shift + click)
  3. Double-click any file on the right side to open diff in the “Repository Diff” window
  4. Wait for Auto Fetch to occur (you can see the notification in the Notifications tool window)

Expected behavior:

  • The “Repository Diff” window remains open
  • The selected commits in the Git Log stay unchanged

Actual behavior:

  • After Auto Fetch, the commit selection in Git Log is changed
  • Instead of the manual selection from step 2, the last commit from branchA becomes selected
  • Multi-selection is cleared
  • The “Repository Diff” content is updated and now shows diff for the last commit from branchA
  • Sometimes the diff widow gets closed (maybe when the last commit from the branchA is the 'merge' commit)

Additional notes:

I use this diff window to review cumulative changes from other branches before merging into my current branch (usually by selecting all commits to see the full diff). This behavior interrupts the workflow and forces me to re-select all commits again.

This behavior is very disruptive. If it is expected, user should be notified about that when enabling the “Auto Fetch” feature.

Plugin version
600.2.6+253

IDE version
IntelliJ IDEA 2026.1.2 Preview
Build #IU-261.24374.34, built on April 30, 2026
Source revision: 48ee06336a948
Licensed to Oleksandr Kulychok
Subscription is active until November 18, 2026.
Runtime version: 25.0.2+10-b329.117 aarch64137.0.17-261-b81
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
zielu.gittoolbox (600.2.6+253)

Metadata

Metadata

Assignees

Labels

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions