Skip to content

fix: check diff file anchors on their headers - #4963

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-4903
Nov 1, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-4903

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Three browser tests still read file identity from the outer diff container. #4759 intentionally moved that identity to the file header so authored notes keep their own prose anchors. The tests now inspect the header and retain their checks of file comments, stored source coordinates, call-tree navigation and precise line selection. Runtime behavior is unchanged.

The original unloaded-file assertion reproduced on main 7844f4d04. With the corrected locators, all four focused checks pass: test_a_manifest_diff_can_comment_on_one_unloaded_file, test_call_diff_projects_stable_commentable_rows, test_a_data_bound_diff_aims_and_selects_one_source_line, and test_author_notes_follow_source_lines_and_survive_deferred_refresh (24.23s). Ruff lint, formatting and git diff --check pass.

Closes #4903 — automated triage

File identity moved to the header in #4759 so authored notes do not inherit a source-bound file datum. Update the three older browser consumers to read that owner, retaining their saved-anchor, navigation and selection checks.

Closes #4903
@max-sixty
max-sixty merged commit 5fcf8cb into main Nov 1, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/issue-4903 branch November 1, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unloaded diff file exposes Comment but lacks its expected file datum

2 participants