Cache tool response json instead of generating 1001 times

This commit is contained in:
2026-06-04 17:36:23 -05:00
parent 858d45f619
commit f0293d548f
+2 -1
View File
@@ -51,8 +51,9 @@ test_max_tool_iterations() {
# Generate 1001 tool call responses (exceeds default max of 1000)
> mock_responses.txt
resp_line=$(tool_call read_file '{"path":"test_file.txt"}')
for i in $(seq 1 1001); do
tool_call read_file '{"path":"test_file.txt"}' >> mock_responses.txt
echo "$resp_line" >> mock_responses.txt
done
be_done "final response" >> mock_responses.txt