test: re-record vcr cassettes

Andrey Nering created

Change summary

internal/agent/testdata/TestCoderAgent/glm-5.1/bash_tool.yaml           | 28 
internal/agent/testdata/TestCoderAgent/glm-5.1/download_tool.yaml       | 22 
internal/agent/testdata/TestCoderAgent/glm-5.1/fetch_tool.yaml          | 24 
internal/agent/testdata/TestCoderAgent/glm-5.1/glob_tool.yaml           | 28 
internal/agent/testdata/TestCoderAgent/glm-5.1/grep_tool.yaml           | 24 
internal/agent/testdata/TestCoderAgent/glm-5.1/ls_tool.yaml             | 22 
internal/agent/testdata/TestCoderAgent/glm-5.1/multiedit_tool.yaml      | 26 
internal/agent/testdata/TestCoderAgent/glm-5.1/parallel_tool_calls.yaml | 26 
internal/agent/testdata/TestCoderAgent/glm-5.1/read_a_file.yaml         | 18 
internal/agent/testdata/TestCoderAgent/glm-5.1/simple_test.yaml         | 12 
internal/agent/testdata/TestCoderAgent/glm-5.1/sourcegraph_tool.yaml    | 28 
internal/agent/testdata/TestCoderAgent/glm-5.1/update_a_file.yaml       | 26 
internal/agent/testdata/TestCoderAgent/glm-5.1/write_tool.yaml          | 22 
13 files changed, 157 insertions(+), 149 deletions(-)

Detailed changes

internal/agent/testdata/TestCoderAgent/glm-5.1/bash_tool.yaml 🔗

@@ -25,29 +25,29 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"B"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"B"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"ash"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"ash"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" command"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" script"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" to"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" to"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" create"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" create"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" test"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" test"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".txt"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".txt"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" with"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" with"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" hello"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" hello"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" bash"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" bash"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-04b99a08603e4ed19c0a373d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":11,"completion_tokens":278,"total_tokens":497}}
+      data: {"id":"chatcmpl-d398f349fdddf325c9b169a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":11,"completion_tokens":208,"total_tokens":427}}
 
       data: [DONE]
 
@@ -56,15 +56,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 3.052443875s
+    duration: 2.437881292s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32379
+    content_length: 32514
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/download_tool.yaml 🔗

@@ -25,23 +25,23 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-62b357edbb5872fdcf168b97","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-94f2b9d7e0f03b37bafdabe7","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-62b357edbb5872fdcf168b97","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Download"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-94f2b9d7e0f03b37bafdabe7","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Download"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-62b357edbb5872fdcf168b97","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" and"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-94f2b9d7e0f03b37bafdabe7","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" and"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-62b357edbb5872fdcf168b97","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" save"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-94f2b9d7e0f03b37bafdabe7","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Save"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-62b357edbb5872fdcf168b97","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" example"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-94f2b9d7e0f03b37bafdabe7","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" example"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-62b357edbb5872fdcf168b97","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".txt"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-94f2b9d7e0f03b37bafdabe7","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".txt"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-62b357edbb5872fdcf168b97","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" from"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-94f2b9d7e0f03b37bafdabe7","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" from"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-62b357edbb5872fdcf168b97","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" URL"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-94f2b9d7e0f03b37bafdabe7","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" URL"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-62b357edbb5872fdcf168b97","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":14,"completion_tokens":128,"total_tokens":350}}
+      data: {"id":"chatcmpl-94f2b9d7e0f03b37bafdabe7","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":14,"completion_tokens":99,"total_tokens":321}}
 
       data: [DONE]
 
@@ -50,15 +50,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.617242791s
+    duration: 1.431387417s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32404
+    content_length: 32539
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/fetch_tool.yaml 🔗

@@ -25,21 +25,25 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-23cb017d163f02af73899b85","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-b5ecccdabaf2739cf6c865ed","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-23cb017d163f02af73899b85","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Check"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-b5ecccdabaf2739cf6c865ed","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Check"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-23cb017d163f02af73899b85","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" URL"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-b5ecccdabaf2739cf6c865ed","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" example"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-23cb017d163f02af73899b85","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" for"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-b5ecccdabaf2739cf6c865ed","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".html"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-23cb017d163f02af73899b85","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" John"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-b5ecccdabaf2739cf6c865ed","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" for"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-23cb017d163f02af73899b85","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Doe"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-b5ecccdabaf2739cf6c865ed","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" presence"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-23cb017d163f02af73899b85","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" occurrence"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-b5ecccdabaf2739cf6c865ed","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" of"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-23cb017d163f02af73899b85","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":3,"completion_tokens":134,"total_tokens":361}}
+      data: {"id":"chatcmpl-b5ecccdabaf2739cf6c865ed","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" John"},"finish_reason":null}]}
+
+      data: {"id":"chatcmpl-b5ecccdabaf2739cf6c865ed","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Doe"},"finish_reason":null}]}
+
+      data: {"id":"chatcmpl-b5ecccdabaf2739cf6c865ed","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":3,"completion_tokens":202,"total_tokens":429}}
 
       data: [DONE]
 
@@ -48,15 +52,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.755835166s
+    duration: 2.462296417s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32422
+    content_length: 32557
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/glob_tool.yaml 🔗

@@ -25,25 +25,29 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-3cfe877f3e43495141315c3b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-3cfe877f3e43495141315c3b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Using"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Glob"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-3cfe877f3e43495141315c3b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" glob"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" to"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-3cfe877f3e43495141315c3b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" to"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" find"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-3cfe877f3e43495141315c3b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" locate"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" all"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-3cfe877f3e43495141315c3b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" all"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" ."},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-3cfe877f3e43495141315c3b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" ."},"finish_reason":null}]}
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-3cfe877f3e43495141315c3b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"go"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" files"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-3cfe877f3e43495141315c3b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" files"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" in"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-3cfe877f3e43495141315c3b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":3,"completion_tokens":98,"total_tokens":309}}
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" current"},"finish_reason":null}]}
+
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" directory"},"finish_reason":null}]}
+
+      data: {"id":"chatcmpl-be405350a6a14c0be30ea59b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":3,"completion_tokens":321,"total_tokens":532}}
 
       data: [DONE]
 
@@ -52,15 +56,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.296821833s
+    duration: 3.449660583s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32340
+    content_length: 32475
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/grep_tool.yaml 🔗

@@ -25,25 +25,21 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-a61867d88e9d964d2a4002f9","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-6447644de0cdc41f425ac1ec","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-a61867d88e9d964d2a4002f9","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"G"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-6447644de0cdc41f425ac1ec","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"grep"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-a61867d88e9d964d2a4002f9","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"rep"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-6447644de0cdc41f425ac1ec","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" for"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-a61867d88e9d964d2a4002f9","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" for"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-6447644de0cdc41f425ac1ec","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" package"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-a61867d88e9d964d2a4002f9","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" package"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-6447644de0cdc41f425ac1ec","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" in"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-a61867d88e9d964d2a4002f9","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" keyword"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-6447644de0cdc41f425ac1ec","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-a61867d88e9d964d2a4002f9","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" in"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-6447644de0cdc41f425ac1ec","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" files"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-a61867d88e9d964d2a4002f9","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Go"},"finish_reason":null}]}
-
-      data: {"id":"chatcmpl-a61867d88e9d964d2a4002f9","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" files"},"finish_reason":null}]}
-
-      data: {"id":"chatcmpl-a61867d88e9d964d2a4002f9","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":4,"completion_tokens":90,"total_tokens":302}}
+      data: {"id":"chatcmpl-6447644de0cdc41f425ac1ec","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":4,"completion_tokens":108,"total_tokens":320}}
 
       data: [DONE]
 
@@ -52,15 +48,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.423312541s
+    duration: 1.424877917s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32338
+    content_length: 32473
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/ls_tool.yaml 🔗

@@ -25,23 +25,21 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-c6c4ead5516073eb6f94f289","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-808ff38e4347f4a1cff78d6a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-c6c4ead5516073eb6f94f289","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Listing"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-808ff38e4347f4a1cff78d6a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"List"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-c6c4ead5516073eb6f94f289","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" files"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-808ff38e4347f4a1cff78d6a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" current"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-c6c4ead5516073eb6f94f289","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" in"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-808ff38e4347f4a1cff78d6a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" directory"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-c6c4ead5516073eb6f94f289","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" current"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-808ff38e4347f4a1cff78d6a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" files"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-c6c4ead5516073eb6f94f289","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" directory"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-808ff38e4347f4a1cff78d6a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" with"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-c6c4ead5516073eb6f94f289","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" with"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-808ff38e4347f4a1cff78d6a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" ls"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-c6c4ead5516073eb6f94f289","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" ls"},"finish_reason":null}]}
-
-      data: {"id":"chatcmpl-c6c4ead5516073eb6f94f289","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":1,"completion_tokens":158,"total_tokens":367}}
+      data: {"id":"chatcmpl-808ff38e4347f4a1cff78d6a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":1,"completion_tokens":67,"total_tokens":276}}
 
       data: [DONE]
 
@@ -50,15 +48,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.9139675s
+    duration: 1.046801209s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32332
+    content_length: 32467
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/multiedit_tool.yaml 🔗

@@ -25,27 +25,25 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-e79e8b371d7ee5b55bed5aeb","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Replace"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-e79e8b371d7ee5b55bed5aeb","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Replace"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Hello"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-e79e8b371d7ee5b55bed5aeb","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" greeting"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" World"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-e79e8b371d7ee5b55bed5aeb","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" and"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" with"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-e79e8b371d7ee5b55bed5aeb","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" add"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Hello"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-e79e8b371d7ee5b55bed5aeb","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" comment"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Crush"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-e79e8b371d7ee5b55bed5aeb","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" in"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":";"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-e79e8b371d7ee5b55bed5aeb","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" main"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" add"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-e79e8b371d7ee5b55bed5aeb","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" comment"},"finish_reason":null}]}
-
-      data: {"id":"chatcmpl-fef68092ac4de4729277a40c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":7,"completion_tokens":401,"total_tokens":632}}
+      data: {"id":"chatcmpl-e79e8b371d7ee5b55bed5aeb","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":7,"completion_tokens":188,"total_tokens":419}}
 
       data: [DONE]
 
@@ -54,15 +52,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 4.246228334s
+    duration: 2.188941416s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32418
+    content_length: 32553
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/parallel_tool_calls.yaml 🔗

@@ -25,25 +25,27 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-fcddc8bfaa763d9e537796ee","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fcddc8bfaa763d9e537796ee","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Parallel"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Parallel"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fcddc8bfaa763d9e537796ee","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" glob"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" glob"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fcddc8bfaa763d9e537796ee","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" ."},"finish_reason":null}]}
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" for"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fcddc8bfaa763d9e537796ee","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"go"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" ."},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fcddc8bfaa763d9e537796ee","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" files"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fcddc8bfaa763d9e537796ee","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" and"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" files"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fcddc8bfaa763d9e537796ee","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" ls"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" and"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fcddc8bfaa763d9e537796ee","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" listing"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" ls"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-fcddc8bfaa763d9e537796ee","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":4,"completion_tokens":140,"total_tokens":368}}
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" directory"},"finish_reason":null}]}
+
+      data: {"id":"chatcmpl-01717753dc1a38b96633c031","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":4,"completion_tokens":330,"total_tokens":558}}
 
       data: [DONE]
 
@@ -52,15 +54,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.710549709s
+    duration: 3.63693525s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32429
+    content_length: 32564
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/read_a_file.yaml 🔗

@@ -25,19 +25,19 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-cc5ffd146606da17b517f126","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-64e6912ac69feb86e3e0e006","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-cc5ffd146606da17b517f126","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Reading"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-64e6912ac69feb86e3e0e006","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Reading"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-cc5ffd146606da17b517f126","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" the"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-64e6912ac69feb86e3e0e006","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" the"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-cc5ffd146606da17b517f126","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" go"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-64e6912ac69feb86e3e0e006","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-cc5ffd146606da17b517f126","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".mod"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-64e6912ac69feb86e3e0e006","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".mod"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-cc5ffd146606da17b517f126","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" file"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-64e6912ac69feb86e3e0e006","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" file"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-cc5ffd146606da17b517f126","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":11,"completion_tokens":100,"total_tokens":303}}
+      data: {"id":"chatcmpl-64e6912ac69feb86e3e0e006","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":11,"completion_tokens":82,"total_tokens":285}}
 
       data: [DONE]
 
