Skip to content

fix(review): stop annotated navigation skipping notes drawn outside hunks - #1147

Open
HackAttack wants to merge 1 commit into
modem-dev:mainfrom
HackAttack:fix/annotated-nav-owner-parity
Open

HackAttack wants to merge 1 commit into
modem-dev:mainfrom
HackAttack:fix/annotated-nav-owner-parity

Conversation

@HackAttack

Copy link
Copy Markdown
Contributor

{/} and hunk session navigate --next-comment skipped a note whose line falls outside every hunk, such as a stored note after a reload moved the hunks. The diff pane still drew the note in its declared or gap-owner hunk, but the annotated-hunk index counted only strict range overlaps, so no navigation stop pointed at it.

The index now resolves each annotation through the same anchor logic the diff pane draws with, so every drawn note's hunk is a stop.

…unks

`{`/`}` and `hunk session navigate --next-comment` skipped a note whose
line falls outside every hunk, such as a stored note after a reload
moved the hunks. The diff pane still drew the note in its declared or
gap-owner hunk, but the annotated-hunk index counted only strict range
overlaps, so no navigation stop pointed at it.

The index now resolves each annotation through the same anchor logic the
diff pane draws with, so every drawn note's hunk is a stop.
@vercel

vercel Bot commented Oct 5, 2026

Copy link
Copy Markdown

@HackAttack is attempting to deploy a commit to the Modem Team on Vercel.

A member of the Team first needs to authorize it.

@greptile-apps

greptile-apps Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

PR author is not in the allowed authors list.

This branch has not been deployed

No deployments
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.

1 participant