Skip to content

Commit diff mixes changes from an earlier commit with changes from the selected commit #23073

Open

Description

@pwyq

The problem

GitHub Desktop displayed changes from a previous commit alongside changes from the currently selected commit. For example:

  • commit 1 (several days earlier) modified file A
  • commit 2 modifies file A and file B
  • when viewing commit 2 for the first time, GitHub Desktop showed old changes from commit 1 for file A, alongside the current changes to file B
    • Click other irrelevant commits and back to commit 2 did not resolve the display issue. Restarting GitHub Desktop resolves it.

Notably, GitHub Desktop had been opened shortly before the issue occurred. This was not a long-running session that had remained open since commit 1.

If this helps: the repo has around 400K LOC, several thousands of files, and 5,100+ git commits.

Possibly related issue

This may be related to #22596, although the symptoms differ.

In my case, the changed-file list for commit 2 rendered, but the diffs for some listed files did not appear (blank screen).

Among the diffs that did render:

  • File A displayed the diff from the earlier commit (commit 1).
  • File B displayed the correct diff from the selected commit (commit 2).

Therefore, the same commit view simultaneously contained missing, stale, and correct diffs.

Release version

3.6.7 (x64)

Operating system

Windows 11

Steps to reproduce the behavior

Unable to reproduce consistently. Observed once.

Log files

Based on 2026-10-26.desktop.production.log:

Local time Event
6:05:20 PM GitHub Desktop 3.6.7 launched
6:07:30 PM Git status executed (4.711s)
6:07:35 PM Git fetch completed (3.961s)
6:07:38 PM Second Git status executed (1.645s)
6:07:41 PM Repository sidebar indicators refreshed
6:10:43 PM Another Git fetch completed (3.616s)
6:10:45 PM Remote HEAD updated
6:13:02 PM GitHub Desktop relaunched; user reports issue resolved
6:15:39 PM Repository sidebar indicators refreshed again

Screenshots

No response

Additional context

No response

Activity

  1. tidy-dev commented on Nov 4, 2026

    @tidy-dev
    Contributor

    We haven’t been able to reproduce this so far. Keeping this open as a P3 to track the possible stale-diff/race condition, given the mixed stale, missing, and correct diffs reported.

  2. added
    bug
    priority-3
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions