Fix pull diagnostics on the remote clients (#33028)

Also add a test.

Release Notes:

- Fixed pull diagnostics on the remote clients
c8d49408d3Kirill Bulatov committed on 6/19/2025, 12:48:03 PM· committed by GitHubparente202981
4 files changedLine totals unavailable