Skip to content

Large MR files with collapsed diffs show 0 changes in review UI #869

Closed

Description

@xjme

When reviewing an MR where the total diff size exceeds GitLab's server-side limit, GitLab API returns some diff entries with an empty diff field (even though the files were changed). Plannotator displays these files as having 0 changes, which is misleading — the file appears in the diff list but its content is invisible.

Steps to reproduce:

  1. Open an MR that has a large total diff (many files changed, or large files)
  2. Start a review session in plannotator
  3. Navigate to a file that GitLab has "collapsed" — it appears in the file list but shows 0 additions/deletions

Expected behavior:

The file's diff is shown.

Actual behavior:

The file shows 0 changes. The diff entry in the GitLab API response has "diff": "" and "binary": false — GitLab omitted the diff because the total MR diff exceeded its size limit.

Environment:

  • plannotator version: 0.19.27 (latest)
  • GitLab instance: self-hosted
  • OS: Windows 11

Activity

  1. backnotprop commented on Jun 9, 2026

    @backnotprop
    Owner

    Good timing on this. v0.20.0 (out now) reworked how Plannotator fetches GitLab MR diffs. It now uses the raw_diffs endpoint as the primary source, which includes the collapsed and large-file contents that the JSON diffs API was omitting. That omission is exactly the 0-changes symptom you described.

    Can you update and retry on the same large MR?

    curl -fsSL https://plannotator.ai/install.sh | bash

    If a truly massive MR still shows empty diffs after updating (large enough that even raw_diffs returns nothing), let me know and I will add a per-file fallback. Thanks for the clear writeup.

  2. xjme commented on Jun 9, 2026

    @xjme
    Author

    Thanks for the quick turnaround!

    I just updated to v0.20.0 and tested it on the exact same large MR. It works perfectly now – the collapsed files are loading and displaying their diffs correctly instead of showing 0 changes.

    Everything looks great on my end, so feel free to close this issue.

  3. backnotprop commented on Sep 11, 2026

    @backnotprop
    Owner

    Backlog pass - a human went through the thread and checked it against current main. This was fixed in v0.20.0 by switching GitLab MR diffs to the raw_diffs endpoint (0be4295), and you confirmed the retest yourself back in June - thanks for closing the loop, and sorry it took us this long to actually hit the button. If anything like it resurfaces on a current build, reopen or file fresh and we'll dig in.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions