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
@@ -48,7 +48,7 @@ describe("python tool execution", () => {
const tool = new PythonTool(createSession(tempDir.path(), kernelOwnerId));
const result = await tool.execute(
"call-id",
{ cells: [{ code: "print('hi')" }], timeout: 5, cwd: tempDir.path(), reset: true },
{ cells: [{ title: "hello-world", code: "print('hi')" }], timeout: 5, reset: true },
undefined,
undefined,
undefined,