fix(hashline): adjusted hashline anchor rejection messaging and guidance
- Updated the hashline mismatch error to describe anchor mismatches against the current file. - Rewrote hashline tool instructions to clarify insert payload rules, anchor usage, and avoidance of fabricated hashes. - Expanded stale-edit detection and tests to recognize the revised anchor-mismatch rejection wording.
This commit is contained in:
@@ -271,7 +271,8 @@ _RE_SUCCESS = re.compile(
|
||||
re.I,
|
||||
)
|
||||
_RE_ANCHOR_STALE = re.compile(
|
||||
r"(Edit rejected:.*line[s]? .* changed since the last read|"
|
||||
r"(Edit rejected:.*anchor[s]? do(es)? not match the current file|"
|
||||
r"Edit rejected:.*line[s]? .* changed since the last read|"
|
||||
r"line[s]? ha(s|ve) changed since last read)",
|
||||
re.I,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user