Skip to content

[Bug]: Mobile review diff goes blank with debug text while loading, and the file header ghosts behind the title #45445

Done

Description

@arifali123

Summary

The mobile review diff draws its first frame and its file headers wrong. While a diff loads, the screen goes blank between "Loading diff…" and the first rows. On iOS that blank screen also shows a leftover debug message, "No native diff rows", drawn under the status bar clock. Once you scroll, the file header you are reading shows twice: the pinned copy, plus the real row sliding under the translucent nav bar behind the title. The file header counts also read deletions first with a hyphen (-0 +217), while the title and the rest of the app put additions first.

Fix: #45379

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. On the iOS app, open a thread whose worktree has uncommitted changes, ideally a few hundred added lines.
  2. Open Git controls → Review changes.
  3. Watch the switch from "Loading diff…" to the diff.
  4. Scroll down through a long file.

Expected behavior

"Loading diff…" stays up until the diff is drawn, and turns straight into it. While you scroll, only the pinned file header shows. File headers read +additions −deletions like the title, and leave out zero counts.

Actual behavior

  • After "Loading diff…", the native diff view mounts with no rows and shows a blank screen until its rows decode. On iOS it draws "No native diff rows" at the top-left of the view, under the clock. Android shows a plain blank screen in the same gap.
  • While scrolling, the real file header row keeps drawing under the translucent nav bar, so a blurred second copy of the header appears behind the title.
  • File headers show -0 +217 on new files, and the order is the reverse of the title's +357 · -98.

The PR diff screen uses the same native view and has the same blank gap.

Impact

Minor bug or occasional failure

Version or commit

main @ 5a6be71

Environment

iPhone on iOS 27 (screenshots), reproduced on the iPhone 17 Pro simulator (iOS 27.2)

Screenshots, recordings, or supporting files

Blank gap with the debug text under the clock:

File header ghosting behind the title while scrolling, and -0 +217 counts:

Workaround

None. The blank gap clears on its own once rows decode.

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