Skip to content
Source
Sign inSign up
pingdotgg/t3code

Android review shows a blank Uncommitted diff with correct counts #27930

ClosedAkiVonAkira(GitHub profile, opens in a new tab) opened this issue 0 comments

On Android, the review sheet's Uncommitted section shows the right counts in its header (Uncommitted · +1 · -1) but draws an empty diff surface. Refreshing the diff does not fix it. The Changes section for the same edit renders correctly.

Reproduced on main at be5a887b939dadf74e62a477bbe2c805d561fe9e, on an Android 16 (API 36) Pixel 8 emulator with the native dev client (com.t3tools.t3code.dev 2.2.0), against a Linux dev server. @maria-rcks first saw it on an API 35 emulator while testing #19288, where Metro logged:

[native-review-diff] setTokensPatchJson failed Error: Native token patch was not accepted

On main the same blank surface appears, but neither Metro nor logcat logged that line. Metro did log [review-sheet] parsed diff files {"fileCount": 1, "renderableFileCount": 1, "selectedSectionId": "git:working-tree"}, so the client receives and parses the diff, and the native view draws nothing. The token patch acknowledgements added in #24276 may be related. I have not confirmed that.

Steps

  1. Start a dev server and Metro, then pair the Android dev client.
  2. Add a git project with one committed file, greeting.txt containing hello.
  3. Change it to hello world and leave it uncommitted.
  4. Open a thread in the project, open review, and select Uncommitted.
  5. Refresh the diff.

Expected: the greeting.txt diff, as in Changes. Actual: the header shows +1 · -1 and the surface is blank.

UncommittedUncommitted after refreshChanges (same edit)
uncommittedafter refreshchanges

iOS was not checked.

  1. juliusmarminge closed this

Sign in to join this conversation.