Repository navigation
test: read the entry record from prepareEntry's first argument in the diff interceptors - #5342
Merged
Merged
Conversation
… diff interceptors #4873 dropped prepareEntry's leading source parameter, so the record is now args[0] and args[1] is the render key, often null. Two test interceptors that hold one file's preparation still read args[1].path, threw inside the diff's load, and the diff drew "<lf-diff> failed" instead of its files. No user behavior changes. Closes #5071
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#4873 dropped
prepareEntry's leadingsourceparameter, so the entry record is nowargs[0]andargs[1]is the render key, which isnullfor a file not drawn yet. The two test interceptors that hold one file's preparation still readargs[1].path. They threw insidelf-diff's load, so the diff drew "<lf-diff>failed: Cannot read properties of null (reading 'path')" instead of its files, and every wait for a drawn line timed out. Both interceptors now readargs[0]. No product code changes.These are the five tests push run 41395985405 failed. Locally on this branch,
test_a_hunk_step_waiting_on_a_file_leaves_a_user_who_moved_on,test_phone_diff_headers_keep_distinguishing_parent_folder_readable[True], and the[mouse-False]and[mouse-True]cases oftest_a_deferred_diff_renders_only_opened_files_and_hydrates_comment_travelpass.test_a_deferred_diff_renders_only_opened_files_and_hydrates_comment_travel[keyboard-False]still fails, now at a later assertion. With the corrected interceptor it passes at #4873's commit, andgit bisectpoints to #5039 (threads open in the panel on a phone). At this case's 400 px window, Show on page folds the panel, the diff's inline thread seat is removed, there's no margin marker to land on, and focus falls tobody. That's a separate cause, filed as #5343 for #5039's author to judge.Closes #5071 — automated triage