@@ -46,15 +46,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.686770708s
+    duration: 1.298010542s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32302
+    content_length: 32437
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/simple_test.yaml 🔗

@@ -25,13 +25,13 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-6143e3722cc6f50f4d47b83a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-5b7e249615a472bf74485690","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-6143e3722cc6f50f4d47b83a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Simple"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-5b7e249615a472bf74485690","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Simple"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-6143e3722cc6f50f4d47b83a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Greeting"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-5b7e249615a472bf74485690","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Greeting"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-6143e3722cc6f50f4d47b83a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":8,"completion_tokens":64,"total_tokens":264}}
+      data: {"id":"chatcmpl-5b7e249615a472bf74485690","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":8,"completion_tokens":92,"total_tokens":292}}
 
       data: [DONE]
 
@@ -40,15 +40,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.322332s
+    duration: 1.498550375s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32292
+    content_length: 32427
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/sourcegraph_tool.yaml 🔗

@@ -25,27 +25,29 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Source"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Search"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"graph"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" for"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" search"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" func"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" for"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" main"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" func"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" in"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" main"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" in"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" repos"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Go"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" with"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" repos"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Source"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-9f77f0bb8e650e9450be8066","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":4,"completion_tokens":294,"total_tokens":506}}
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"graph"},"finish_reason":null}]}
+
+      data: {"id":"chatcmpl-302ede2cd604cba8426a8de2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":4,"completion_tokens":237,"total_tokens":449}}
 
       data: [DONE]
 
@@ -54,15 +56,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 3.212219375s
+    duration: 2.742813917s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32352
+    content_length: 32487
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/update_a_file.yaml 🔗

@@ -25,25 +25,27 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-761cf32b1e33f5e1d57b506c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-761cf32b1e33f5e1d57b506c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Update"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Update"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-761cf32b1e33f5e1d57b506c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" main"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" main"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-761cf32b1e33f5e1d57b506c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".go"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-761cf32b1e33f5e1d57b506c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" to"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" print"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-761cf32b1e33f5e1d57b506c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" print"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" to"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-761cf32b1e33f5e1d57b506c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Hello"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" say"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-761cf32b1e33f5e1d57b506c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" from"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" hello"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-761cf32b1e33f5e1d57b506c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Crush"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" from"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-761cf32b1e33f5e1d57b506c","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":5,"completion_tokens":99,"total_tokens":312}}
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" crush"},"finish_reason":null}]}
+
+      data: {"id":"chatcmpl-119f3bd1ab434e07234a80a5","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":5,"completion_tokens":83,"total_tokens":296}}
 
       data: [DONE]
 
@@ -52,15 +54,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.671100625s
+    duration: 1.174858458s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32358
+    content_length: 32493
     host: ""

internal/agent/testdata/TestCoderAgent/glm-5.1/write_tool.yaml 🔗

@@ -25,21 +25,23 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-253bc3ac96dea4bddfb3c35a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-ffece83c09caeb767476cda3","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-253bc3ac96dea4bddfb3c35a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Create"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-ffece83c09caeb767476cda3","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Create"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-253bc3ac96dea4bddfb3c35a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" config"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-ffece83c09caeb767476cda3","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" config"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-253bc3ac96dea4bddfb3c35a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".json"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-ffece83c09caeb767476cda3","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":".json"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-253bc3ac96dea4bddfb3c35a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" with"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-ffece83c09caeb767476cda3","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" with"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-253bc3ac96dea4bddfb3c35a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" JSON"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-ffece83c09caeb767476cda3","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" specified"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-253bc3ac96dea4bddfb3c35a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" data"},"finish_reason":null}]}
+      data: {"id":"chatcmpl-ffece83c09caeb767476cda3","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" JSON"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-253bc3ac96dea4bddfb3c35a","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":3,"completion_tokens":120,"total_tokens":347}}
+      data: {"id":"chatcmpl-ffece83c09caeb767476cda3","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" content"},"finish_reason":null}]}
+
+      data: {"id":"chatcmpl-ffece83c09caeb767476cda3","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":3,"completion_tokens":229,"total_tokens":456}}
 
       data: [DONE]
 
@@ -48,15 +50,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.658757708s
+    duration: 2.674125375s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 32395
+    content_length: 32530
     host: ""