Skip to content

fix(hashline): blank lines hash identically causing ambiguous anchor mismatch on insert_after #358

@randomm

Description

@randomm

All blank/whitespace lines produce the same hash character via normalizeLine() trimming. In large files, insert_after on any blank line hits ambiguous match and throws mismatch error. Agent re-reads but gets same anchor, loops forever. Fix: seed xxHash32 with line number so every line anchor is unique within the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions