You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Medium] Submit-time re-anchoring of drafts and suggestion hunks should use the same region search as display #313
#265 (PR #303) re-anchors drafts to the current head before posting using the LCS line map. PR #309 added a bounded region search for display re-anchoring of single-line anchors, but the submit path does not use it: a draft whose line was edited upstream before Submit is still refused (or posted only if the line map resolves), and pending suggestion hunks are not re-anchored through it either.
Goal
Submit-time re-anchoring of drafts and pending suggestion hunks uses the same algorithm as display re-anchoring, so what the user sees (mapped/shifted) is what gets posted, and only outdated drafts are refused.
Route the planner's mapping through reanchor() and branch on status.
Note: These are preliminary thoughts at issue creation time and have not been thoroughly considered from an implementation perspective. During design, revisit the goal and re-evaluate the approach from scratch.
Activity
fix(pr): refuse to submit a draft whose quoted text changed upstream (#…