feat(coding-agent): added auto-rebase for stale atom/hashline anchors
- Added auto-rebasing for stale atom and hashline anchors within ±2 lines, with warning diagnostics. - Removed atom range-locator support and dropped `between` ops, updating docs/tests for `sub` over `set` nudges. - Changed no-op handling to track unchanged hashline edits and emit contextual hints for unchanged ranges. - Expanded Anthropic strict error handling to retry on schema-too-complex and compiled-grammar-too-large errors. - Added anchor-retargeting warning checks and updated edit tests to expect locator and range-locator rejections. - Updated python tool-call fixtures by adding `title` to executed-cell payloads and adjusting related test expectations.
This commit is contained in:
@@ -372,7 +372,7 @@ describe("computeHashlineDiff", () => {
|
||||
await Bun.write(sourcePath, "first\n");
|
||||
|
||||
const result = await computeHashlineDiff(
|
||||
{ path: sourcePath, edits: [{ path: sourcePath, loc: "append", content: "second" }] },
|
||||
{ path: sourcePath, edits: [{ path: sourcePath, loc: "append", content: ["second"] }] },
|
||||
tempDir,
|
||||
);
|
||||
expect("diff" in result).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user