Skip to content

Expect the PR walkthrough's exact-patch link to name its line in the URL - #5341

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5127
Nov 4, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5127

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#5034 made navigateToDatum write the key it travels to into the URL (#<widget-id>:<key>), so a reload or a copied URL reaches the same part. Following the PR walkthrough's src/summary.rs:259 call location now leaves the URL at #pr-exact-patch:["src/summary.rs","source","new",259] (percent-encoded). The nightly journey test_pr_walkthrough_moves_from_semantic_call_to_exact_patch_comment still expected the bare #pr-exact-patch, so it failed before reaching the line comment it exists to check. It now expects the line's source key in the URL. This keeps #5034's intended behavior and changes no product code.

The test failed locally on current main with Actual value: …/#pr-exact-patch:[%22src/summary.rs%22,%22source%22,%22new%22,259], matching the scheduled run 41432142330, and it passes with this change (--run-main --run-nightly).

Closes #5127 — automated triage

#5034 made navigateToDatum write the key it travels to into the URL
(#<widget-id>:<key>), so a reload or copied URL reaches the same part. The
nightly journey still expected the bare #pr-exact-patch fragment and failed
before reaching the comment it exercises. It now expects the line's source key.

Closes #5127
@leaf-agent
leaf-agent merged commit 99a6bbe into main Nov 4, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5127 branch November 4, 2026 09:57
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.

Exact patch walkthrough expects a fragment without its datum

1 participant