You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Reload changes can leave old lines open for review after a push #39175
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
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.
Open a file from the first page in Changed files. Choose one with a distinctive added line.
Make the proxy return an error for the second diff page.
Scroll towards the end of the loaded changes until Retry loading remaining files appears.
Push a commit that replaces the distinctive added line in the first file, keeping the same files changed.
Open Add comment from Diff options once the new commit is visible on GitLab and the cached merge request details have expired.
Tap Cancel to return to Changes.
Wait for the warning that the branch changed.
Allow the second diff page to succeed again.
Tap Reload changes.
Scroll back to the first file after the loading error clears.
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.
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.
Activity