Skip to content

[Bug]: Reload changes can leave old lines open for review after a push #39175

Closed as not planned

Description

@StiensWout

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 an Android phone emulator, connect T3 Code to a test environment with review permissions on an open GitLab merge request that changes at least 31 files. Use a test GitLab proxy that can fail just the second diff page while leaving merge request details available.
  2. Open a file from the first page in Changed files. Choose one with a distinctive added line.
  3. Make the proxy return an error for the second diff page.
  4. Scroll towards the end of the loaded changes until Retry loading remaining files appears.
  5. Push a commit that replaces the distinctive added line in the first file, keeping the same files changed.
  6. Open Add comment from Diff options once the new commit is visible on GitLab and the cached merge request details have expired.
  7. Tap Cancel to return to Changes.
  8. Wait for the warning that the branch changed.
  9. Allow the second diff page to succeed again.
  10. Tap Reload changes.
  11. Scroll back to the first file after the loading error clears.
  12. Tap the old added line.

Expected behavior

Reload changes shows the new revision of the first file. The old line is gone before inline review is enabled.

Actual behavior

The old line stays in the diff after the warning clears. Tapping it opens the review comment editor with the old code.

First file before revision change

Second page loading error

Branch changed warning

First file after reload

Inline review editor

Full reproduction

Impact

Minor bug or occasional failure. Mobile reviewers can draft comments against old code whenever they reload after a push while a later page is in an error state.

Version or commit

main at d067a04175. The cause is at apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx:1348.

Environment

Pixel_9_API_37, Android 17.0, Android Emulator on Linux x64.

Logs or stack traces

No response

Workaround

No response

Activity

  1. added
    vouch:trusted
    on Nov 19, 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

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions