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          | 22 
internal/agent/testdata/TestCoderAgent/glm-5.1/glob_tool.yaml           | 28 
internal/agent/testdata/TestCoderAgent/glm-5.1/grep_tool.yaml           | 26 
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       | 24 
internal/agent/testdata/TestCoderAgent/glm-5.1/write_tool.yaml          |  2 
13 files changed, 137 insertions(+), 147 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-0d035875a345ee3e89e04348","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-0d035875a345ee3e89e04348","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":"B"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-0d035875a345ee3e89e04348","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":"ash"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-0d035875a345ee3e89e04348","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" command"},"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-0d035875a345ee3e89e04348","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":" to"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-0d035875a345ee3e89e04348","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":" create"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-0d035875a345ee3e89e04348","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":" test"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-0d035875a345ee3e89e04348","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":".txt"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-0d035875a345ee3e89e04348","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":" with"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-0d035875a345ee3e89e04348","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":" hello"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-0d035875a345ee3e89e04348","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":{"content":" bash"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-0d035875a345ee3e89e04348","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":43,"completion_tokens":238,"total_tokens":457}}
+      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: [DONE]
 
@@ -56,15 +56,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 2.910817083s
+    duration: 3.052443875s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30689
+    content_length: 32379
     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-ecd95edeb312d122018c3715","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-ecd95edeb312d122018c3715","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":"Download"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-ecd95edeb312d122018c3715","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":" and"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-ecd95edeb312d122018c3715","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":" save"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-ecd95edeb312d122018c3715","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":" example"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-ecd95edeb312d122018c3715","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":".txt"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-ecd95edeb312d122018c3715","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":" from"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-ecd95edeb312d122018c3715","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":{"content":" URL"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-ecd95edeb312d122018c3715","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":46,"completion_tokens":177,"total_tokens":399}}
+      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: [DONE]
 
@@ -50,15 +50,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 3.017650708s
+    duration: 1.617242791s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30714
+    content_length: 32404
     host: ""

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

@@ -25,23 +25,21 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-5e5f8ab078fc8e890a00550d","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-5e5f8ab078fc8e890a00550d","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":"Check"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-5e5f8ab078fc8e890a00550d","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":" URL"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-5e5f8ab078fc8e890a00550d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" John"},"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-5e5f8ab078fc8e890a00550d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Doe"},"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-5e5f8ab078fc8e890a00550d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" in"},"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-5e5f8ab078fc8e890a00550d","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":" occurrence"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-5e5f8ab078fc8e890a00550d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" HTML"},"finish_reason":null}]}
-
-      data: {"id":"chatcmpl-5e5f8ab078fc8e890a00550d","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":51,"completion_tokens":281,"total_tokens":508}}
+      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: [DONE]
 
@@ -50,15 +48,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 3.15393675s
+    duration: 1.755835166s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30732
+    content_length: 32422
     host: ""

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

@@ -25,29 +25,25 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-700285b94d03a05d9e3f02b8","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-700285b94d03a05d9e3f02b8","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Use"},"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-700285b94d03a05d9e3f02b8","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-700285b94d03a05d9e3f02b8","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-700285b94d03a05d9e3f02b8","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" locate"},"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-700285b94d03a05d9e3f02b8","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":" all"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-700285b94d03a05d9e3f02b8","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":" ."},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-700285b94d03a05d9e3f02b8","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":"go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-700285b94d03a05d9e3f02b8","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":{"content":" files"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-700285b94d03a05d9e3f02b8","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" current"},"finish_reason":null}]}
-
-      data: {"id":"chatcmpl-700285b94d03a05d9e3f02b8","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" directory"},"finish_reason":null}]}
-
-      data: {"id":"chatcmpl-700285b94d03a05d9e3f02b8","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":35,"completion_tokens":298,"total_tokens":509}}
+      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: [DONE]
 
@@ -56,15 +52,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 3.3505585s
+    duration: 1.296821833s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30650
+    content_length: 32340
     host: ""

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

@@ -25,27 +25,25 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-d83c26df9c6591d438b30a94","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d83c26df9c6591d438b30a94","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"G"},"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-d83c26df9c6591d438b30a94","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"rep"},"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-d83c26df9c6591d438b30a94","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-d83c26df9c6591d438b30a94","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-d83c26df9c6591d438b30a94","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" keyword"},"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-d83c26df9c6591d438b30a94","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":" in"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d83c26df9c6591d438b30a94","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":" Go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d83c26df9c6591d438b30a94","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" source"},"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-d83c26df9c6591d438b30a94","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" files"},"finish_reason":null}]}
-
-      data: {"id":"chatcmpl-d83c26df9c6591d438b30a94","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":36,"completion_tokens":197,"total_tokens":409}}
+      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: [DONE]
 
@@ -54,15 +52,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 2.981118041s
+    duration: 1.423312541s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30648
+    content_length: 32338
     host: ""

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

@@ -25,23 +25,23 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-d58720ab3cc6652c5a236a50","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d58720ab3cc6652c5a236a50","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Using"},"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-d58720ab3cc6652c5a236a50","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":" files"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d58720ab3cc6652c5a236a50","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" to"},"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-d58720ab3cc6652c5a236a50","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":" current"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d58720ab3cc6652c5a236a50","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":" directory"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d58720ab3cc6652c5a236a50","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":" with"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d58720ab3cc6652c5a236a50","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":" ls"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d58720ab3cc6652c5a236a50","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":33,"completion_tokens":145,"total_tokens":354}}
+      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: [DONE]
 
@@ -50,15 +50,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.908952917s
+    duration: 1.9139675s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30642
+    content_length: 32332
     host: ""

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

@@ -25,25 +25,27 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-d5ad9fe3c47867293b4749b1","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d5ad9fe3c47867293b4749b1","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"Modify"},"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-d5ad9fe3c47867293b4749b1","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Hello"},"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-d5ad9fe3c47867293b4749b1","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" World"},"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-d5ad9fe3c47867293b4749b1","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" to"},"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-d5ad9fe3c47867293b4749b1","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Hello"},"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-d5ad9fe3c47867293b4749b1","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" Crush"},"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-d5ad9fe3c47867293b4749b1","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" with"},"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-d5ad9fe3c47867293b4749b1","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":" add"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-d5ad9fe3c47867293b4749b1","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":55,"completion_tokens":155,"total_tokens":386}}
+      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: [DONE]
 
@@ -52,15 +54,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.903782417s
+    duration: 4.246228334s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30728
+    content_length: 32418
     host: ""

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

@@ -25,27 +25,25 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","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":"Parallel"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","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":" glob"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","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":" ."},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","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":"go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","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":" files"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","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":" and"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","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":" ls"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","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":{"content":" listing"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" listing"},"finish_reason":null}]}
-
-      data: {"id":"chatcmpl-b284adff2f283f37275d565b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":36,"completion_tokens":137,"total_tokens":365}}
+      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: [DONE]
 
@@ -54,15 +52,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.718419583s
+    duration: 1.710549709s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30739
+    content_length: 32429
     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-20dcf6ef9ddc91fe00c616e2","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-20dcf6ef9ddc91fe00c616e2","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":"Reading"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-20dcf6ef9ddc91fe00c616e2","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":" the"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-20dcf6ef9ddc91fe00c616e2","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":" go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-20dcf6ef9ddc91fe00c616e2","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":".mod"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-20dcf6ef9ddc91fe00c616e2","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":{"content":" file"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-20dcf6ef9ddc91fe00c616e2","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":27,"completion_tokens":77,"total_tokens":280}}
+      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: [DONE]
 
@@ -46,15 +46,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.620399166s
+    duration: 1.686770708s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30612
+    content_length: 32302
     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-f342b662fa22d62db967957b","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-f342b662fa22d62db967957b","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":"Simple"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-f342b662fa22d62db967957b","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":{"content":" Greeting"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-f342b662fa22d62db967957b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":152,"completion_tokens":88,"total_tokens":288}}
+      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: [DONE]
 
@@ -40,15 +40,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.80550475s
+    duration: 1.322332s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30602
+    content_length: 32292
     host: ""

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

@@ -25,29 +25,27 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","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":"Source"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","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":"graph"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","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":" search"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","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":" for"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","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":" func"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","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":" main"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","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":" in"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" via"},"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-620058f24b10a79ade1c095b","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":{"content":" repos"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":"graph"},"finish_reason":null}]}
-
-      data: {"id":"chatcmpl-620058f24b10a79ade1c095b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":36,"completion_tokens":323,"total_tokens":535}}
+      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: [DONE]
 
@@ -56,15 +54,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 3.6349505s
+    duration: 3.212219375s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30662
+    content_length: 32352
     host: ""

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

@@ -25,25 +25,25 @@ interactions:
     content_length: -1
     uncompressed: true
     body: |+
-      data: {"id":"chatcmpl-1d2779ed381e7de8462ddb1b","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":{"role":"assistant"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-1d2779ed381e7de8462ddb1b","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":"Update"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-1d2779ed381e7de8462ddb1b","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":" main"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-1d2779ed381e7de8462ddb1b","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":".go"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-1d2779ed381e7de8462ddb1b","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":" to"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-1d2779ed381e7de8462ddb1b","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-1d2779ed381e7de8462ddb1b","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":" Hello"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-1d2779ed381e7de8462ddb1b","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":{"content":" from"},"finish_reason":null}]}
 
-      data: {"id":"chatcmpl-1d2779ed381e7de8462ddb1b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{"content":" crush"},"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-1d2779ed381e7de8462ddb1b","object":"chat.completion.chunk","created":0,"model":"gpt-oss-120b","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":37,"completion_tokens":174,"total_tokens":387}}
+      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: [DONE]
 
@@ -52,15 +52,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 2.104933458s
+    duration: 1.671100625s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30668
+    content_length: 32358
     host: ""