Commit ddf963e
fix(code-review): use new-file line numbers when parsing changed ranges
parseChangedRanges was returning hunk.oldStart/oldLines, but the ranges
are consumed against content.split('\n') (new file) and graph nodes
parsed from the PR head — so any lines added or removed earlier in the
file shifted offsets and the formatter sliced the wrong code, feeding
garbage to the reviewer.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent bb609fb commit ddf963e
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
0 commit comments