Repository navigation
Prevent area merges that introduce repeated interior nodes - #12755
Open
seanwessmith wants to merge 3 commits into
Open
seanwessmith wants to merge 3 commits into
seanwessmith wants to merge 3 commits into
Conversation
matkoniecz
reviewed
Aug 19, 2026
Collaborator
|
This is LLM generated PR, right? In such case it should be disclosed at beginning of description, with explanation how it was generated. |
Collaborator
please, mark it as ready for review once it is ready for review also, can you attach recording of this change in action and attach it to original post or in a new comment? |
seanwessmith
marked this pull request as ready for review
September 12, 2026 20:39
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI disclosure: This PR contains AI-generated code and tests. This review update was prepared with OpenAI Codex: it read #9328 and the review comments, inspected the merge implementation, clarified the helper name and comments, added regression tests, ran the checks below, and exercised the local editor to capture the demonstration. These checks were performed by the agent; they are not a claim of independent human review.
What changed
Prevent area-node merges that introduce or increase a repeated interior vertex. The normal repetition of the first node at the end of a closed way is explicitly excluded from the check.
The connect action simulates node replacements in affected parent areas and disables the merge with the existing
paths_intersectreason when it would introduce or increase an interior repetition.Closes #9328.
Demonstration
Recorded from the local iD build at
5246475, using synthetic geometry matching #9328. The extra “Load example area” button only supplies the fixture; selection and merging use the normal editor UI. OSM loading and saving were disabled using the walkthrough controls.MP4 recording. Pauses between steps were shortened.
Validation
no-consolewarning intest/spec/core/difference.js:371.git diff --checkpassed.