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:
can1357
2026-04-26 05:22:15 +02:00
parent ab1a5e2f3e
commit 52da3674a4
15 changed files with 177 additions and 290 deletions
+1 -1
View File
@@ -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);