fix: resolve EditTool naming inconsistency causing agent confusion loops (#513)

* fix: resolve EditTool naming inconsistency causing agent confusion loops

* docs: restore original format for edit tool

* fix: apply prettier formatting to docs and tests

* test: update snapshots for edit tool
This commit is contained in:
Zagorulko Oleg
2025-09-09 06:33:07 +03:00
committed by GitHub
parent dded10f98c
commit 60c136ad67
10 changed files with 44 additions and 48 deletions

View File

@@ -44,11 +44,7 @@ describe('file-system', () => {
const result = await rig.run(`edit test.txt to have a hello world message`);
// Accept multiple valid tools for editing files
const foundToolCall = await rig.waitForAnyToolCall([
'write_file',
'edit',
'replace',
]);
const foundToolCall = await rig.waitForAnyToolCall(['write_file', 'edit']);
// Add debugging information
if (!foundToolCall) {
@@ -57,7 +53,7 @@ describe('file-system', () => {
expect(
foundToolCall,
'Expected to find a write_file, edit, or replace tool call',
'Expected to find a write_file or edit tool call',
).toBeTruthy();
// Validate model output - will throw if no output