Skip to content

Commit 8ef6d30

Browse files
committed
test: exercise the repair-then-reparse-fails path
The previous input never triggered a repair, so the fallback that reports the original error after a failed reparse was untested.
1 parent 83663b6 commit 8ef6d30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/agent-core/test/loop/tool-call.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('parseToolCallArguments', () => {
177177
});
178178

179179
it('returns the original parse error after quote repair still fails', () => {
180-
const raw = '{"a":[1,}';
180+
const raw = String.raw`{"a":"bad \*","b":[}`;
181181

182182
expect(parseToolCallArguments(raw)).toEqual({ success: false, error: parseErrorMessage(raw) });
183183
});

0 commit comments

Comments
 (0)