test: re-record test fixtures

Andrey Nering created

Change summary

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/bash_tool.yaml             | 117 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/download_tool.yaml         | 146 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/fetch_tool.yaml            | 120 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/glob_tool.yaml             |  19 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/grep_tool.yaml             |  19 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/ls_tool.yaml               |  19 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/multiedit_tool.yaml        | 171 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/parallel_tool_calls.yaml   |  97 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/read_a_file.yaml           |  82 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/simple_test.yaml           |  19 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/sourcegraph_tool.yaml      |  95 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/update_a_file.yaml         | 107 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/write_tool.yaml            | 125 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/bash_tool.yaml                 |  74 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/download_tool.yaml             | 126 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/fetch_tool.yaml                |  90 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/glob_tool.yaml                 |  92 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/grep_tool.yaml                 | 114 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/ls_tool.yaml                   |  80 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/multiedit_tool.yaml            | 108 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/parallel_tool_calls.yaml       | 112 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/read_a_file.yaml               |  80 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/simple_test.yaml               |  28 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/sourcegraph_tool.yaml          |  96 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/update_a_file.yaml             |  94 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/write_tool.yaml                | 120 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/bash_tool.yaml           |  80 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/download_tool.yaml       |  82 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/fetch_tool.yaml          |  78 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/glob_tool.yaml           |  42 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/grep_tool.yaml           |   2 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/ls_tool.yaml             |   2 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/multiedit_tool.yaml      | 136 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/parallel_tool_calls.yaml |  58 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/read_a_file.yaml         |  76 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/simple_test.yaml         |  20 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/sourcegraph_tool.yaml    |   2 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/update_a_file.yaml       |  78 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/write_tool.yaml          | 136 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/bash_tool.yaml                   | 256 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/download_tool.yaml               | 228 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/fetch_tool.yaml                  | 134 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/glob_tool.yaml                   | 156 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/grep_tool.yaml                   |   2 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/ls_tool.yaml                     | 132 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/multiedit_tool.yaml              | 166 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/parallel_tool_calls.yaml         | 144 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/read_a_file.yaml                 |  93 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/simple_test.yaml                 | 134 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/sourcegraph_tool.yaml            | 162 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/update_a_file.yaml               | 156 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/write_tool.yaml                  | 264 
52 files changed, 3,502 insertions(+), 1,667 deletions(-)

Detailed changes

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/bash_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,47 +23,83 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXdxzmDJW29DZnUPMyr"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 173.08825ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 803
+    host: ""
+    body: '{"max_tokens":40,"messages":[{"content":[{"text":"Generate a concise title for the following content:\n\nuse bash to create a file named test.txt with content ''hello bash''. do not print its timestamp\n \u003cthink\u003e\n\n\u003c/think\u003e","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-5-20250929","system":[{"text":"you will generate a short title based on the first message a user begins a conversation with\n\n\u003crules\u003e\n- ensure it is not more than 50 characters long\n- the title should be a summary of the user''s message\n- it should be one line long\n- do not use quotes or colons\n- the entire text you return will be used as the title\n- never return anything that is more than one sentence (one line) long\n\u003c/rules\u003e\n\n /no_think","type":"text"}],"stream":true}'
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+      User-Agent:
+      - Charm-Crush/devel (https://charm.land/crush)
+    url: https://api.anthropic.com/v1/messages
+    method: POST
+  response:
+    proto: HTTP/2.0
+    proto_major: 2
+    proto_minor: 0
+    content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-3-5-haiku-20241022","id":"msg_01Lij7hAdrqXtCCiddzXdoGK","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":152,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":2,"service_tier":"standard"}}}
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01TE1i1AmaAxwUPdT2otPA1X","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":152,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}}
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}       }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}     }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Bash"} }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Creating"} }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" test"}             }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" File"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":".txt file"}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Creation"}            }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" with hello"}  }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Comman"}          }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" bash content using"}   }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"d"}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" bash"}             }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0       }
+      data: {"type":"content_block_stop","index":0               }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":152,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":8}           }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":152,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":14}  }
 
       event: message_stop
-      data: {"type":"message_stop"       }
+      data: {"type":"message_stop"}
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 811.339375ms
-- id: 1
+    duration: 1.261465167s
+- id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -77,7 +113,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -85,97 +121,86 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_018EZSLb8cAiYosSKFfVfGjP","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4543,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4543,"ephemeral_1h_input_tokens":0},"output_tokens":8,"service_tier":"standard"}}      }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01RR7w73qvB4BKkHsbo8EMhu","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4543,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4543,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}      }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_013uhtHrcioLU9dEwS6BpjWD","name":"bash","input":{}}   }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01QD42Jzvvc4e37AN6V89duC","name":"bash","input":{},"caller":{"type":"direct"}}           }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}   }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"command\""}          }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""} }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": \"echo 'h"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"command\""} }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ell"}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": \"echo "}           }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"o "}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"'hello"}         }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"bash"}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" ba"}}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"' >"}          }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"sh' >"}}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" te"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" test.txt\""}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"st.txt\""}  }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"descript"}      }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", "}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ion\": \"Creat"}     }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\"descri"}           }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"e tes"}   }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ption\""}               }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"t.txt"}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": \"Crea"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" with conten"}        }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"te "}       }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"test.txt w"}          }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ith"}      }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" content\"}"}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"t\"}"}}
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0     }
+      data: {"type":"content_block_stop","index":0      }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4543,"cache_read_input_tokens":9490,"output_tokens":82}    }
+      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4543,"cache_read_input_tokens":9490,"output_tokens":82}          }
 
       event: message_stop
-      data: {"type":"message_stop"  }
+      data: {"type":"message_stop"      }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 1.380791709s
-- id: 2
+    duration: 2.463233667s
+- id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
     content_length: 52744
     host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/download_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,44 +23,80 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXeMNvEPho8gBeQ5CcG"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 187.927166ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 824
+    host: ""
+    body: '{"max_tokens":40,"messages":[{"content":[{"text":"Generate a concise title for the following content:\n\ndownload the file from https://example-files.online-convert.com/document/txt/example.txt and save it as example.txt\n \u003cthink\u003e\n\n\u003c/think\u003e","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-5-20250929","system":[{"text":"you will generate a short title based on the first message a user begins a conversation with\n\n\u003crules\u003e\n- ensure it is not more than 50 characters long\n- the title should be a summary of the user''s message\n- it should be one line long\n- do not use quotes or colons\n- the entire text you return will be used as the title\n- never return anything that is more than one sentence (one line) long\n\u003c/rules\u003e\n\n /no_think","type":"text"}],"stream":true}'
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+      User-Agent:
+      - Charm-Crush/devel (https://charm.land/crush)
+    url: https://api.anthropic.com/v1/messages
+    method: POST
+  response:
+    proto: HTTP/2.0
+    proto_major: 2
+    proto_minor: 0
+    content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-3-5-haiku-20241022","id":"msg_011YAinXEYrTqbpsq4sBCjxA","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":160,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}}        }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_016Z8XV5wvjg7Xe1rxjm6oZb","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":160,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}  }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}       }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}   }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Downloa"}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Download"}        }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"d File"}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" and"}}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" from Example"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" save example"}              }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" URL"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":".txt from online"}  }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"-convert.com"}              }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0 }
+      data: {"type":"content_block_stop","index":0          }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":160,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":8} }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":160,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":15}         }
 
       event: message_stop
-      data: {"type":"message_stop"  }
+      data: {"type":"message_stop"               }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 640.901ms
-- id: 1
+    duration: 1.119027417s
+- id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -74,7 +110,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -82,69 +118,103 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01Ubo3m8oVn1kppZgkSCrixN","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4551,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4551,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}}     }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_015x71bJ4xq9nDrD22guF5EH","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4551,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4551,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}           }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01Nrp1Tn9bF743SfWymTxUkC","name":"download","input":{}}      }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01L4ivEvgviWDhfjn2CrUZyW","name":"download","input":{},"caller":{"type":"direct"}}     }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}          }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"url\": \"h"} }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ttp"}         }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"s:/"}             }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"/e"}      }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"xample-fi"}           }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"les."}            }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"on"}     }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\""}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"line-conv"}       }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ur"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ert.com"}         }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"l\": \"h"}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"/docume"}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ttps://ex"}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"nt/tx"}  }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ample-file"}           }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"t/exa"}         }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"s.online-co"}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"mple.txt"}   }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"nvert.com/do"}  }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\""}}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"cumen"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"file"}      }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"t/txt/exa"}            }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"_path\":"}      }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"mple.txt\""}     }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" \"/tmp/cru"}           }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"f"}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"sh-test/"}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ile_pa"}     }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"TestCoder"}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"th\": \""}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"Agent/ant"}        }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"example"}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"hropic-sonn"}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":".txt\"}"}   }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"et/downlo"}              }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ad_"}        }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"tool/"}          }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"example.t"} }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"xt\"}"}          }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0 }
+      data: {"type":"content_block_stop","index":0          }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4551,"cache_read_input_tokens":9490,"output_tokens":90}           }
+      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4551,"cache_read_input_tokens":9490,"output_tokens":112}      }
 
       event: message_stop
       data: {"type":"message_stop"       }
@@ -154,8 +224,8 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 1.208203792s
-- id: 2
+    duration: 1.247973458s
+- id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -200,22 +270,22 @@ interactions:
       - text/plain; charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 194.328542ms
-- id: 3
+    duration: 1.826446209s
+- id: 4
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 52864
+    content_length: 52926
     host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/fetch_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,50 +23,86 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXempLXFFGDDV6GVrjJ"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 178.712ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 845
+    host: ""
+    body: '{"max_tokens":40,"messages":[{"content":[{"text":"Generate a concise title for the following content:\n\nfetch the content from https://example-files.online-convert.com/website/html/example.html and tell me if it contains the word ''John Doe''\n \u003cthink\u003e\n\n\u003c/think\u003e","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-5-20250929","system":[{"text":"you will generate a short title based on the first message a user begins a conversation with\n\n\u003crules\u003e\n- ensure it is not more than 50 characters long\n- the title should be a summary of the user''s message\n- it should be one line long\n- do not use quotes or colons\n- the entire text you return will be used as the title\n- never return anything that is more than one sentence (one line) long\n\u003c/rules\u003e\n\n /no_think","type":"text"}],"stream":true}'
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+      User-Agent:
+      - Charm-Crush/devel (https://charm.land/crush)
+    url: https://api.anthropic.com/v1/messages
+    method: POST
+  response:
+    proto: HTTP/2.0
+    proto_major: 2
+    proto_minor: 0
+    content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-3-5-haiku-20241022","id":"msg_01QHs42eeZPJbxjrFBiaSQu3","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":167,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}}              }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01XffoGXF951Te4LqgH2bvLH","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":167,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":2,"service_tier":"standard","inference_geo":"not_available"}}   }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}             }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}       }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Website"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Checking"}               }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" if"}       }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Content"}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" example"}               }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Check"}      }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" HTML"}        }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" for"}   }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" file"}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" 'John Doe"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" contains John"}              }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"'"}           }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Doe"}      }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0        }
+      data: {"type":"content_block_stop","index":0              }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":167,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":13}       }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":167,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":13}             }
 
       event: message_stop
-      data: {"type":"message_stop"               }
+      data: {"type":"message_stop"     }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 601.885125ms
-- id: 1
+    duration: 924.810625ms
+- id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -80,7 +116,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -88,80 +124,84 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_012kt7M1ooLoNTTfqAY4XYHC","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4558,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4558,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}}         }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01QaHYkhB12PMB1658mDbZau","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4558,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4558,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}} }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01FZaJdfZV7w7UVgkJHHPJnK","name":"fetch","input":{}}               }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01MZto7WbvdfCguxEtRRzTCu","name":"fetch","input":{},"caller":{"type":"direct"}}        }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"u"}   }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\""}     }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"rl\": \"https:"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"url\": \"http"}     }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"//example"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"s:/"}      }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"-files.o"}           }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"/e"} }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"nlin"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"xample-fil"}}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"e-co"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"es.onli"}   }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"nvert."}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ne-conve"}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"com/w"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"rt.com/webs"}      }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ebsite"}     }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ite"}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"/html/"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"/html/exa"}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ex"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"mple."}               }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ample"}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"html"}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":".html\""}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\""}         }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"format\":"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \""}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" \"text\"}"}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"format\": \""}             }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"text\"}"}           }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0            }
+      data: {"type":"content_block_stop","index":0              }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4558,"cache_read_input_tokens":9490,"output_tokens":86}               }
+      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4558,"cache_read_input_tokens":9490,"output_tokens":86}}
 
       event: message_stop
-      data: {"type":"message_stop"           }
+      data: {"type":"message_stop"               }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.293590416s
-- id: 2
+    duration: 5.292769042s
+- id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -231,22 +271,22 @@ interactions:
       - text/html; charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 50.850459ms
-- id: 3
+    duration: 379.528541ms
+- id: 4
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
     content_length: 55284
     host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/glob_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,61 +23,91 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXfU6kyr5j15Xk1D13h"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 176.108167ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 52354
+    host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/grep_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,61 +23,100 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXfkpbH4dpejHmB6k8N"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 169.408458ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 52352
+    host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/ls_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,55 +23,88 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXgEC8BmgwKAp7Tnqht"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 176.300458ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 52346
+    host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/multiedit_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,46 +23,16 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
-    body: |+
-      event: message_start
-      data: {"type":"message_start","message":{"model":"claude-3-5-haiku-20241022","id":"msg_01MWKFC4YJpdfdLd6h1kfcfd","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":170,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":2,"service_tier":"standard"}}   }
-
-      event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}        }
-
-      event: ping
-      data: {"type": "ping"}
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Modify"}     }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Go"}               }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Hello"}              }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Worl"}  }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"d Greeting"}           }
-
-      event: content_block_stop
-      data: {"type":"content_block_stop","index":0           }
-
-      event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":170,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":10}               }
-
-      event: message_stop
-      data: {"type":"message_stop"   }
-
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXgYrXve6TbDpfy3Hny"}'
     headers:
       Content-Type:
-      - text/event-stream; charset=utf-8
-    status: 200 OK
-    code: 200
-    duration: 664.226709ms
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 184.223542ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -77,7 +47,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -85,109 +55,170 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01GN3npLhkirRANxfHbitvEC","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4563,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4563,"ephemeral_1h_input_tokens":0},"output_tokens":3,"service_tier":"standard"}}           }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01HQ4EQYXbMXbe46PFYFo4xt","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4563,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4563,"ephemeral_1h_input_tokens":0},"output_tokens":5,"service_tier":"standard","inference_geo":"not_available"}}  }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}    }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}              }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"I'll rea"}             }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"d the file"}            }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"I'll help you make"}           }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" first"}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" those changes to main"}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":","}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":".go. Let me first read"}             }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" then use mult"}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" the file"}  }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"iedit to make both"}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" to see"}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" changes."}          }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" its current state."}        }
 
       event: content_block_stop
       data: {"type":"content_block_stop","index":0           }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":1,"content_block":{"type":"tool_use","id":"toolu_01F2DF1unat7CCccKgnyga2E","name":"view","input":{}}         }
+      data: {"type":"content_block_start","index":1,"content_block":{"type":"tool_use","id":"toolu_014eweDiyZQtVJNpPRPxyiXk","name":"view","input":{},"caller":{"type":"direct"}}              }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":""}              }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":""}               }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{\"file_p"}}
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{\"file_path\""}         }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"ath\": \""}    }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":": \"/tmp"}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"/tmp/cru"} }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"/crush-test"}       }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"sh-test/T"}}
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"/TestCod"}        }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"estCoderAg"}   }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"erAgent/an"}        }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"ent"}               }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"thropic"}              }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"/anthropic"}    }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"-sonnet/mu"}        }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"-sonnet/mul"}               }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"ltiedit_"}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"ti"}           }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"tool/main"}}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"edit_tool/m"}        }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":".go\"}"}     }
+
+      event: content_block_stop
+      data: {"type":"content_block_stop","index":1       }
+
+      event: message_delta
+      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4563,"cache_read_input_tokens":9490,"output_tokens":104}   }
+
+      event: message_stop
+      data: {"type":"message_stop"              }
+
+    headers:
+      Content-Type:
+      - text/event-stream; charset=utf-8
+    status: 200 OK
+    code: 200
+    duration: 1.407464166s
+- id: 2
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 837
+    host: ""
+    body: '{"max_tokens":40,"messages":[{"content":[{"text":"Generate a concise title for the following content:\n\nuse multiedit to change ''Hello, World!'' to ''Hello, Crush!'' and add a comment ''// Greeting'' above the fmt.Println line in main.go\n \u003cthink\u003e\n\n\u003c/think\u003e","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-5-20250929","system":[{"text":"you will generate a short title based on the first message a user begins a conversation with\n\n\u003crules\u003e\n- ensure it is not more than 50 characters long\n- the title should be a summary of the user''s message\n- it should be one line long\n- do not use quotes or colons\n- the entire text you return will be used as the title\n- never return anything that is more than one sentence (one line) long\n\u003c/rules\u003e\n\n /no_think","type":"text"}],"stream":true}'
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+      User-Agent:
+      - Charm-Crush/devel (https://charm.land/crush)
+    url: https://api.anthropic.com/v1/messages
+    method: POST
+  response:
+    proto: HTTP/2.0
+    proto_major: 2
+    proto_minor: 0
+    content_length: -1
+    uncompressed: true
+    body: |+
+      event: message_start
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01BxMy9c7WS7idu6Ka59FNip","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":170,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}            }
+
+      event: content_block_start
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}   }
+
+      event: ping
+      data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"ain.go\"}"}   }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Update"}}
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" greeting"}             }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" message"}              }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" and"}    }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" add comment in"}   }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" main.go"}        }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":1        }
+      data: {"type":"content_block_stop","index":0   }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4563,"cache_read_input_tokens":9490,"output_tokens":97}  }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":170,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":13}        }
 
       event: message_stop
-      data: {"type":"message_stop"  }
+      data: {"type":"message_stop"             }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.400389333s
-- id: 2
+    duration: 3.340973375s
+- id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 53032
+    content_length: 53063
     host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/parallel_tool_calls.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,44 +23,80 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXiTvRdMM6GAtTPte9G"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 187.522083ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 843
+    host: ""
+    body: '{"max_tokens":40,"messages":[{"content":[{"text":"Generate a concise title for the following content:\n\nuse glob to find all .go files and use ls to list the current directory, it is very important that you run both tool calls in parallel\n \u003cthink\u003e\n\n\u003c/think\u003e","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-5-20250929","system":[{"text":"you will generate a short title based on the first message a user begins a conversation with\n\n\u003crules\u003e\n- ensure it is not more than 50 characters long\n- the title should be a summary of the user''s message\n- it should be one line long\n- do not use quotes or colons\n- the entire text you return will be used as the title\n- never return anything that is more than one sentence (one line) long\n\u003c/rules\u003e\n\n /no_think","type":"text"}],"stream":true}'
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+      User-Agent:
+      - Charm-Crush/devel (https://charm.land/crush)
+    url: https://api.anthropic.com/v1/messages
+    method: POST
+  response:
+    proto: HTTP/2.0
+    proto_major: 2
+    proto_minor: 0
+    content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-3-5-haiku-20241022","id":"msg_011AxTk6fRGrP3MaJPbdM1kh","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":159,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":2,"service_tier":"standard"}}               }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_019YKKn9sWHzZ993RoTKMAog","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":159,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}          }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}}
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}              }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Parallel"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Find"}            }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Go"}     }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Go File"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" files and list directory"}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" an"}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" in"}              }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"d Directory Listing"}            }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" parallel"}              }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0        }
+      data: {"type":"content_block_stop","index":0  }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":159,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":11}         }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":159,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":11}        }
 
       event: message_stop
-      data: {"type":"message_stop" }
+      data: {"type":"message_stop"   }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 636.447167ms
-- id: 1
+    duration: 1.324753375s
+- id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -74,7 +110,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -82,67 +118,74 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_019QtBed29oZzEdoeDnYjK3p","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4552,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4552,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}}         }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_018mL91oNPZc5eRLRk5JPA9L","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4552,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4552,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}  }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01HksmvDoHPMYWEPjPnG84Uc","name":"glob","input":{}}           }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_015U1QiR3aPXc5EwRcWQBu2P","name":"glob","input":{},"caller":{"type":"direct"}}              }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""} }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"pattern\""}   }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"pa"}       }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": \"**/*.go\"}"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"tte"}  }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"rn\": \""}    }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"**/*.go\"}"}             }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0      }
+      data: {"type":"content_block_stop","index":0           }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":1,"content_block":{"type":"tool_use","id":"toolu_01JpofSJ9YTdmSKLzx81RmLL","name":"ls","input":{}} }
+      data: {"type":"content_block_start","index":1,"content_block":{"type":"tool_use","id":"toolu_01H1SRzrQRdjXvd9mzB9b1zN","name":"ls","input":{},"caller":{"type":"direct"}}              }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":""}           }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":""}     }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{\"path\": \".\"}"}}
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{\"path\": \".\"}"}       }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":1             }
+      data: {"type":"content_block_stop","index":1     }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4552,"cache_read_input_tokens":9490,"output_tokens":86} }
+      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4552,"cache_read_input_tokens":9490,"output_tokens":86}               }
 
       event: message_stop
-      data: {"type":"message_stop"}
+      data: {"type":"message_stop"       }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.092154708s
-- id: 2
+    duration: 2.069303625s
+- id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
     content_length: 53087
     host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/read_a_file.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,9 +23,42 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXcx7QRXJadwTkT3zh9"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 182.95975ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 724
+    host: ""
+    body: '{"max_tokens":40,"messages":[{"content":[{"text":"Generate a concise title for the following content:\n\nRead the go mod\n \u003cthink\u003e\n\n\u003c/think\u003e","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-5-20250929","system":[{"text":"you will generate a short title based on the first message a user begins a conversation with\n\n\u003crules\u003e\n- ensure it is not more than 50 characters long\n- the title should be a summary of the user''s message\n- it should be one line long\n- do not use quotes or colons\n- the entire text you return will be used as the title\n- never return anything that is more than one sentence (one line) long\n\u003c/rules\u003e\n\n /no_think","type":"text"}],"stream":true}'
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+      User-Agent:
+      - Charm-Crush/devel (https://charm.land/crush)
+    url: https://api.anthropic.com/v1/messages
+    method: POST
+  response:
+    proto: HTTP/2.0
+    proto_major: 2
+    proto_minor: 0
+    content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-3-5-haiku-20241022","id":"msg_01BS8RX55UAXGbe4XdL5VxK5","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":134,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}}          }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01VzAyvofTizTG28YXvtqXpU","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":134,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}    }
 
       event: content_block_start
       data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}}
@@ -34,33 +67,30 @@ interactions:
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Rea"}     }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Reading"}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"d Go"}          }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Go"}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Module"}               }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Details"}     }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" module dependencies"}}
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0            }
+      data: {"type":"content_block_stop","index":0     }
 
       event: message_delta
       data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":134,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":7}       }
 
       event: message_stop
-      data: {"type":"message_stop"         }
+      data: {"type":"message_stop"     }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 589.305792ms
-- id: 1
+    duration: 1.179666s
+- id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -74,7 +104,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -82,12 +112,13 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01JLKef6JCmfXXnQuhuCdQd9","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4527,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4527,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}}            }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01U8oNKK8bTeAascN2z9YhHd","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":14017,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":14017,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}           }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01F7YcxHnHkoFTwRJt2WcEPE","name":"view","input":{}}   }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01GMrWUtijQcGZE4pnbVra9U","name":"view","input":{},"caller":{"type":"direct"}}         }
 
       event: ping
       data: {"type": "ping"}
@@ -96,50 +127,47 @@ interactions:
       data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}        }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"file_p"}  }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"at"} }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"fil"}      }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"h\""}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"e_path\": \"go"} }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": \"go.m"}      }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":".mod"}}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"od\"}"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\"}"}   }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0  }
+      data: {"type":"content_block_stop","index":0           }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4527,"cache_read_input_tokens":9490,"output_tokens":55}    }
+      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":14017,"cache_read_input_tokens":0,"output_tokens":55}  }
 
       event: message_stop
-      data: {"type":"message_stop"     }
+      data: {"type":"message_stop"        }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.071498208s
-- id: 2
+    duration: 1.322520375s
+- id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
     content_length: 52689
     host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/simple_test.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,55 +23,88 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXcppNDLs1qvfBtpNfu"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 373.872792ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 52306
+    host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/sourcegraph_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,44 +23,77 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXh9AXtqWgGynhzofvb"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 178.900625ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 769
+    host: ""
+    body: '{"max_tokens":40,"messages":[{"content":[{"text":"Generate a concise title for the following content:\n\nuse sourcegraph to search for ''func main'' in Go repositories\n \u003cthink\u003e\n\n\u003c/think\u003e","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-5-20250929","system":[{"text":"you will generate a short title based on the first message a user begins a conversation with\n\n\u003crules\u003e\n- ensure it is not more than 50 characters long\n- the title should be a summary of the user''s message\n- it should be one line long\n- do not use quotes or colons\n- the entire text you return will be used as the title\n- never return anything that is more than one sentence (one line) long\n\u003c/rules\u003e\n\n /no_think","type":"text"}],"stream":true}'
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+      User-Agent:
+      - Charm-Crush/devel (https://charm.land/crush)
+    url: https://api.anthropic.com/v1/messages
+    method: POST
+  response:
+    proto: HTTP/2.0
+    proto_major: 2
+    proto_minor: 0
+    content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-3-5-haiku-20241022","id":"msg_01FkLqqw1crC8WC9dAUtwxqu","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":145,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":3,"service_tier":"standard"}}          }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_019n1xJ4Mq2eLm4f8FxHoZeb","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":145,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":2,"service_tier":"standard","inference_geo":"not_available"}}              }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}         }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}    }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Searching Go"}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Searching"}              }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Repos"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" for func"}      }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" for Main"}            }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" main in Go repos"}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Function"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" with Sourcegraph"}      }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0       }
+      data: {"type":"content_block_stop","index":0         }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":145,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":11}           }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":145,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":16}            }
 
       event: message_stop
-      data: {"type":"message_stop"            }
+      data: {"type":"message_stop"               }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 640.628291ms
-- id: 1
+    duration: 1.199911417s
+- id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -74,7 +107,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -82,62 +115,60 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01Rf2rLFJUs5ePRyK3fB6DAt","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":14028,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":14028,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}}          }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01ACPoSUiLsDpLHeeYQtMPLq","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4538,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4538,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}              }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01DtbQComcz9jYF4xhrFfpEd","name":"sourcegraph","input":{}}          }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01HUnMS4ThbyRkL79YBTuWDV","name":"sourcegraph","input":{},"caller":{"type":"direct"}}     }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}             }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"que"}            }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}         }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ry\": "}          }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"query\":"}  }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\"func ma"}               }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" \"fu"}}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"in lang:"}               }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"nc mai"}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"go\""}          }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"n l"}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", "}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ang"}      }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\"c"}            }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":":go\""}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"oun"}  }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"count\":"}        }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"t\": 10}"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" 10}"} }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0               }
+      data: {"type":"content_block_stop","index":0             }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":14028,"cache_read_input_tokens":0,"output_tokens":74}           }
+      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4538,"cache_read_input_tokens":9490,"output_tokens":74} }
 
       event: message_stop
-      data: {"type":"message_stop"           }
+      data: {"type":"message_stop"    }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.687317s
-- id: 2
+    duration: 1.5994985s
+- id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -158,28 +189,28 @@ interactions:
     proto_minor: 0
     content_length: -1
     uncompressed: true

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/update_a_file.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,44 +23,77 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXdKM6cL42HF7edaqh7"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 279.61775ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 778
+    host: ""
+    body: '{"max_tokens":40,"messages":[{"content":[{"text":"Generate a concise title for the following content:\n\nupdate the main.go file by changing the print to say hello from crush\n \u003cthink\u003e\n\n\u003c/think\u003e","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-5-20250929","system":[{"text":"you will generate a short title based on the first message a user begins a conversation with\n\n\u003crules\u003e\n- ensure it is not more than 50 characters long\n- the title should be a summary of the user''s message\n- it should be one line long\n- do not use quotes or colons\n- the entire text you return will be used as the title\n- never return anything that is more than one sentence (one line) long\n\u003c/rules\u003e\n\n /no_think","type":"text"}],"stream":true}'
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+      User-Agent:
+      - Charm-Crush/devel (https://charm.land/crush)
+    url: https://api.anthropic.com/v1/messages
+    method: POST
+  response:
+    proto: HTTP/2.0
+    proto_major: 2
+    proto_minor: 0
+    content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-3-5-haiku-20241022","id":"msg_0198CQ2JnP8dYvrKr27saGVX","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":145,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}}    }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01Ri4J7okCqursMViDEXU2tB","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":145,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}   }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}          }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}        }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Update"}      }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Update"}           }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" main"}               }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" main.go print"} }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":".go print"}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" statement to hello"}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" message"}           }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" from crush"}   }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0       }
+      data: {"type":"content_block_stop","index":0        }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":145,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":9}             }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":145,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":13}        }
 
       event: message_stop
-      data: {"type":"message_stop"    }
+      data: {"type":"message_stop"   }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 557.108833ms
-- id: 1
+    duration: 1.018835416s
+- id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -74,7 +107,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -82,76 +115,92 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_012phMFzjQWf6vHiicCKhg8G","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4538,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4538,"ephemeral_1h_input_tokens":0},"output_tokens":3,"service_tier":"standard"}}             }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01AfihxXk2d2qQe6iekoZraw","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4538,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4538,"ephemeral_1h_input_tokens":0},"output_tokens":3,"service_tier":"standard","inference_geo":"not_available"}}}
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}      }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}               }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"I'll rea"}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"I'll read"}}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"d the main.go file first"}               }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" the main"}       }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":","}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":".go file first"}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" then update it."}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" to see"}        }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" its"}              }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" current content"}             }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":","}   }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" then update it."}   }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0             }
+      data: {"type":"content_block_stop","index":0         }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":1,"content_block":{"type":"tool_use","id":"toolu_01Wo6wBTug9S8KGxDe7uGt6o","name":"view","input":{}}         }
+      data: {"type":"content_block_start","index":1,"content_block":{"type":"tool_use","id":"toolu_01U6xdsbNxGGtaQRpPzfnqvd","name":"view","input":{},"caller":{"type":"direct"}}               }
 
       event: content_block_delta
       data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":""}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{\"file_"}      }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"{\"file_p"}  }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"at"}   }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"path\": \"main"}    }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":"h\": \"main"}  }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":".go\"}"}    }
+      data: {"type":"content_block_delta","index":1,"delta":{"type":"input_json_delta","partial_json":".go\"}"}              }
 
       event: content_block_stop
       data: {"type":"content_block_stop","index":1          }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4538,"cache_read_input_tokens":9490,"output_tokens":70} }
+      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4538,"cache_read_input_tokens":9490,"output_tokens":75}             }
 
       event: message_stop
-      data: {"type":"message_stop"    }
+      data: {"type":"message_stop"             }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.076319s
-- id: 2
+    duration: 2.223190625s
+- id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 52892
+    content_length: 52919
     host: ""

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/write_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -23,44 +23,80 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
+    body: '{"type":"error","error":{"type":"not_found_error","message":"model: claude-3-5-haiku-20241022"},"request_id":"req_011CYyXhtEt3Gg9KWuttrZXF"}'
+    headers:
+      Content-Type:
+      - application/json
+      content-type:
+      - application/json
+    status: 404 Not Found
+    code: 404
+    duration: 171.67925ms
+- id: 1
+  request:
+    proto: HTTP/1.1
+    proto_major: 1
+    proto_minor: 1
+    content_length: 818
+    host: ""
+    body: '{"max_tokens":40,"messages":[{"content":[{"text":"Generate a concise title for the following content:\n\nuse write to create a new file called config.json with content ''{\"name\": \"test\", \"version\": \"1.0.0\"}''\n \u003cthink\u003e\n\n\u003c/think\u003e","type":"text"}],"role":"user"}],"model":"claude-sonnet-4-5-20250929","system":[{"text":"you will generate a short title based on the first message a user begins a conversation with\n\n\u003crules\u003e\n- ensure it is not more than 50 characters long\n- the title should be a summary of the user''s message\n- it should be one line long\n- do not use quotes or colons\n- the entire text you return will be used as the title\n- never return anything that is more than one sentence (one line) long\n\u003c/rules\u003e\n\n /no_think","type":"text"}],"stream":true}'
+    headers:
+      Accept:
+      - application/json
+      Content-Type:
+      - application/json
+      User-Agent:
+      - Charm-Crush/devel (https://charm.land/crush)
+    url: https://api.anthropic.com/v1/messages
+    method: POST
+  response:
+    proto: HTTP/2.0
+    proto_major: 2
+    proto_minor: 0
+    content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-3-5-haiku-20241022","id":"msg_016VUcmtZyoNJiJysc1oxRtZ","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":161,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}}     }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01Fajda5WbjkxN2M1A1aMBxo","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":161,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}} }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}           }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""}}
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Creating"}            }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Create"} }
+
+      event: content_block_delta
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" config"}   }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" config"}           }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":".json file"}     }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":".json with JSON"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" with JSON"}    }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" data"}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" content"}          }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0  }
+      data: {"type":"content_block_stop","index":0              }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":161,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":10}   }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":161,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":11}    }
 
       event: message_stop
-      data: {"type":"message_stop"        }
+      data: {"type":"message_stop"            }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 555.094125ms
-- id: 1
+    duration: 1.660372625s
+- id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
@@ -74,7 +110,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - Anthropic/Go 1.14.0
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.anthropic.com/v1/messages
     method: POST
   response:
@@ -82,115 +118,110 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_01Dgqq36mPzsNyVqkBHtnYua","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4552,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4552,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard"}} }
+      data: {"type":"message_start","message":{"model":"claude-sonnet-4-5-20250929","id":"msg_012htUscC3gFZyaZr1Hy49Tt","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":2,"cache_creation_input_tokens":4552,"cache_read_input_tokens":9490,"cache_creation":{"ephemeral_5m_input_tokens":4552,"ephemeral_1h_input_tokens":0},"output_tokens":1,"service_tier":"standard","inference_geo":"not_available"}}        }
 
       event: content_block_start
-      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_01DBdhpH1BHBEzKcLwfNYDJh","name":"write","input":{}}   }
+      data: {"type":"content_block_start","index":0,"content_block":{"type":"tool_use","id":"toolu_0173tDyCgRHvmHy99nVrowc8","name":"write","input":{},"caller":{"type":"direct"}}             }
 
       event: ping
       data: {"type": "ping"}
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}           }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"file_"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":""}               }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"path\": \"/"}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\"file_path"}           }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"tm"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\": "}          }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"p/crush-te"} }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\"/tmp/crus"}           }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"st"}  }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"h-test/T"}              }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"/TestCoderA"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"estC"}  }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"gen"}            }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"oderAge"}               }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"t/anthropic"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"nt/ant"}       }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"-sonnet/wr"}            }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"hr"}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ite_tool/con"}  }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"opic-sonnet"}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"fi"}     }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"/writ"}   }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"g.json\""}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"e_tool/confi"}      }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \""}           }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"g.json"} }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"conte"}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\""}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"nt\": \""}          }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \"content\":"}              }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"{\\\""}          }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":" \"{\\\"name"}      }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"name\\"}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\\\": \\\""}        }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\": \\\"test\\\""}      }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"test\\\", \\\""}            }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":", \\\"v"}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"version\\\": "}              }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"ersion\\\""}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"\\\"1.0.0\\\""}   }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":": \\\"1.0."}}
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"0\\\"}\"}"}           }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"input_json_delta","partial_json":"}\"}"}            }
 
       event: content_block_stop
-      data: {"type":"content_block_stop","index":0      }
+      data: {"type":"content_block_stop","index":0         }
 
       event: message_delta
-      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4552,"cache_read_input_tokens":9490,"output_tokens":109}        }
+      data: {"type":"message_delta","delta":{"stop_reason":"tool_use","stop_sequence":null},"usage":{"input_tokens":2,"cache_creation_input_tokens":4552,"cache_read_input_tokens":9490,"output_tokens":109}   }
 
       event: message_stop
-      data: {"type":"message_stop"   }
+      data: {"type":"message_stop"        }
 
     headers:
       Content-Type:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 1.323930875s
-- id: 2
+    duration: 3.956710417s
+- id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
     content_length: 52941
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/bash_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,23 +24,25 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-Czjp9999VWZzcDOifgxBIBqcSm4HT","object":"chat.completion.chunk","created":1768830191,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bUV63yG95BqGXw"}
+      data: {"id":"chatcmpl-DIdXpN5qqNdN5azvfHXAPJEMS93dv","object":"chat.completion.chunk","created":1773334285,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"gO6VoQ4c0jcTJD"}
 
-      data: {"id":"chatcmpl-Czjp9999VWZzcDOifgxBIBqcSm4HT","object":"chat.completion.chunk","created":1768830191,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Create"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1z0Fv3Tkd6"}
+      data: {"id":"chatcmpl-DIdXpN5qqNdN5azvfHXAPJEMS93dv","object":"chat.completion.chunk","created":1773334285,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Create"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7uaQuTakyR"}
 
-      data: {"id":"chatcmpl-Czjp9999VWZzcDOifgxBIBqcSm4HT","object":"chat.completion.chunk","created":1768830191,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"C426rRcRvG6"}
+      data: {"id":"chatcmpl-DIdXpN5qqNdN5azvfHXAPJEMS93dv","object":"chat.completion.chunk","created":1773334285,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Test"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"d6vICyjzh2V"}
 
-      data: {"id":"chatcmpl-Czjp9999VWZzcDOifgxBIBqcSm4HT","object":"chat.completion.chunk","created":1768830191,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FngAUBvZG3n71"}
+      data: {"id":"chatcmpl-DIdXpN5qqNdN5azvfHXAPJEMS93dv","object":"chat.completion.chunk","created":1773334285,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4Zu7AvmPNUT"}
 
-      data: {"id":"chatcmpl-Czjp9999VWZzcDOifgxBIBqcSm4HT","object":"chat.completion.chunk","created":1768830191,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Bash"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"k82T3NyIeZn"}
+      data: {"id":"chatcmpl-DIdXpN5qqNdN5azvfHXAPJEMS93dv","object":"chat.completion.chunk","created":1773334285,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"iYm3bqiyxCGad"}
 
-      data: {"id":"chatcmpl-Czjp9999VWZzcDOifgxBIBqcSm4HT","object":"chat.completion.chunk","created":1768830191,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Without"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Vbe4EU54"}
+      data: {"id":"chatcmpl-DIdXpN5qqNdN5azvfHXAPJEMS93dv","object":"chat.completion.chunk","created":1773334285,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Bash"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"RwVYgTFbPw0"}
 
-      data: {"id":"chatcmpl-Czjp9999VWZzcDOifgxBIBqcSm4HT","object":"chat.completion.chunk","created":1768830191,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Timestamp"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"yGQZi2"}
+      data: {"id":"chatcmpl-DIdXpN5qqNdN5azvfHXAPJEMS93dv","object":"chat.completion.chunk","created":1773334285,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Without"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"nBnAbAJ2"}
 
-      data: {"id":"chatcmpl-Czjp9999VWZzcDOifgxBIBqcSm4HT","object":"chat.completion.chunk","created":1768830191,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"fC0Xm5I8zq"}
+      data: {"id":"chatcmpl-DIdXpN5qqNdN5azvfHXAPJEMS93dv","object":"chat.completion.chunk","created":1773334285,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Timestamp"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"UvlWNL"}
 
-      data: {"id":"chatcmpl-Czjp9999VWZzcDOifgxBIBqcSm4HT","object":"chat.completion.chunk","created":1768830191,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[],"usage":{"prompt_tokens":145,"completion_tokens":6,"total_tokens":151,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"PJLKHqx144Bd0A"}
+      data: {"id":"chatcmpl-DIdXpN5qqNdN5azvfHXAPJEMS93dv","object":"chat.completion.chunk","created":1773334285,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"CGx59NvGan"}
+
+      data: {"id":"chatcmpl-DIdXpN5qqNdN5azvfHXAPJEMS93dv","object":"chat.completion.chunk","created":1773334285,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[],"usage":{"prompt_tokens":145,"completion_tokens":7,"total_tokens":152,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"3hP8oQSKkyuZlA"}
 
       data: [DONE]
 
@@ -49,7 +51,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 462.517083ms
+    duration: 1.885268458s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -64,7 +66,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -73,51 +75,51 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_Ij27mvmjxDD5gmCXovoubyvH","type":"function","function":{"name":"bash","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"BCTCJjdNzDQT"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_VwQMTE6mkNpprmMD0IGGrMxz","type":"function","function":{"name":"bash","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"el2YjsSzBqlL"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"YuIUalwA0R7z1ll"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"PfubBvTxQ6dWQmy"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"command"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Mqgpuv9x1J8"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"command"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Zz9KsNFFZAR"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"iDgfiQQtgtW76"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"TZ8uLGjAJ5f8f"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"printf"}}]},"finish_reason":null}],"usage":null,"obfuscation":"rVhYlqwGudag"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"printf"}}]},"finish_reason":null}],"usage":null,"obfuscation":"QXYxt6XWNyts"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" '"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" '"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"hello"}}]},"finish_reason":null}],"usage":null,"obfuscation":"d2FBcV9u6viUr"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"hello"}}]},"finish_reason":null}],"usage":null,"obfuscation":"qQF988ytVTDZz"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" bash"}}]},"finish_reason":null}],"usage":null,"obfuscation":"kfisTsv13dtOK"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" bash"}}]},"finish_reason":null}],"usage":null,"obfuscation":"302JLmTCq4F5U"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"'"}}]},"finish_reason":null}],"usage":null,"obfuscation":"D"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"'"}}]},"finish_reason":null}],"usage":null,"obfuscation":"y"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" >"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" >"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"41471nf1eMMy6"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"AeZ91ohZ1AIDk"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ITI1ImMlFuz86z"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"EoqpCaLDFPVpYw"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"K5YhxUBs32vN9"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"aGBHmqn3qJd6a"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"description"}}]},"finish_reason":null}],"usage":null,"obfuscation":"jslJsV4"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"description"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Cm1d3iv"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"AMMqV5Em1tVJJ"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"fc8f6P8vSkdlY"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"create"}}]},"finish_reason":null}],"usage":null,"obfuscation":"O6qfshIMtFXG"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Create"}}]},"finish_reason":null}],"usage":null,"obfuscation":"whQEXQ80xu5z"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"DBOdUb2odXb8T"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"IRbq8gIAlkANX"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Gmepx0knrQ1SeQ"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"6zEIfffAATRKv9"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" with"}}]},"finish_reason":null}],"usage":null,"obfuscation":"PHeyNa9Q7c6Xp"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" with"}}]},"finish_reason":null}],"usage":null,"obfuscation":"nApRbweWkRr5x"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" content"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ySjrr9EW9l"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" content"}}]},"finish_reason":null}],"usage":null,"obfuscation":"kUzCmZh00W"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Pl41alq9exBCoyV"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"s7a1qWBxlyxutQ7"}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czjp9Q3O9LYPHKiBYkY7GF8rRAaZ4","object":"chat.completion.chunk","created":1768830191,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11131,"completion_tokens":614,"total_tokens":11745,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":576,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"XkIaySlmEpnE8jQ"}
+      data: {"id":"chatcmpl-DIdXpJSbfB5IBf7l73AmfplW3oF3D","object":"chat.completion.chunk","created":1773334285,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11131,"completion_tokens":486,"total_tokens":11617,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":448,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"0kMH11d44xjwxni"}
 
       data: [DONE]
 
@@ -126,7 +128,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 10.960717791s
+    duration: 24.348152625s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -134,14 +136,14 @@ interactions:
     proto_minor: 1
     content_length: 51051
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/download_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,23 +24,27 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjpMASHGa0KE7gogMQsoEw5kBkKm","object":"chat.completion.chunk","created":1768830204,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"tc5dsBZDiWj1KC"}
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"GiZ9v8e8Kc55g7"}
 
-      data: {"id":"chatcmpl-CzjpMASHGa0KE7gogMQsoEw5kBkKm","object":"chat.completion.chunk","created":1768830204,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"content":"Download"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5EIK1K0G"}
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[{"index":0,"delta":{"content":"Download"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"h0c0ZtJ4"}
 
-      data: {"id":"chatcmpl-CzjpMASHGa0KE7gogMQsoEw5kBkKm","object":"chat.completion.chunk","created":1768830204,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"iZvzUc95rMPu"}
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4dNca67Yg8PX"}
 
-      data: {"id":"chatcmpl-CzjpMASHGa0KE7gogMQsoEw5kBkKm","object":"chat.completion.chunk","created":1768830204,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"content":" Save"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"c4VqjRgTgUo"}
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[{"index":0,"delta":{"content":" Save"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Kia8Nvyk5VS"}
 
-      data: {"id":"chatcmpl-CzjpMASHGa0KE7gogMQsoEw5kBkKm","object":"chat.completion.chunk","created":1768830204,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"content":" Example"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"90hZHZYg"}
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[{"index":0,"delta":{"content":" Text"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cCTXN1hVqNO"}
 
-      data: {"id":"chatcmpl-CzjpMASHGa0KE7gogMQsoEw5kBkKm","object":"chat.completion.chunk","created":1768830204,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"content":".txt"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"99FcHSsVLzva"}
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"l1YfWMXLtsa"}
 
-      data: {"id":"chatcmpl-CzjpMASHGa0KE7gogMQsoEw5kBkKm","object":"chat.completion.chunk","created":1768830204,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cdp2a07T0OB"}
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[{"index":0,"delta":{"content":" as"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KUQhpSyhyfVyY"}
 
-      data: {"id":"chatcmpl-CzjpMASHGa0KE7gogMQsoEw5kBkKm","object":"chat.completion.chunk","created":1768830204,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"ijDn66iVAI"}
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[{"index":0,"delta":{"content":" example"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZQRDBCCz"}
 
-      data: {"id":"chatcmpl-CzjpMASHGa0KE7gogMQsoEw5kBkKm","object":"chat.completion.chunk","created":1768830204,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[],"usage":{"prompt_tokens":148,"completion_tokens":6,"total_tokens":154,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"C9d9Vz5rJwg0pZ"}
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[{"index":0,"delta":{"content":".txt"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"caO8u7AbNCKf"}
+
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"qVc0RmKImr"}
+
+      data: {"id":"chatcmpl-DIdYE7QvBnpk6h8OodCAw7ulUfIFj","object":"chat.completion.chunk","created":1773334310,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_7c4b976237","choices":[],"usage":{"prompt_tokens":148,"completion_tokens":8,"total_tokens":156,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"I1axqnXWrKCqGX"}
 
       data: [DONE]
 
@@ -49,7 +53,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 1.09768275s
+    duration: 455.819542ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -64,7 +68,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -73,97 +77,65 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_vKAFFKEbhzE9SoUJFWwNGGft","type":"function","function":{"name":"download","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"LaD7HznU"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7mcScjcT6adosrP"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"file"}}]},"finish_reason":null}],"usage":null,"obfuscation":"HtgHHckWOvVqKM"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Q56BhJBJWYVjA"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"YBQN5YbgRzaeR6V"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ahfCioeMVRZ5cY5"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"i7Xu7uSeVnN4xoT"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"K4Lm6rkaH3O98hn"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"JItgAVChrxofoCt"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"BUTWeMHTH5tnp"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"iyLqqYoJgJplx"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"H5C1RDStzDgSz"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"hsJbAmewr0Fw6"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Q1SmcVO8ZMnIM"}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_PWoJ1pFze69NuO1fztSq5qPK","type":"function","function":{"name":"download","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"WTJKTeYi"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"j"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"0KZKGVQZEF1xM6l"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"I"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"file"}}]},"finish_reason":null}],"usage":null,"obfuscation":"8wYRhUCHmwY4X9"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/download"}}]},"finish_reason":null}],"usage":null,"obfuscation":"iCmnOXgoG"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"q4pLYchsYqtsU"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Crr0GxROpXHeb"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"z7HpgcMaxQ0HY"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/example"}}]},"finish_reason":null}],"usage":null,"obfuscation":"AQEN7gvgkC"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"example"}}]},"finish_reason":null}],"usage":null,"obfuscation":"xszqxX58pRT"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"uUbOqjJ9To4AUV"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"0clbj3O445XnSt"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"y9B2ro2ij29AP"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"LHFa7DkAWgX6z"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"url"}}]},"finish_reason":null}],"usage":null,"obfuscation":"XnFnGBcCh1J8D1S"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"timeout"}}]},"finish_reason":null}],"usage":null,"obfuscation":"p6liFda3yxF"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"rQkHcuZthhsUO"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"iIOmnLoENkcRdgX"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"https"}}]},"finish_reason":null}],"usage":null,"obfuscation":"MBRwvj5xnw1em"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"60"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"://"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ndD2zUHagi7zl2k"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"VDsihJfRSJjBS3g"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"example"}}]},"finish_reason":null}],"usage":null,"obfuscation":"k9lzQC2f9Ad"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"url"}}]},"finish_reason":null}],"usage":null,"obfuscation":"b8IabFeQfNGrzry"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-files"}}]},"finish_reason":null}],"usage":null,"obfuscation":"XbzNlspz1B3Y"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"IkMW5gFIUdpAz"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".online"}}]},"finish_reason":null}],"usage":null,"obfuscation":"jWHVkH97Ezg"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"https"}}]},"finish_reason":null}],"usage":null,"obfuscation":"6e1eyGTiK3n2f"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-con"}}]},"finish_reason":null}],"usage":null,"obfuscation":"qAxHSbFTweycfX"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"://"}}]},"finish_reason":null}],"usage":null,"obfuscation":"uPSKc1y0wEBrFPx"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"vert"}}]},"finish_reason":null}],"usage":null,"obfuscation":"4aV0GpFou7Xm2Z"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"example"}}]},"finish_reason":null}],"usage":null,"obfuscation":"8zLoJK6qzUK"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".com"}}]},"finish_reason":null}],"usage":null,"obfuscation":"XnLU9LmzuuG0zT"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-files"}}]},"finish_reason":null}],"usage":null,"obfuscation":"zcP2IYSATF7g"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/document"}}]},"finish_reason":null}],"usage":null,"obfuscation":"kuHuWvm7P"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".online"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZsaLdkVMupT"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/t"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-con"}}]},"finish_reason":null}],"usage":null,"obfuscation":"0cuekr85B8eSvJ"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"xt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"vert"}}]},"finish_reason":null}],"usage":null,"obfuscation":"UyCTzmPyQ32BmJ"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/example"}}]},"finish_reason":null}],"usage":null,"obfuscation":"5VzfN5xttq"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".com"}}]},"finish_reason":null}],"usage":null,"obfuscation":"IfCgl5uKB3x4Je"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"KrNz5iwO2Ly9PB"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/document"}}]},"finish_reason":null}],"usage":null,"obfuscation":"LpJjgO0W0"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Qj4s158XiChAn"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/t"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"timeout"}}]},"finish_reason":null}],"usage":null,"obfuscation":"gDyG3y5MxMb"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"xt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"U6A4zHOvHKfFdhi"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/example"}}]},"finish_reason":null}],"usage":null,"obfuscation":"qdh1fcb2wd"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"120"}}]},"finish_reason":null}],"usage":null,"obfuscation":"3aLumz17MBL7lAT"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null}],"usage":null,"obfuscation":"hN6XTBrZG88ql9"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"1"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"KwiD0AnI0OKImzD"}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpMsJrhe0pQrJW7fAo6aqN0cf3z","object":"chat.completion.chunk","created":1768830204,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11134,"completion_tokens":508,"total_tokens":11642,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":448,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"bvlXbG68HZi4Wa0"}
+      data: {"id":"chatcmpl-DIdYEl5dbbbPuAKP1nbiqv1BLlJiV","object":"chat.completion.chunk","created":1773334310,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11134,"completion_tokens":172,"total_tokens":11306,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":128,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"jf"}
 
       data: [DONE]
 
@@ -172,7 +144,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 8.685617875s
+    duration: 6.261754042s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -218,22 +190,22 @@ interactions:
       - text/plain; charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 48.289417ms
+    duration: 687.191416ms
 - id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51248
+    content_length: 51189
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/fetch_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,29 +24,27 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VhKLdJMzPv4zTF"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"3nVNa7ebpvr1F5"}
 
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Check"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"hrg10QzQcmP"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":"Check"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"jCnA2CdOU2O"}
 
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" HTML"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"NAFAT7HZQQx"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" HTML"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vpFLFa8URuV"}
 
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" for"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9R8aoN7LrXit"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" for"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"peCVMVGgoHRZ"}
 
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"mDowc6tWWiEJXY"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"k3eppbqdKo3zMm"}
 
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"John"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"wabcvWDKuvBw"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":"John"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"k9OEKYCYLUSu"}
 
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Doe"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"p6l0NKowhtjv"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" Doe"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KUNWoRJak2u9"}
 
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"kDCOIpSDBsg27ap"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QWp6BzId68IqGki"}
 
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Occ"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"hlKaj6olmcVp"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{"content":" Contents"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"S4dQWwl"}
 
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"urrence"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bK6IboJu4"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"Xw2mGPnFns"}
 
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"jz37ZuJ2Cs"}
-
-      data: {"id":"chatcmpl-CzjpXY0NnY3HE3lqVJsX1E0QZnClg","object":"chat.completion.chunk","created":1768830215,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[],"usage":{"prompt_tokens":153,"completion_tokens":9,"total_tokens":162,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"oGOHC8f5F7ED98"}
+      data: {"id":"chatcmpl-DIdYQTZXcvSq5BBDv7j17jujqAaLt","object":"chat.completion.chunk","created":1773334322,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_22cd3c63e9","choices":[],"usage":{"prompt_tokens":153,"completion_tokens":8,"total_tokens":161,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"FfsjQqLMvtdPUq"}
 
       data: [DONE]
 
@@ -55,7 +53,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 485.428208ms
+    duration: 536.229625ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -70,7 +68,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -79,61 +77,61 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_F6EFBkfaARRlpAI1CkH3VWaf","type":"function","function":{"name":"fetch","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"M9VnECfwWzq"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_X6SxLijopTAZUysEKgI5OnsT","type":"function","function":{"name":"fetch","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"YtBpUvOLokk"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Npf6eo6JMMOEVD0"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"4nz2H37kH4na6zL"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"url"}}]},"finish_reason":null}],"usage":null,"obfuscation":"qqv0G605XrVfJnD"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"url"}}]},"finish_reason":null}],"usage":null,"obfuscation":"SsiC9oTgW8pQtZt"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"CofgFi7nb7MBF"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"SSDjzUxS2IlhE"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"https"}}]},"finish_reason":null}],"usage":null,"obfuscation":"IS3nwU3VR0ZcS"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"https"}}]},"finish_reason":null}],"usage":null,"obfuscation":"fRpvfnxaVVRmc"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"://"}}]},"finish_reason":null}],"usage":null,"obfuscation":"hGUtiRTAupMfBTc"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"://"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ciC2gmL4XY4I8kw"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"example"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Dma37e17X7m"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"example"}}]},"finish_reason":null}],"usage":null,"obfuscation":"dTcU3DvPqzi"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-files"}}]},"finish_reason":null}],"usage":null,"obfuscation":"QTRhPCdT5LRw"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-files"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TM338HwB7Hsq"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".online"}}]},"finish_reason":null}],"usage":null,"obfuscation":"I8C3cACEfgs"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".online"}}]},"finish_reason":null}],"usage":null,"obfuscation":"xSonmBkNJTA"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-con"}}]},"finish_reason":null}],"usage":null,"obfuscation":"q6Rm16ReVGegXZ"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-con"}}]},"finish_reason":null}],"usage":null,"obfuscation":"4pFfh86TEXZJsf"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"vert"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Z0qQWaHn7syXso"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"vert"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Zs334a4bWGvFSB"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".com"}}]},"finish_reason":null}],"usage":null,"obfuscation":"DONqe6FbReuR6D"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".com"}}]},"finish_reason":null}],"usage":null,"obfuscation":"NrL8CqBxaOnjIo"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"u"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"a"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"website"}}]},"finish_reason":null}],"usage":null,"obfuscation":"U1BNI0Ps4NR"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"website"}}]},"finish_reason":null}],"usage":null,"obfuscation":"zgPVtKnGdlc"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/html"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Qd8Q37Yw5vnl7"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/html"}}]},"finish_reason":null}],"usage":null,"obfuscation":"s2Sp4c9oulENw"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/example"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TMXt85cVrq"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/example"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ytNXUeUwfs"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".html"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TInprwxPZsbWP"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".html"}}]},"finish_reason":null}],"usage":null,"obfuscation":"36jzQuUkD7prn"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"eAEIMGYzdv86l"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"QtnFmwCQEH06m"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"format"}}]},"finish_reason":null}],"usage":null,"obfuscation":"n3IaVsdVGKc5"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"format"}}]},"finish_reason":null}],"usage":null,"obfuscation":"zjtUwP4SQGfL"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"X5eoiZyqj7vyr"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"g3RUUCJHbO3C1"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"text"}}]},"finish_reason":null}],"usage":null,"obfuscation":"cws2YYUiXo2jkw"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"text"}}]},"finish_reason":null}],"usage":null,"obfuscation":"HOTPaSuiGkzCdT"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"1O02zUaL8GtGu"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"3f9sN4PD0yIVP"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"timeout"}}]},"finish_reason":null}],"usage":null,"obfuscation":"oNhyPlc93Gu"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"timeout"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Al1VYJsLAJ4"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"zPAEzNfKYgvesQM"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"uf2DsF4gHrnESrD"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"60"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"60"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"f"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"k"}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpXuOt1uJaB8CJYfykeAzN4s0hQ","object":"chat.completion.chunk","created":1768830215,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11141,"completion_tokens":170,"total_tokens":11311,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":128,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"U3ZVekXwQbpJ6kO"}
+      data: {"id":"chatcmpl-DIdYQcjjwBQ47CINbpnRynUzyazTe","object":"chat.completion.chunk","created":1773334322,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11141,"completion_tokens":298,"total_tokens":11439,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":256,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"ncKaYNmJHy8ATjz"}
 
       data: [DONE]
 
@@ -142,7 +140,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 3.320884875s
+    duration: 17.054185708s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -213,7 +211,7 @@ interactions:
       - text/html; charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 50.06ms
+    duration: 481.23125ms
 - id: 3
   request:
     proto: HTTP/1.1
@@ -221,14 +219,14 @@ interactions:
     proto_minor: 1
     content_length: 53609
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/glob_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,29 +24,29 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"AN8kcBopW7413w"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"0ptAF4c2EwwXRi"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Finding"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"s9ELbRDAV"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Find"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"IpyCckAdcC60"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" ."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"O9h76mLSPhdkPa"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" ."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4p8cl8qOm9MoiV"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"uzz6sXLNppHb1H"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"LtAVfQWFCtiQ26"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"clQKAC0BtS"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"y9Hg73rArF"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"iMDIUEkMuf4"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"HJyJwsqDe4JW2"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Glob"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"N6NRkYKNrMR"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Current"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ma1c369i"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"phy8zvhGTaAdn"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Directory"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"JmOpW1"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Current"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"M4ITICZy"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Using"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"hfZT2hErIs"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Directory"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1tNMzp"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Glob"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rTl3sY36p8U"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"bPVsxaKeA3"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"tFRAnIPzNy"}
 
-      data: {"id":"chatcmpl-Czjpfn0duo3n07ZV2M1UoetlL84LL","object":"chat.completion.chunk","created":1768830223,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[],"usage":{"prompt_tokens":137,"completion_tokens":9,"total_tokens":146,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"pCeZlHbKDEb9MQ"}
+      data: {"id":"chatcmpl-DIdYqHJyPmEcge5DiRQlWSkaG70Zt","object":"chat.completion.chunk","created":1773334348,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[],"usage":{"prompt_tokens":137,"completion_tokens":9,"total_tokens":146,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"irzm6HTh50QtjR"}
 
       data: [DONE]
 
@@ -55,7 +55,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 565.294416ms
+    duration: 523.979542ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -70,7 +70,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -79,63 +79,23 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_ncFr7K1ClqOGnQYvB92gjBxB","type":"function","function":{"name":"glob","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"nbdBr5izeTx1"}
+      data: {"id":"chatcmpl-DIdYq2o70pWKBDBRK4qu8gFivzqdb","object":"chat.completion.chunk","created":1773334348,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_MkbaHA57slJKdeo9XpvhC2cM","type":"function","function":{"name":"glob","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"uvSRjLhBk2OO"}
 
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Chfkd7aqaSIE8uz"}
+      data: {"id":"chatcmpl-DIdYq2o70pWKBDBRK4qu8gFivzqdb","object":"chat.completion.chunk","created":1773334348,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"zcUFEHerRmxU1fV"}
 
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pattern"}}]},"finish_reason":null}],"usage":null,"obfuscation":"dqLcEpAwkZc"}
+      data: {"id":"chatcmpl-DIdYq2o70pWKBDBRK4qu8gFivzqdb","object":"chat.completion.chunk","created":1773334348,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pattern"}}]},"finish_reason":null}],"usage":null,"obfuscation":"klAkhhAVFid"}
 
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7nqicXp1a838e"}
+      data: {"id":"chatcmpl-DIdYq2o70pWKBDBRK4qu8gFivzqdb","object":"chat.completion.chunk","created":1773334348,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"B2dNVrcun1O39"}
 
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"*."}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYq2o70pWKBDBRK4qu8gFivzqdb","object":"chat.completion.chunk","created":1773334348,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"*."}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"go"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYq2o70pWKBDBRK4qu8gFivzqdb","object":"chat.completion.chunk","created":1773334348,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"go"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"NpFgfkKFwtOZL"}
+      data: {"id":"chatcmpl-DIdYq2o70pWKBDBRK4qu8gFivzqdb","object":"chat.completion.chunk","created":1773334348,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"1C6lVUMssuHTxae"}
 
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"4rtvkAH6nP2V6Q"}
+      data: {"id":"chatcmpl-DIdYq2o70pWKBDBRK4qu8gFivzqdb","object":"chat.completion.chunk","created":1773334348,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"nr94VgPM30iOEsF"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"NJuDLDkMmqNcJ5L"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2Wu7P3T1UUJeqYE"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"PPW3tMBO0FrdEQ4"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"sdmvOZKzU0LznZn"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"KTcmk0gcOPJqi"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ylYfuH9DVN7QW"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"12XW7O5uVC0cY"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"3XIJLn5yxp8HD"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"pJWgE0UzoioVx"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"u"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"A"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/gl"}}]},"finish_reason":null}],"usage":null,"obfuscation":"PxC4KosMYid90Ip"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ob"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"eSzzl2dRgMH11"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"fqQXsJGjBKJmLkX"}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjpfdPRq8Sm4AT8Sp8B4kQEwCH6p","object":"chat.completion.chunk","created":1768830223,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11124,"completion_tokens":171,"total_tokens":11295,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":128,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"87KRXScWTauXKI7"}
+      data: {"id":"chatcmpl-DIdYq2o70pWKBDBRK4qu8gFivzqdb","object":"chat.completion.chunk","created":1773334348,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11124,"completion_tokens":87,"total_tokens":11211,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":64,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"F"}
 
       data: [DONE]
 
@@ -144,22 +104,22 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 3.318970583s
+    duration: 3.811059167s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51056
+    content_length: 50989
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/grep_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,33 +24,33 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TvvAs6UXCKtJpO"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Fhfh695jDrAvFh"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Using"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"8mJifko0V1D"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Using"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"tZHLtEteJNk"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Gre"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7Gbs6dE1n9QQ"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Gre"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"RZKwqKCWsrZi"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"p"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"gsKuzPEBBzSDIgF"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"p"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5Nf9HscEjmRla0a"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" to"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Jd1M7N6pYuirn"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" to"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"LxEFqEDUdkMVT"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Search"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"WPPnJsnrD"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Search"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"sqgdLGPJp"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"3FD4N3lDA8dIIq"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"us5ynSwsWoj2bW"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Package"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"sYRitOpVY"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Package"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"C4zK2aNrH"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Psh8uHyftKu9OaD"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ccUhG2zkBAZJ4YW"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"uB9fseVHm8Qq9"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dpUk1wi8FgDTY"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"toOBGh8cblQKy"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"NxWYI2qTEWncA"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Px8UAjDQ1Y"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dTXf8MjAEF"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"WEiddfZXsi"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"gIjYbBoNo9"}
 
-      data: {"id":"chatcmpl-CzjpkEXSYoFaA6TqesglhFgtKBe5E","object":"chat.completion.chunk","created":1768830228,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[],"usage":{"prompt_tokens":138,"completion_tokens":11,"total_tokens":149,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"fyOv9URDB7WPO"}
+      data: {"id":"chatcmpl-DIdYv3plZLNVUtPKvowfcfTgQO8XC","object":"chat.completion.chunk","created":1773334353,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[],"usage":{"prompt_tokens":138,"completion_tokens":11,"total_tokens":149,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"MmPcoWNMbvn8Y"}
 
       data: [DONE]
 
@@ -59,7 +59,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 529.456125ms
+    duration: 624.648958ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -74,7 +74,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -83,81 +83,41 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_C22OhkhYiHOjsDCCg7uO1RyH","type":"function","function":{"name":"grep","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"e5ioK2OIfRxf"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_WSaot3TwpPWJ4fjVww8FUFKA","type":"function","function":{"name":"grep","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"0dVAYNXlXgKu"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"BpaBoE9yk4DcQzu"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"bhzeHBKpH8S3huH"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"mzL5rWTKPC8YzG"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pattern"}}]},"finish_reason":null}],"usage":null,"obfuscation":"mNQzKXTXLTq"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"j1d3pdYIH06XEmn"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"iXHKfyFZxZuXi"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"imcNtn4PaERqn7q"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"package"}}]},"finish_reason":null}],"usage":null,"obfuscation":"WDqIgmTQe7v"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"dEd90PyzRqjdzq2"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"vUMCYXPodCPFA"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Z1BAKD9wLkWdWEO"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"include"}}]},"finish_reason":null}],"usage":null,"obfuscation":"oays1RItPnc"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"p3JCHcxe7ow5McB"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"bboFko8XvBKOU"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"PVCL9b24NhGRr"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"*."}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"nhdjEITibmwVX"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"go"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"D429SoC4o8WEf"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"YBu97c1AJZVAp"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"9AIvFrbXLLxzw"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"literal"}}]},"finish_reason":null}],"usage":null,"obfuscation":"vSpIO1tIal2"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"FKIik3sqPBZgk"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_text"}}]},"finish_reason":null}],"usage":null,"obfuscation":"19xJBHH923GtQ"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Zw0NBgK7oBTpAKD"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"true"}}]},"finish_reason":null}],"usage":null,"obfuscation":"h82rEBXXo1Wsg9"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"V"}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"G"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"r"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"G"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"grep"}}]},"finish_reason":null}],"usage":null,"obfuscation":"gCGKK1hfvrqqIN"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"9WaM7oO4ayX1i"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"soXqsuAlFJ5wW"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"include"}}]},"finish_reason":null}],"usage":null,"obfuscation":"FxlWQyXbYzZ"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"FRvRNxcFDqOQ5"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"*."}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"go"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"dPtbPcfAEZIcn"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pattern"}}]},"finish_reason":null}],"usage":null,"obfuscation":"6tMCUsZGbSm"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ADJkrHrQDMd1p"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"package"}}]},"finish_reason":null}],"usage":null,"obfuscation":"HvY1oRbvz9L"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"tEmYR7GOt2Lvn"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"literal"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2w4sl6SkyM0"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_text"}}]},"finish_reason":null}],"usage":null,"obfuscation":"hpnreuJLJyVAB"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"HtRmpHYi8ORZsJ6"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"true"}}]},"finish_reason":null}],"usage":null,"obfuscation":"aqhLYX0D8dDXUE"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"A"}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjpkGtlXLndHoEfVkoWOLBuZhmiF","object":"chat.completion.chunk","created":1768830228,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11125,"completion_tokens":181,"total_tokens":11306,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":128,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"YsZa3bS8XyMOTKr"}
+      data: {"id":"chatcmpl-DIdYv4TFRhZCqLDEvfQtrozZflLy7","object":"chat.completion.chunk","created":1773334353,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11125,"completion_tokens":161,"total_tokens":11286,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":128,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"aypckgHT8X0nwUH"}
 
       data: [DONE]
 
@@ -166,22 +126,22 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 3.598286334s
+    duration: 4.718557916s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51152
+    content_length: 51085
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/ls_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,23 +24,27 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-Czjpp21JrAlDsrAmzS6iFO2WfXAXE","object":"chat.completion.chunk","created":1768830233,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"n0nG28t5ZBF6ER"}
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7lajKJiYpVB229"}
 
-      data: {"id":"chatcmpl-Czjpp21JrAlDsrAmzS6iFO2WfXAXE","object":"chat.completion.chunk","created":1768830233,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Listing"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Qy6L2dEVd"}
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Listing"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9OLzOjJTW"}
 
-      data: {"id":"chatcmpl-Czjpp21JrAlDsrAmzS6iFO2WfXAXE","object":"chat.completion.chunk","created":1768830233,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"OGWA86hnC9"}
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"esQpNVXJ2j"}
 
-      data: {"id":"chatcmpl-Czjpp21JrAlDsrAmzS6iFO2WfXAXE","object":"chat.completion.chunk","created":1768830233,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"d0UrCtvqjuH"}
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"fIyyjIuH7EHnd"}
 
-      data: {"id":"chatcmpl-Czjpp21JrAlDsrAmzS6iFO2WfXAXE","object":"chat.completion.chunk","created":1768830233,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" the"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KJia9s0n7rDV"}
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Current"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Mhh3mf8I"}
 
-      data: {"id":"chatcmpl-Czjpp21JrAlDsrAmzS6iFO2WfXAXE","object":"chat.completion.chunk","created":1768830233,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" ls"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"3rzKom80l93ug"}
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Directory"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"NCsVhg"}
 
-      data: {"id":"chatcmpl-Czjpp21JrAlDsrAmzS6iFO2WfXAXE","object":"chat.completion.chunk","created":1768830233,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Command"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"lyiPHQGe"}
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"BIxWMhlwlQO"}
 
-      data: {"id":"chatcmpl-Czjpp21JrAlDsrAmzS6iFO2WfXAXE","object":"chat.completion.chunk","created":1768830233,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"JDQYzoRO2P"}
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" ls"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"AWQwV5anzzJ9Z"}
 
-      data: {"id":"chatcmpl-Czjpp21JrAlDsrAmzS6iFO2WfXAXE","object":"chat.completion.chunk","created":1768830233,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[],"usage":{"prompt_tokens":135,"completion_tokens":6,"total_tokens":141,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"EPoJDe4VnXLh1e"}
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Command"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"JtOP1CJX"}
+
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"pavLwBMXC9"}
+
+      data: {"id":"chatcmpl-DIdZ3WGqCbKeYkYzkzZogVXkuNufD","object":"chat.completion.chunk","created":1773334361,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[],"usage":{"prompt_tokens":135,"completion_tokens":8,"total_tokens":143,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"cWjmkE18o8vwX6"}
 
       data: [DONE]
 
@@ -49,7 +53,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 411.950625ms
+    duration: 2.201591583s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -64,7 +68,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -73,21 +77,53 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjppNVSJr0dBv7RvWZHiX5bSmJ2Z","object":"chat.completion.chunk","created":1768830233,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_t7XgeWZf34ipqEjwkep472NL","type":"function","function":{"name":"ls","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"mnKLeXUvlwfgyq"}
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_h09lCrJkB8wWVeLMBMjSxOqs","type":"function","function":{"name":"ls","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"VQwNplUeNxXwUL"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"3eXA8Katho7sj5V"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"230WKla2YaAstD"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Rz2zrQqsIeyR2mg"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"JE7sOuQJJbIS1Yf"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"UDJc7c0zvTBP5vQ"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"VmKDA3quIVesABa"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"KsiXfQVZgjgg8vG"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"b1aZW2PXLrP5U"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"3OeYVKGBWymew"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Ld3ZgArxeHykA"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"8y4L6KeIAfZ4B"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"NNYlt7yW8aJ6r"}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"g"}
 
-      data: {"id":"chatcmpl-CzjppNVSJr0dBv7RvWZHiX5bSmJ2Z","object":"chat.completion.chunk","created":1768830233,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"JlLPfgh6s7ubqXG"}
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"z"}
 
-      data: {"id":"chatcmpl-CzjppNVSJr0dBv7RvWZHiX5bSmJ2Z","object":"chat.completion.chunk","created":1768830233,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"5EDC7QEAz25XqY"}
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"w"}
 
-      data: {"id":"chatcmpl-CzjppNVSJr0dBv7RvWZHiX5bSmJ2Z","object":"chat.completion.chunk","created":1768830233,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"nfKIW54p4h0eua3"}
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ls"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjppNVSJr0dBv7RvWZHiX5bSmJ2Z","object":"chat.completion.chunk","created":1768830233,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \".\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"roU0CmII8qMA"}
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"36QiBo6CU1deH"}
 
-      data: {"id":"chatcmpl-CzjppNVSJr0dBv7RvWZHiX5bSmJ2Z","object":"chat.completion.chunk","created":1768830233,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Y"}
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TqhBp7uC41fLhCR"}
 
-      data: {"id":"chatcmpl-CzjppNVSJr0dBv7RvWZHiX5bSmJ2Z","object":"chat.completion.chunk","created":1768830233,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjppNVSJr0dBv7RvWZHiX5bSmJ2Z","object":"chat.completion.chunk","created":1768830233,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11122,"completion_tokens":87,"total_tokens":11209,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":64,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"Z"}
+      data: {"id":"chatcmpl-DIdZ2DDwQ4HU8djkb8tI66YRJc9zA","object":"chat.completion.chunk","created":1773334360,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11122,"completion_tokens":167,"total_tokens":11289,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":128,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"5Shl1OKpqVMvzRO"}
 
       data: [DONE]
 
@@ -96,22 +132,22 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.44783025s
+    duration: 6.5209585s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 50996
+    content_length: 51045
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/multiedit_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,41 +24,41 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"w8sqWhzpcnHs6W"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"iANduA3rOGWrUi"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Edit"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ctpbhoqwzTZz"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Edit"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"3IstHaFYcuV7"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TGykGuKGPdZeN0"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bjYGtN3d8e6uXs"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"61NaUxH95hU"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"txXxy8cxqbv"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"eDLlGtoT0ySeGqD"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9xGrPfehWazbopl"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" World"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"8EscbuFp3X"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" World"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"lKOAsjxlJA"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"!'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FDQCMsLNraJW6l"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"!'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"M8uljU63Yx2qgT"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" to"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"PZtbSLH8ktyFq"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" to"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"UrAQqvzfD9YDn"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"31dms5V3FvO5X1"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"084P6iZVULHJk8"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"oLxfEtBAmAi"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ouKrrdJ0ll5"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"YCAS81ZDASz7hmB"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"nbgZdMx96LiA1YH"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Crush"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZBh8BjoPYS"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Crush"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1ZQDg5fwhs"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"!'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"LCOdBS6YPqpvye"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"!'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"gKFCin4HrPJYUK"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"woB21MizPF1qF"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"z9w6Gyb4aQWi8"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"3vlYGdke04Q"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"HDEHvBo973S"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":".go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"n2Zprwwja22n4"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":".go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"eQV1sg93r4wfB"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"syai28mVpc"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"qc1ig2iugl"}
 
-      data: {"id":"chatcmpl-CzjptZarMAkGsZTFKUM0EMMzEmTkf","object":"chat.completion.chunk","created":1768830237,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[],"usage":{"prompt_tokens":157,"completion_tokens":15,"total_tokens":172,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"52ea3nLBvH3wB"}
+      data: {"id":"chatcmpl-DIdhupjncVHOAcOyd2Ket03ysMRe2","object":"chat.completion.chunk","created":1773334910,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[],"usage":{"prompt_tokens":157,"completion_tokens":15,"total_tokens":172,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"zXFdWwxGIwErq"}
 
       data: [DONE]
 
@@ -67,7 +67,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 469.62075ms
+    duration: 961.93275ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -82,7 +82,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -91,69 +91,69 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_qHVuzqteBkuPtteWYvQZ4iCo","type":"function","function":{"name":"ls","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"iANtmD8wgrizKH"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_Ve9O9wNM5uFuasxSd96zQX1m","type":"function","function":{"name":"ls","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"mctXq1R57YBBop"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"35XBZPkUzi7zwrY"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"9tdHOW3v0LcOtvU"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"HK8SCqWrnSVbG5"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2kLjsiVPnL9GBX"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"BK0EdV8C8NchqoK"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"hhYk6vpNDfKzCPY"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"YxSOZ449euilcj"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"9C347imGWmTrKY"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"K3mzm9yTkv1Duht"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"7yLGzLQ7htxtUuJ"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"WHA101cJj46XjUt"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2TAznh699WJCTDo"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"lga3CEBticodEgk"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"gfitgNqi0jE2e3O"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"RitCPg25W0pcg"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"m4IcCagXJlQ0o"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TO7Hp2lagyMOJ"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"E0fvmL4wOSgNq"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"QE0MpVk1BIVtm"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"VSTLqJmcI7rIj"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"IZgPu9gBLy93n"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"lA7ChYReysp0n"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2SgJ77E4mE4fh"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"SR4EnztG32Wxb"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"T"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"p"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"F"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"r"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/m"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/m"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ult"}}]},"finish_reason":null}],"usage":null,"obfuscation":"m8KfHhK34u7YoCy"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ult"}}]},"finish_reason":null}],"usage":null,"obfuscation":"zLyieWd6Vs8s4DJ"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ied"}}]},"finish_reason":null}],"usage":null,"obfuscation":"oe2hrfGROy41KgZ"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ied"}}]},"finish_reason":null}],"usage":null,"obfuscation":"8GekxItMvzvLy9U"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"it"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"it"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"g2yrez81rMn9h"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Dh8dNl46ZpquW"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\","}}]},"finish_reason":null}],"usage":null,"obfuscation":"mD9bMKh5eppQVyO"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\","}}]},"finish_reason":null}],"usage":null,"obfuscation":"Yp2Gu7EdATmfYpf"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null}],"usage":null,"obfuscation":"BZDGFOC0fvZeawr"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Jt9qhDBJg5Iutml"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"depth"}}]},"finish_reason":null}],"usage":null,"obfuscation":"YrelBqfUVe0mK"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"depth"}}]},"finish_reason":null}],"usage":null,"obfuscation":"edhoBW5ILZqhg"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"p8WbmdLUzheYahi"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"C0IwakMacwfmMbA"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"7"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"a"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null}],"usage":null,"obfuscation":"4"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null}],"usage":null,"obfuscation":"j"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"O"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"a"}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjptTLfHvHz5D2xQHzt75fJnZkOe","object":"chat.completion.chunk","created":1768830237,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11146,"completion_tokens":47,"total_tokens":11193,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"At"}
+      data: {"id":"chatcmpl-DIdhub1gmw8MJs2Wh4Y29PlOp8psX","object":"chat.completion.chunk","created":1773334910,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11146,"completion_tokens":47,"total_tokens":11193,"prompt_tokens_details":{"cached_tokens":11136,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"M"}
 
       data: [DONE]
 
@@ -162,7 +162,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 1.90184075s
+    duration: 1.672082208s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -170,14 +170,14 @@ interactions:
     proto_minor: 1
     content_length: 51160
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/parallel_tool_calls.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,27 +24,27 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Thp3GWPBtcfpFl"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"RFzsvHbCvGNdVI"}
 
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Parallel"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"WE3oG6Dc"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Finding"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"kf6TyrMNB"}
 
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Execution"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"BhxBUy"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"EcV7u1SxcEIF"}
 
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" of"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"CerEoaZkPYIr3"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Listing"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"JIiHceno"}
 
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"njaky8RPXtu"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" ."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cg3PVIERxPTFLS"}
 
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Search"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ShEOqgaKt"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vcLx1GcodxRQyG"}
 
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"yRmX9ZfGFg03"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"447BTtDiIw"}
 
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Directory"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"R5Yuho"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dekyXUvs7LlL0"}
 
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Listing"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"XV9SCefj"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Parallel"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"H7cHwqR"}
 
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"ChtzpEnrlI"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"wvjLkNtatH"}
 
-      data: {"id":"chatcmpl-CzjqSIDKk0IIoCdj8CTB9GrShYjL0","object":"chat.completion.chunk","created":1768830272,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[],"usage":{"prompt_tokens":154,"completion_tokens":8,"total_tokens":162,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"Cnz16IJuNPSTX6"}
+      data: {"id":"chatcmpl-DIdb2KX6s3e67I6yTJH1D4WI5b69R","object":"chat.completion.chunk","created":1773334484,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[],"usage":{"prompt_tokens":154,"completion_tokens":8,"total_tokens":162,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"bNHjBQuNoikQQJ"}
 
       data: [DONE]
 
@@ -53,7 +53,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 743.282416ms
+    duration: 664.656334ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -68,7 +68,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -77,85 +77,27 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null},"finish_reason":null}],"obfuscation":"GK5uKnc"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null},"finish_reason":null}],"obfuscation":"avdeB0f"}
 
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_xphEd5HizHiv98PMAKxPXNC5","type":"function","function":{"name":"glob","arguments":""}}]},"finish_reason":null}],"obfuscation":"4kLPJfeXmzGBT"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_RCthE1Gn4h9oZHM2Y4OsGVef","type":"function","function":{"name":"glob","arguments":""}}]},"finish_reason":null}],"obfuscation":"qZB08mVOnUeYa"}
 
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\"pa"}}]},"finish_reason":null}],"obfuscation":"iNitewfWCL2X7"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\"pa"}}]},"finish_reason":null}],"obfuscation":"i5ryDChsstKQF"}
 
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ttern"}}]},"finish_reason":null}],"obfuscation":"Mj5PrzUJKCm8D"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ttern"}}]},"finish_reason":null}],"obfuscation":"Ra0jcye2wJVnj"}
 
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\": \"**"}}]},"finish_reason":null}],"obfuscation":"IPjv95Ucmc"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\": \"**"}}]},"finish_reason":null}],"obfuscation":"SyZe6vPiFV"}
 
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/*.g"}}]},"finish_reason":null}],"obfuscation":"MhFI3SFNcmkifl"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/*.g"}}]},"finish_reason":null}],"obfuscation":"3nGiVChgAcrsQb"}
 
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"o\", \""}}]},"finish_reason":null}],"obfuscation":"XiVRohzEYJ5"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"o\"}"}}]},"finish_reason":null}],"obfuscation":"cBW8gvhEFPQSYs"}
 
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path\":"}}]},"finish_reason":null}],"obfuscation":"gvVKyDDji1f"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_BHkFKsDy2kRIUT8XXIRKtvSt","type":"function","function":{"name":"ls","arguments":""}}]},"finish_reason":null}],"obfuscation":"0xaARwoAt8EHApQ"}
 
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \"/t"}}]},"finish_reason":null}],"obfuscation":"GEszK8orfM6qi"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"{}"}}]},"finish_reason":null}],"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"mp/cr"}}]},"finish_reason":null}],"obfuscation":"UzQ3ydRWUbohH"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush-te"}}]},"finish_reason":null}],"obfuscation":"Pxapvsyv25I0"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"st/T"}}]},"finish_reason":null}],"obfuscation":"nMcRgHH3td6RVg"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"estCo"}}]},"finish_reason":null}],"obfuscation":"v3gKpULPqghHt"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"derAge"}}]},"finish_reason":null}],"obfuscation":"VOsp0SZ8RQzN"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"nt/o"}}]},"finish_reason":null}],"obfuscation":"XgpWHJmm7QPE78"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"penai"}}]},"finish_reason":null}],"obfuscation":"0DztYpQR0SGIU"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-gpt-5"}}]},"finish_reason":null}],"obfuscation":"AhKoBGjMd08q"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/par"}}]},"finish_reason":null}],"obfuscation":"nkjMuR41BUN93Y"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"allel"}}]},"finish_reason":null}],"obfuscation":"W3KLmTdGEfEbA"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_tool_"}}]},"finish_reason":null}],"obfuscation":"s89pAWkmZ3x5"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"call"}}]},"finish_reason":null}],"obfuscation":"PieNW68XgSn8fH"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"s\"}"}}]},"finish_reason":null}],"obfuscation":"B0V4X4kM8mQDAl"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_gsIBW9ZNEP3hrHHbivcR6dRh","type":"function","function":{"name":"ls","arguments":""}}]},"finish_reason":null}],"obfuscation":"G3HliFZOuDXFCfH"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"{\"pa"}}]},"finish_reason":null}],"obfuscation":"dDnbhNqqzeUGX"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"th\": "}}]},"finish_reason":null}],"obfuscation":"8RpPPqhBMwVC"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"\"/tmp/"}}]},"finish_reason":null}],"obfuscation":"3wVy2dfKNzx"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"crus"}}]},"finish_reason":null}],"obfuscation":"SqkumqsG4VWkP1"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"h-tes"}}]},"finish_reason":null}],"obfuscation":"CMDkcTMnMAu7u"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"t/Test"}}]},"finish_reason":null}],"obfuscation":"ZFcokR7Xa0zL"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"Code"}}]},"finish_reason":null}],"obfuscation":"clyoPlMJPLWmqr"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"rAgen"}}]},"finish_reason":null}],"obfuscation":"iBF2epS1VwyvI"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"t/open"}}]},"finish_reason":null}],"obfuscation":"afZufkNTgewY"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"ai-g"}}]},"finish_reason":null}],"obfuscation":"lO4Gv5wJsVXXF4"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"pt-5/"}}]},"finish_reason":null}],"obfuscation":"VkQnqbV0RPNc3"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"parall"}}]},"finish_reason":null}],"obfuscation":"4vsai4b5D7fz"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"el_t"}}]},"finish_reason":null}],"obfuscation":"xpANevVBVWPjKk"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"ool_c"}}]},"finish_reason":null}],"obfuscation":"SF1KzyJOrV4Gc"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"usage":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"alls\"}"}}]},"finish_reason":null}],"obfuscation":"yniyOPL27lG"}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
-
-      data: {"id":"chatcmpl-CzjqSTnRbJYsjbRdnjDKm18Jqf5FI","object":"chat.completion.chunk","created":1768830272,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11142,"completion_tokens":348,"total_tokens":11490,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":256,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"FybEHYTSvLAIguK"}
+      data: {"id":"chatcmpl-DIdb2LqmJBarTmcH57HmDcdnnFX88","object":"chat.completion.chunk","created":1773334484,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11142,"completion_tokens":436,"total_tokens":11578,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":384,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"U4RQb6SIWLsX0Ol"}
 
       data: [DONE]
 
@@ -164,22 +106,22 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 6.718858084s
+    duration: 21.44828375s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51518
+    content_length: 51362
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/read_a_file.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,19 +24,21 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjouBic6rLxQKHupRoN2PEBP7e5B","object":"chat.completion.chunk","created":1768830176,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FDQDoWDckcMAqF"}
+      data: {"id":"chatcmpl-DIdWswtHtxcJa8Sn8wZCXtVmPWNkK","object":"chat.completion.chunk","created":1773334226,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pUedaoeP2EqwWY"}
 
-      data: {"id":"chatcmpl-CzjouBic6rLxQKHupRoN2PEBP7e5B","object":"chat.completion.chunk","created":1768830176,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"content":"Reading"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"SU89d8sKD"}
+      data: {"id":"chatcmpl-DIdWswtHtxcJa8Sn8wZCXtVmPWNkK","object":"chat.completion.chunk","created":1773334226,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[{"index":0,"delta":{"content":"Reading"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"lua9ZgUIz"}
 
-      data: {"id":"chatcmpl-CzjouBic6rLxQKHupRoN2PEBP7e5B","object":"chat.completion.chunk","created":1768830176,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"content":" a"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"W3MgsDujc3Eaul"}
+      data: {"id":"chatcmpl-DIdWswtHtxcJa8Sn8wZCXtVmPWNkK","object":"chat.completion.chunk","created":1773334226,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[{"index":0,"delta":{"content":" the"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VxycIoL57Nbq"}
 
-      data: {"id":"chatcmpl-CzjouBic6rLxQKHupRoN2PEBP7e5B","object":"chat.completion.chunk","created":1768830176,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"fgaFCwoo9EflX"}
+      data: {"id":"chatcmpl-DIdWswtHtxcJa8Sn8wZCXtVmPWNkK","object":"chat.completion.chunk","created":1773334226,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bYa0SQSGULJJ9"}
 
-      data: {"id":"chatcmpl-CzjouBic6rLxQKHupRoN2PEBP7e5B","object":"chat.completion.chunk","created":1768830176,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{"content":" Module"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"OembTm90U"}
+      data: {"id":"chatcmpl-DIdWswtHtxcJa8Sn8wZCXtVmPWNkK","object":"chat.completion.chunk","created":1773334226,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[{"index":0,"delta":{"content":" Mod"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QFUyfG5cg2Tc"}
 
-      data: {"id":"chatcmpl-CzjouBic6rLxQKHupRoN2PEBP7e5B","object":"chat.completion.chunk","created":1768830176,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"fz77ZNNj1l"}
+      data: {"id":"chatcmpl-DIdWswtHtxcJa8Sn8wZCXtVmPWNkK","object":"chat.completion.chunk","created":1773334226,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vqFyVhyEF6d"}
 
-      data: {"id":"chatcmpl-CzjouBic6rLxQKHupRoN2PEBP7e5B","object":"chat.completion.chunk","created":1768830176,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_deacdd5f6f","choices":[],"usage":{"prompt_tokens":129,"completion_tokens":4,"total_tokens":133,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"cXX7n4KtoXfrel"}
+      data: {"id":"chatcmpl-DIdWswtHtxcJa8Sn8wZCXtVmPWNkK","object":"chat.completion.chunk","created":1773334226,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"zP9ztECoBw"}
+
+      data: {"id":"chatcmpl-DIdWswtHtxcJa8Sn8wZCXtVmPWNkK","object":"chat.completion.chunk","created":1773334226,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_b7c8e3f100","choices":[],"usage":{"prompt_tokens":129,"completion_tokens":5,"total_tokens":134,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"3eVPENhdYX3vmH"}
 
       data: [DONE]
 
@@ -45,7 +47,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.249190917s
+    duration: 1.509886917s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -60,7 +62,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -69,61 +71,61 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_uQJrYD0mS1B5A8eI6R0YXdeu","type":"function","function":{"name":"ls","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"hi6PdCsJV9DhpN"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_EJ3FIKbAP2mNpsW2pXiZYu8P","type":"function","function":{"name":"ls","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"shELewX3YFiZO8"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"sXpmubQagZAFSA2"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"FYr4htGznZiscxE"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"yZGhqvdtkFo0Eg"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ROoblIlKARHvyu"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"AMzRtrNb0zXaX9h"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"My4jT6Oe8O2ahuZ"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"bTrrKnlIN5os0c6"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"P4N9G2VIbhol07S"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"UydtrVWzP6YzjmP"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"JQDhNakHerxzx5H"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"OoebpVn0IQJSQr5"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"oKgrZeCK37xBwVi"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"qNgDpiybtiFp5t7"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"OpIdzOhE7lSTMKP"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"nMpWnOMLAxCwy"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"cXirKAcehLqQm"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"WSWhev04dgnS2"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"K32TrZviRPUII"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"RYuXaoO0zyBLe"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"cmuDWP2DkSyNV"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"XHX1L1biJYlrl"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"zFE1dWb6lwYjZ"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"L5vvksLEtlNgD"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"YXFaWLzpwybBy"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"F"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"o"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"M"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"X"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/read"}}]},"finish_reason":null}],"usage":null,"obfuscation":"cRGV3shSA9uK4"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/read"}}]},"finish_reason":null}],"usage":null,"obfuscation":"CacYrMkmRWB6I"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_a"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_a"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_file"}}]},"finish_reason":null}],"usage":null,"obfuscation":"RwoFhB912E8iX"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_file"}}]},"finish_reason":null}],"usage":null,"obfuscation":"fryDbE0rKjXlb"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZhCx7zX7MO5e8"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"V0qU52UYqp1tT"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"depth"}}]},"finish_reason":null}],"usage":null,"obfuscation":"i1NQOu5EwzXq3"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"depth"}}]},"finish_reason":null}],"usage":null,"obfuscation":"v3e5w8tPGfPyd"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"RMScAGdEgGF4p4y"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"EREEBG2oIFlzQ8F"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null}],"usage":null,"obfuscation":"0"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null}],"usage":null,"obfuscation":"u"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"s"}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"b"}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjouKL8ghrxO3nrQ0jMs1cKVOQDw","object":"chat.completion.chunk","created":1768830176,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11116,"completion_tokens":107,"total_tokens":11223,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":64,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":""}
+      data: {"id":"chatcmpl-DIdWstwD6KrJ2uNQi77xzuIauomTI","object":"chat.completion.chunk","created":1773334226,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11116,"completion_tokens":171,"total_tokens":11287,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":128,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"vQ"}
 
       data: [DONE]
 
@@ -132,7 +134,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 3.779040958s
+    duration: 4.837187708s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -140,14 +142,14 @@ interactions:
     proto_minor: 1
     content_length: 51035
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/simple_test.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,15 +24,17 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-Czjoqy3qhdl7QlaVUezlnqVq4Su8C","object":"chat.completion.chunk","created":1768830172,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TDnVpvMW88Xmde"}
+      data: {"id":"chatcmpl-DIdWnm56V1y8NH3Bc7K8Qy60YeYsc","object":"chat.completion.chunk","created":1773334221,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"v83bH8vMYXG0sA"}
 
-      data: {"id":"chatcmpl-Czjoqy3qhdl7QlaVUezlnqVq4Su8C","object":"chat.completion.chunk","created":1768830172,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":"Friendly"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"xQaCvs2o"}
+      data: {"id":"chatcmpl-DIdWnm56V1y8NH3Bc7K8Qy60YeYsc","object":"chat.completion.chunk","created":1773334221,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Basic"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pYFzUhshaFF"}
 
-      data: {"id":"chatcmpl-Czjoqy3qhdl7QlaVUezlnqVq4Su8C","object":"chat.completion.chunk","created":1768830172,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{"content":" Greeting"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"k1WWCN6"}
+      data: {"id":"chatcmpl-DIdWnm56V1y8NH3Bc7K8Qy60YeYsc","object":"chat.completion.chunk","created":1773334221,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Greeting"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZRGKPOG"}
 
-      data: {"id":"chatcmpl-Czjoqy3qhdl7QlaVUezlnqVq4Su8C","object":"chat.completion.chunk","created":1768830172,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"mnZ0FAHYdF"}
+      data: {"id":"chatcmpl-DIdWnm56V1y8NH3Bc7K8Qy60YeYsc","object":"chat.completion.chunk","created":1773334221,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Message"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"2j2O6qIt"}
 
-      data: {"id":"chatcmpl-Czjoqy3qhdl7QlaVUezlnqVq4Su8C","object":"chat.completion.chunk","created":1768830172,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_cbf1785567","choices":[],"usage":{"prompt_tokens":126,"completion_tokens":2,"total_tokens":128,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"DmwwbNsKumqAUt"}
+      data: {"id":"chatcmpl-DIdWnm56V1y8NH3Bc7K8Qy60YeYsc","object":"chat.completion.chunk","created":1773334221,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"sixpqtFiiz"}
+
+      data: {"id":"chatcmpl-DIdWnm56V1y8NH3Bc7K8Qy60YeYsc","object":"chat.completion.chunk","created":1773334221,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[],"usage":{"prompt_tokens":126,"completion_tokens":3,"total_tokens":129,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"GPnDh0UExdHoh3"}
 
       data: [DONE]
 
@@ -41,7 +43,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 1.949141s
+    duration: 1.762343791s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -56,7 +58,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -65,13 +67,13 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjoqzS7UlbtYLkQzS0NKLwBpvSGX","object":"chat.completion.chunk","created":1768830172,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"1F3SYfogCm"}
+      data: {"id":"chatcmpl-DIdWnRgmBDgLP8xCycwQpsvaJ0Hhk","object":"chat.completion.chunk","created":1773334221,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"Hs1HjW2dTG"}
 
-      data: {"id":"chatcmpl-CzjoqzS7UlbtYLkQzS0NKLwBpvSGX","object":"chat.completion.chunk","created":1768830172,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Hi"},"finish_reason":null}],"usage":null,"obfuscation":"4kTjKXLpeN"}
+      data: {"id":"chatcmpl-DIdWnRgmBDgLP8xCycwQpsvaJ0Hhk","object":"chat.completion.chunk","created":1773334221,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Hi"},"finish_reason":null}],"usage":null,"obfuscation":"ukVwx89GJI"}
 
-      data: {"id":"chatcmpl-CzjoqzS7UlbtYLkQzS0NKLwBpvSGX","object":"chat.completion.chunk","created":1768830172,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":null,"obfuscation":"pjsGfA"}
+      data: {"id":"chatcmpl-DIdWnRgmBDgLP8xCycwQpsvaJ0Hhk","object":"chat.completion.chunk","created":1773334221,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":null,"obfuscation":"to8nrt"}
 
-      data: {"id":"chatcmpl-CzjoqzS7UlbtYLkQzS0NKLwBpvSGX","object":"chat.completion.chunk","created":1768830172,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11112,"completion_tokens":74,"total_tokens":11186,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":64,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"t4Zc"}
+      data: {"id":"chatcmpl-DIdWnRgmBDgLP8xCycwQpsvaJ0Hhk","object":"chat.completion.chunk","created":1773334221,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11112,"completion_tokens":10,"total_tokens":11122,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"2YhMx"}
 
       data: [DONE]
 
@@ -80,4 +82,4 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 4.358619209s
+    duration: 4.659188375s

internal/agent/testdata/TestCoderAgent/openai-gpt-5/sourcegraph_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,35 +24,31 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"R95a3iTSrhETUb"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"nC4vu98Cw4nNoH"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Search"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5SjkmG65LN"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Searching"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"fRWtjkH"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"PuilvpfYYLgM5x"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" func"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"gj7k0LEExwr"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"func"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KvyZFscXzPeq"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"IWVpT73Ux2j"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"8eYsEmg7Ldr"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"urBoCLVxs2xhI"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"8kZnxLjyyHcmhAJ"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Iz9TWBXae7beg"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"iNM0tkifwexEs"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Re"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"abGDp7jCITZ22"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"CVXDb6ymhmDeW"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"positories"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZrI0xz"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Re"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"CQ8kNt0Llm7Uy"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZpNGg9OTt2G"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"positories"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KbLwwJ"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Source"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"hibLob7hq"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Using"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"L75wF53MuD"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"graph"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"b268xHiIIum"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Source"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"MKSonEgLp"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"ZqBBu7fqo7"}
 
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"graph"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"w04Ibu9PdcW"}
-
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"ukXsXPKqhG"}
-
-      data: {"id":"chatcmpl-Czk1rASc3CYebBgESFcb9JMKFkFn1","object":"chat.completion.chunk","created":1768830979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[],"usage":{"prompt_tokens":138,"completion_tokens":12,"total_tokens":150,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"hPBvtCMxVf9cE"}
+      data: {"id":"chatcmpl-DIdaK0c0xGAyhl5bETTVRBNWyfJkF","object":"chat.completion.chunk","created":1773334440,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[],"usage":{"prompt_tokens":138,"completion_tokens":10,"total_tokens":148,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"KGIEhLUB5DNKe"}
 
       data: [DONE]
 
@@ -61,7 +57,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 552.732542ms
+    duration: 997.235292ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -76,7 +72,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -85,59 +81,59 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_CgyK0WLghCUTW2ZbYLnMnD1Z","type":"function","function":{"name":"sourcegraph","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"B1tsl"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_23CPPrluHdAH1KhfgzKiNHGr","type":"function","function":{"name":"sourcegraph","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"wa2tH"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"qZrrJlpLcuMLBo8"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"drQ30pzUlOAVaPL"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"query"}}]},"finish_reason":null}],"usage":null,"obfuscation":"W2ul0gDRlrYLH"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"query"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TfpJvL3AVgPY7"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"G5D2UzXDbVvXU"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"fSPKZIVkuWFKd"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"lang"}}]},"finish_reason":null}],"usage":null,"obfuscation":"aN0GCVkeIgrZcK"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"lang"}}]},"finish_reason":null}],"usage":null,"obfuscation":"rGtENrnYO8J8GH"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"r"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"K"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"go"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"go"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"8Fx1mvLa6XYzZ"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"tUKRYKKBamq59"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"func"}}]},"finish_reason":null}],"usage":null,"obfuscation":"LitOXgQtXoZZAg"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"func"}}]},"finish_reason":null}],"usage":null,"obfuscation":"YP10DeaNSUv92L"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" main"}}]},"finish_reason":null}],"usage":null,"obfuscation":"RV2khQu970NlZ"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" main"}}]},"finish_reason":null}],"usage":null,"obfuscation":"cFPV97oxildMs"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"4KL1lfn05P9fsF"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"IGCEgKIbBOjfM0"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" select"}}]},"finish_reason":null}],"usage":null,"obfuscation":"s9uw14oucV2"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"9BpFqIxPjonW1"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":":file"}}]},"finish_reason":null}],"usage":null,"obfuscation":"IKxMgukNTENan"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"count"}}]},"finish_reason":null}],"usage":null,"obfuscation":"DsoQhFl7bFo08"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" count"}}]},"finish_reason":null}],"usage":null,"obfuscation":"wQ8dhxWbUEht"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"wcAfpMcCKWuLREV"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"k"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"10"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"10"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"LPSQHuDQN2knaUr"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"Pp9jzsqNqwCIL"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"context"}}]},"finish_reason":null}],"usage":null,"obfuscation":"3PVdtFL2WKu"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"count"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TcWtuxOFmQImT"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_window"}}]},"finish_reason":null}],"usage":null,"obfuscation":"QcQyP6Q9UQI"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Xnxyg0vDjDluUbd"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TaTWEL2WDfxmktF"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"10"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"y"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"PBs3jI56zD2TObN"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"beixje6snBmHRbt"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"timeout"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ehmJ2SBXRjf"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"timeout"}}]},"finish_reason":null}],"usage":null,"obfuscation":"2yBAN0girgS"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"hil0OCl0TyCwKpI"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"FKCgEUODxQTy34k"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"120"}}]},"finish_reason":null}],"usage":null,"obfuscation":"cmQkWaWHE2VzPnw"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"60"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"X"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"o"}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czk1rAs6TJqtCyUzD5RCskwuT59zN","object":"chat.completion.chunk","created":1768830979,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11125,"completion_tokens":170,"total_tokens":11295,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":128,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"SxpUlwNPjCckcdr"}
+      data: {"id":"chatcmpl-DIdaKbj4OWHo8d34LkohMr8MNe0cC","object":"chat.completion.chunk","created":1773334440,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11125,"completion_tokens":298,"total_tokens":11423,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":256,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"JoqU9Ao7oi9Koqa"}
 
       data: [DONE]
 
@@ -146,15 +142,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 3.745323s
+    duration: 14.829402083s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 449
+    content_length: 428
     host: sourcegraph.com
-    body: '{"query":"query Search($query: String!) { search(query: $query, version: V2, patternType: keyword ) { results { matchCount, limitHit, resultCount, approximateResultCount, missing { name }, timedout { name }, indexUnavailable, results { __typename, ... on FileMatch { repository { name }, file { path, url, content }, lineMatches { preview, lineNumber, offsetAndLengths } } } } } }","variables":{"query":"lang:go \"func main\" select:file count:10"}}'
+    body: '{"query":"query Search($query: String!) { search(query: $query, version: V2, patternType: keyword ) { results { matchCount, limitHit, resultCount, approximateResultCount, missing { name }, timedout { name }, indexUnavailable, results { __typename, ... on FileMatch { repository { name }, file { path, url, content }, lineMatches { preview, lineNumber, offsetAndLengths } } } } } }","variables":{"query":"lang:go \"func main\""}}'
     headers:
       Content-Type:
       - application/json
@@ -168,28 +164,28 @@ interactions:
     proto_minor: 0
     content_length: -1
     uncompressed: true

internal/agent/testdata/TestCoderAgent/openai-gpt-5/update_a_file.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,25 +24,31 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-Czjp135HaPU3V24nyjS3BuWy7rZ18","object":"chat.completion.chunk","created":1768830183,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"lyN8ETBdlgol0g"}
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7kEFqcupr6xYGu"}
 
-      data: {"id":"chatcmpl-Czjp135HaPU3V24nyjS3BuWy7rZ18","object":"chat.completion.chunk","created":1768830183,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Update"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"slpbVLVP2H"}
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"content":"Update"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"0CViRwrVob"}
 
-      data: {"id":"chatcmpl-Czjp135HaPU3V24nyjS3BuWy7rZ18","object":"chat.completion.chunk","created":1768830183,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Print"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"csnlJXHkWq"}
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ohOz0n1PHu0"}
 
-      data: {"id":"chatcmpl-Czjp135HaPU3V24nyjS3BuWy7rZ18","object":"chat.completion.chunk","created":1768830183,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Message"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vgiX0tTd"}
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"content":".go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"iZIw8jaCpH8vj"}
 
-      data: {"id":"chatcmpl-Czjp135HaPU3V24nyjS3BuWy7rZ18","object":"chat.completion.chunk","created":1768830183,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"yL0ebVNjRLVaR"}
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"content":" to"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6Noe85Tpagy7t"}
 
-      data: {"id":"chatcmpl-Czjp135HaPU3V24nyjS3BuWy7rZ18","object":"chat.completion.chunk","created":1768830183,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"tnpOnQL3w8K"}
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"content":" Print"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"79pPN00N2T"}
 
-      data: {"id":"chatcmpl-Czjp135HaPU3V24nyjS3BuWy7rZ18","object":"chat.completion.chunk","created":1768830183,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":".go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"UYuaUVZqGFdSu"}
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"content":" \""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"tsAilwU5lUXuJ"}
 
-      data: {"id":"chatcmpl-Czjp135HaPU3V24nyjS3BuWy7rZ18","object":"chat.completion.chunk","created":1768830183,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"2sEh73qqzkE"}
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bapG7UUINpC"}
 
-      data: {"id":"chatcmpl-Czjp135HaPU3V24nyjS3BuWy7rZ18","object":"chat.completion.chunk","created":1768830183,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"gf6rrszRnY"}
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"content":" from"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zqRsSPIeKLv"}
 
-      data: {"id":"chatcmpl-Czjp135HaPU3V24nyjS3BuWy7rZ18","object":"chat.completion.chunk","created":1768830183,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[],"usage":{"prompt_tokens":139,"completion_tokens":7,"total_tokens":146,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"42QprxWa0oBMFL"}
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"content":" Crush"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ChkF8G1Ez3"}
+
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{"content":"\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"93GTrT8XjbawW3"}
+
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"OUE4eOWhgu"}
+
+      data: {"id":"chatcmpl-DIdXMH3Ri3UnlP6s8cylTLAhHl28e","object":"chat.completion.chunk","created":1773334256,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_44968754fe","choices":[],"usage":{"prompt_tokens":139,"completion_tokens":10,"total_tokens":149,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"hZuBL8kKx2W3m"}
 
       data: [DONE]
 
@@ -51,7 +57,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 1.424788125s
+    duration: 2.616216541s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -66,7 +72,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -75,65 +81,65 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_uFLyXJjsRKLSsSUY2YPB3zs9","type":"function","function":{"name":"ls","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"ZUV5oWnJ5fLeAk"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_95nmEkAdKXRmMnYHIRdXggXp","type":"function","function":{"name":"ls","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"BzGf6ux9LMYgSw"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"CicdqFEVI1aLEEH"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"cl5PgOsytEFkrw6"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"azK7CfypYMBSAE"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"yqUhehKIO1BMfx"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"zIDpJIXYIq7gfYi"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"93SUjKQZ9h5KreC"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"vnewEgqaiuaFqw"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"245Q9jOeE4oPFO"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"r8fHuXaW9BOsWup"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"piQy9sIaz1aHDqn"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZAtOi6OnunRmvoE"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Ahmd1YHU61ICRrl"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"6r8n4RI8RQBMsyq"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"StTzncG7yaNMCxF"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"FSXUE4v1edzIc"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"hzJkn5bwyU4xG"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"CenEgiqscCJxx"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"cmC9fR4HYIsJA"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"vmpBMkQwIuLVS"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZbGcCAPXyAZM2"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"SwH51Oiz6VcH4"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"6slt4aEpZ6Xjz"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"pTEPuMhYOlss4"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"XUqONCYmhpy3B"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"U"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"T"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"7"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"P"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/update"}}]},"finish_reason":null}],"usage":null,"obfuscation":"QehZkEBwLpz"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/update"}}]},"finish_reason":null}],"usage":null,"obfuscation":"iVEpyGuwwxG"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_a"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_a"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_file"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Nq0D52DXTF3bA"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_file"}}]},"finish_reason":null}],"usage":null,"obfuscation":"1GAU1TeydqR3E"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\","}}]},"finish_reason":null}],"usage":null,"obfuscation":"JDDMr0aihHjZahs"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\","}}]},"finish_reason":null}],"usage":null,"obfuscation":"5ElASi3nUxqqiOV"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null}],"usage":null,"obfuscation":"nXfBhMhezANxXZZ"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null}],"usage":null,"obfuscation":"urvlHVzLv1qEiba"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"depth"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Lt7i2VyEOyq6q"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"depth"}}]},"finish_reason":null}],"usage":null,"obfuscation":"c6jF4GgmTmEx1"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"qLO6uVv8Dy0lcQt"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"xBZVvjoJkAra1nQ"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"f"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" "}}]},"finish_reason":null}],"usage":null,"obfuscation":"n"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null}],"usage":null,"obfuscation":"1"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null}],"usage":null,"obfuscation":"y"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Q"}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"m"}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-Czjp0XkvsVKeiFyZdr1rzflL5G18R","object":"chat.completion.chunk","created":1768830182,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11126,"completion_tokens":109,"total_tokens":11235,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":64,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":""}
+      data: {"id":"chatcmpl-DIdXLyjelQm9OWGjeUMUEeKh6F2vq","object":"chat.completion.chunk","created":1773334255,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11126,"completion_tokens":109,"total_tokens":11235,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":64,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"LsQ"}
 
       data: [DONE]
 
@@ -142,7 +148,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 3.675851291s
+    duration: 8.582153833s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -150,14 +156,14 @@ interactions:
     proto_minor: 1
     content_length: 51098
     host: ""

internal/agent/testdata/TestCoderAgent/openai-gpt-5/write_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -24,23 +24,25 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjqJgtYTNQ1LzNr2Vy8XQCD5uR5p","object":"chat.completion.chunk","created":1768830263,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"lbWZeXAjCgr2xM"}
+      data: {"id":"chatcmpl-DIdam3YV5l9zQwNatViQ1L5zBscr0","object":"chat.completion.chunk","created":1773334468,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"JKSGPIMIpUUTLZ"}
 
-      data: {"id":"chatcmpl-CzjqJgtYTNQ1LzNr2Vy8XQCD5uR5p","object":"chat.completion.chunk","created":1768830263,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":"Create"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"g2vTNiK29d"}
+      data: {"id":"chatcmpl-DIdam3YV5l9zQwNatViQ1L5zBscr0","object":"chat.completion.chunk","created":1773334468,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":"Creating"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"moxzaDGd"}
 
-      data: {"id":"chatcmpl-CzjqJgtYTNQ1LzNr2Vy8XQCD5uR5p","object":"chat.completion.chunk","created":1768830263,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" config"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"NSDOMK424"}
+      data: {"id":"chatcmpl-DIdam3YV5l9zQwNatViQ1L5zBscr0","object":"chat.completion.chunk","created":1773334468,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" a"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6dGrnnnqp0Mo55"}
 
-      data: {"id":"chatcmpl-CzjqJgtYTNQ1LzNr2Vy8XQCD5uR5p","object":"chat.completion.chunk","created":1768830263,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":".json"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dfB4le0vurg"}
+      data: {"id":"chatcmpl-DIdam3YV5l9zQwNatViQ1L5zBscr0","object":"chat.completion.chunk","created":1773334468,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" config"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZbKDhzJjr"}
 
-      data: {"id":"chatcmpl-CzjqJgtYTNQ1LzNr2Vy8XQCD5uR5p","object":"chat.completion.chunk","created":1768830263,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FxUaaSwfBEd"}
+      data: {"id":"chatcmpl-DIdam3YV5l9zQwNatViQ1L5zBscr0","object":"chat.completion.chunk","created":1773334468,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":".json"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"j80WUfYfoJX"}
 
-      data: {"id":"chatcmpl-CzjqJgtYTNQ1LzNr2Vy8XQCD5uR5p","object":"chat.completion.chunk","created":1768830263,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" JSON"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pg0cGCkRGcE"}
+      data: {"id":"chatcmpl-DIdam3YV5l9zQwNatViQ1L5zBscr0","object":"chat.completion.chunk","created":1773334468,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"UZKUCEsdpNW"}
 
-      data: {"id":"chatcmpl-CzjqJgtYTNQ1LzNr2Vy8XQCD5uR5p","object":"chat.completion.chunk","created":1768830263,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{"content":" Content"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FYNYBrua"}
+      data: {"id":"chatcmpl-DIdam3YV5l9zQwNatViQ1L5zBscr0","object":"chat.completion.chunk","created":1773334468,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"A74Y07SzsTu"}
 
-      data: {"id":"chatcmpl-CzjqJgtYTNQ1LzNr2Vy8XQCD5uR5p","object":"chat.completion.chunk","created":1768830263,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"VsEMoKTn2b"}
+      data: {"id":"chatcmpl-DIdam3YV5l9zQwNatViQ1L5zBscr0","object":"chat.completion.chunk","created":1773334468,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{"content":" Content"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"RSrmUs6O"}
 
-      data: {"id":"chatcmpl-CzjqJgtYTNQ1LzNr2Vy8XQCD5uR5p","object":"chat.completion.chunk","created":1768830263,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_a0e9480a2f","choices":[],"usage":{"prompt_tokens":153,"completion_tokens":6,"total_tokens":159,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"SeLpiA4w7bzNvd"}
+      data: {"id":"chatcmpl-DIdam3YV5l9zQwNatViQ1L5zBscr0","object":"chat.completion.chunk","created":1773334468,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"QwkeA195sh"}
+
+      data: {"id":"chatcmpl-DIdam3YV5l9zQwNatViQ1L5zBscr0","object":"chat.completion.chunk","created":1773334468,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_044ecc5410","choices":[],"usage":{"prompt_tokens":153,"completion_tokens":7,"total_tokens":160,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"SaIyfhYC03X2Ok"}
 
       data: [DONE]
 
@@ -49,7 +51,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 481.66725ms
+    duration: 501.753667ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -64,7 +66,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.openai.com/v1/chat/completions
     method: POST
   response:
@@ -73,97 +75,97 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_7iUht647iBwWftSRnqnuLukz","type":"function","function":{"name":"write","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"G9b5vZdtZXc"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_dW2EYFtPE3OD4g9kzFA0K9Uv","type":"function","function":{"name":"write","arguments":""}}],"refusal":null},"finish_reason":null}],"usage":null,"obfuscation":"DLSNsKNIWVa"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"vg1OjdaoEP4kfyD"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ine8VLWYLVx2wbt"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"file"}}]},"finish_reason":null}],"usage":null,"obfuscation":"giEqEOFATFTwPn"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"file"}}]},"finish_reason":null}],"usage":null,"obfuscation":"eM7WPwgFHubBLC"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"W5gmNUXMbhJPP"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_path"}}]},"finish_reason":null}],"usage":null,"obfuscation":"KpQa6ZuaCQo0i"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"dWXjXOhqDxCgIrK"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"P7QPobTRnPoNi6W"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"AIdCZ6RxMvZ2Q3u"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"/"}}]},"finish_reason":null}],"usage":null,"obfuscation":"pAnFLscJRTXsudJ"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"sveOOZ4wn0ikSTo"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null}],"usage":null,"obfuscation":"m3zfKQ4mdhGDSGQ"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"lDuisrZ7gLPdhdO"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/cr"}}]},"finish_reason":null}],"usage":null,"obfuscation":"ZJFSmHeveFCNNcF"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"N6t1a8B9zBq3cP0"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ush"}}]},"finish_reason":null}],"usage":null,"obfuscation":"EWccEUaSJIVpDGb"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Tt1Tv7AJjuyGH"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"dg1F5U8NiiOQc"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"cd1ZglCS0gwx9"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"m0QoVPc6tB9LG"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"v8ThmmKlaPmtf"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null}],"usage":null,"obfuscation":"RthDYlAd0zSqM"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"9TAIlj1ikdlRl"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null}],"usage":null,"obfuscation":"IEFvtDE4tPLu5"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"P1LUZMymaj6AO"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null}],"usage":null,"obfuscation":"uobIM9glFjALK"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ai"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-g"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"pt"}}]},"finish_reason":null}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"T"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"-"}}]},"finish_reason":null}],"usage":null,"obfuscation":"P"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"J"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"5"}}]},"finish_reason":null}],"usage":null,"obfuscation":"x"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/write"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Mer4SeRerEGx"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/write"}}]},"finish_reason":null}],"usage":null,"obfuscation":"EprQfOA0RTzg"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"VCyVnpSo3aupg"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"_tool"}}]},"finish_reason":null}],"usage":null,"obfuscation":"n9rJShWeriHQQ"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/config"}}]},"finish_reason":null}],"usage":null,"obfuscation":"tlJQOvIQXKI"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"/config"}}]},"finish_reason":null}],"usage":null,"obfuscation":"HAnsRXqzuM3"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".json"}}]},"finish_reason":null}],"usage":null,"obfuscation":"WbFYpzLOM0kq6"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":".json"}}]},"finish_reason":null}],"usage":null,"obfuscation":"otsWN2Uco5CFH"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"hvNUgwBfFmQtS"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"qC1mmtZJnNexS"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"content"}}]},"finish_reason":null}],"usage":null,"obfuscation":"pbfUGbz5GdF"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"content"}}]},"finish_reason":null}],"usage":null,"obfuscation":"q019MkV1PIR"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"tAF7OnbxiCbLi"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"rtzgAMYGHgDpw"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"AuzTEc7LIEw5e"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"kEWdp8nWr0NW3"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"name"}}]},"finish_reason":null}],"usage":null,"obfuscation":"VITWoVXUmyLjtJ"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"name"}}]},"finish_reason":null}],"usage":null,"obfuscation":"TWTFOUOrM4mcML"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"aCVIEePOAyAfV"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Fb8mxMSaPPtV6"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"4EKKtmSgfdDvG"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"omGGnZQwpZ5tf"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"IKHpBdDVXGRCLl"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"test"}}]},"finish_reason":null}],"usage":null,"obfuscation":"iERAMrUrySCiFz"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\\","}}]},"finish_reason":null}],"usage":null,"obfuscation":"UsHge2yTtG3cw"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\\","}}]},"finish_reason":null}],"usage":null,"obfuscation":"W9XDg8oOQ7KGj"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"fwPdixBhOlIeA"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"7EjcgJtYv4nDb"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"version"}}]},"finish_reason":null}],"usage":null,"obfuscation":"BsNkZcjC5iP"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"version"}}]},"finish_reason":null}],"usage":null,"obfuscation":"4W8AGTofAl8"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Yn7mCWaQgdVRB"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\\":"}}]},"finish_reason":null}],"usage":null,"obfuscation":"FJ3Y8UK62zoJB"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"GpFHYVf7LufiP"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"TDqyTigq2aDu6"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"1"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Y"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"1"}}]},"finish_reason":null}],"usage":null,"obfuscation":"b"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"."}}]},"finish_reason":null}],"usage":null,"obfuscation":"7"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"."}}]},"finish_reason":null}],"usage":null,"obfuscation":"j"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"0"}}]},"finish_reason":null}],"usage":null,"obfuscation":"Y"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"0"}}]},"finish_reason":null}],"usage":null,"obfuscation":"m"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"."}}]},"finish_reason":null}],"usage":null,"obfuscation":"P"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"."}}]},"finish_reason":null}],"usage":null,"obfuscation":"p"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"0"}}]},"finish_reason":null}],"usage":null,"obfuscation":"a"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"0"}}]},"finish_reason":null}],"usage":null,"obfuscation":"h"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"ibWX8iJsQ6jO7P"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\\\""}}]},"finish_reason":null}],"usage":null,"obfuscation":"lSb2hogSapkJCX"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"j"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"C"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"1FniqOU7UOedRur"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null}],"usage":null,"obfuscation":"RJ77LfHZe2pWsr5"}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"usage":null,"obfuscation":""}
 
-      data: {"id":"chatcmpl-CzjqJr9HUyDclLwist1qvR7pharBz","object":"chat.completion.chunk","created":1768830263,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11140,"completion_tokens":380,"total_tokens":11520,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":320,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"31dQgEknACHcu9b"}
+      data: {"id":"chatcmpl-DIdamDLQfwCuKvkKWIkDCWiV8QraY","object":"chat.completion.chunk","created":1773334468,"model":"gpt-5-2025-08-07","service_tier":"default","system_fingerprint":null,"choices":[],"usage":{"prompt_tokens":11140,"completion_tokens":380,"total_tokens":11520,"prompt_tokens_details":{"cached_tokens":3456,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":320,"audio_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}},"obfuscation":"OFIznR8cT1A2Fpj"}
 
       data: [DONE]
 
@@ -172,7 +174,7 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 7.99309275s
+    duration: 13.9302795s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -180,14 +182,14 @@ interactions:
     proto_minor: 1
     content_length: 51239
     host: ""

internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/bash_tool.yaml 🔗

@@ -24,21 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830633-Osz1qPrYiTrZY6O7qshP","provider":"Google","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334532-bmT1HKLd2yUd7E3laqhc","object":"chat.completion.chunk","created":1773334532,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Create","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-Osz1qPrYiTrZY6O7qshP","provider":"Google","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":"Create"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334532-bmT1HKLd2yUd7E3laqhc","object":"chat.completion.chunk","created":1773334532,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" test","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-Osz1qPrYiTrZY6O7qshP","provider":"Google","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":" test"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334532-bmT1HKLd2yUd7E3laqhc","object":"chat.completion.chunk","created":1773334532,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":".txt with","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-Osz1qPrYiTrZY6O7qshP","provider":"Google","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":".txt with"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334532-bmT1HKLd2yUd7E3laqhc","object":"chat.completion.chunk","created":1773334532,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" hello bash using","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-Osz1qPrYiTrZY6O7qshP","provider":"Google","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":" hello bash using"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334532-bmT1HKLd2yUd7E3laqhc","object":"chat.completion.chunk","created":1773334532,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" bash","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-Osz1qPrYiTrZY6O7qshP","provider":"Google","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":" bash"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334532-bmT1HKLd2yUd7E3laqhc","object":"chat.completion.chunk","created":1773334532,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830633-Osz1qPrYiTrZY6O7qshP","provider":"Google","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
-
-      data: {"id":"gen-1768830633-Osz1qPrYiTrZY6O7qshP","provider":"Google","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":147,"completion_tokens":9,"total_tokens":156,"cost":0.00003285,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.00002205,"upstream_inference_completions_cost":0.0000108},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334532-bmT1HKLd2yUd7E3laqhc","object":"chat.completion.chunk","created":1773334532,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[],"usage":{"prompt_tokens":147,"completion_tokens":9,"total_tokens":156,"cost":0.00002313,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00002313,"upstream_inference_prompt_cost":0.00001323,"upstream_inference_completions_cost":0.0000099},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -47,7 +45,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 627.379083ms
+    duration: 383.88475ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -71,63 +69,59 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
-
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"functions.bash:0","type":"function","function":{"name":"bash","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"bash:0","type":"function","function":{"name":"bash","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"description"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"description"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"create"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" test"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Create"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":".txt"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" with"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" hello"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" with"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" bash"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" content"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" content"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\","}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"\","}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"command"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"command"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"echo"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"echo"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" '"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" '"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"hello"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"hello"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" bash"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" bash"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"'"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"'"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" >"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" >"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" test"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":".txt"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]}
 
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}],"system_fingerprint":""}
-
-      data: {"id":"gen-1768830633-NlC7HAThN7TVd3VVwh43","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830633,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":11658,"completion_tokens":35,"total_tokens":11693,"cost":0.0047332,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0046632,"upstream_inference_completions_cost":0.00007},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334532-vgVpODxS3nUgjBOCFhlj","object":"chat.completion.chunk","created":1773334532,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11409,"completion_tokens":33,"total_tokens":11442,"cost":0.0018591,"is_byok":false,"prompt_tokens_details":{"cached_tokens":11264,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0018591,"upstream_inference_prompt_cost":0.0017766,"upstream_inference_completions_cost":0.0000825},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -136,15 +130,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 5.696017792s
+    duration: 3.205109417s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51149
+    content_length: 51118
     host: ""

internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/download_tool.yaml 🔗

@@ -24,19 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830324-DpEBUpsxBtavj73Ij4Xl","provider":"GMICloud","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-8yPTrBVJcn2XPkNE0E7b","object":"chat.completion.chunk","created":1773334542,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"Download","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-DpEBUpsxBtavj73Ij4Xl","provider":"GMICloud","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":"Download"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-8yPTrBVJcn2XPkNE0E7b","object":"chat.completion.chunk","created":1773334542,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" example","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-DpEBUpsxBtavj73Ij4Xl","provider":"GMICloud","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":" and save example.txt"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-8yPTrBVJcn2XPkNE0E7b","object":"chat.completion.chunk","created":1773334542,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":".txt from example","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-DpEBUpsxBtavj73Ij4Xl","provider":"GMICloud","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":" from provided"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-8yPTrBVJcn2XPkNE0E7b","object":"chat.completion.chunk","created":1773334542,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"-files","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-DpEBUpsxBtavj73Ij4Xl","provider":"GMICloud","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":" link"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-8yPTrBVJcn2XPkNE0E7b","object":"chat.completion.chunk","created":1773334542,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":".online-convert.com","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-DpEBUpsxBtavj73Ij4Xl","provider":"GMICloud","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+      data: {"id":"gen-1773334542-8yPTrBVJcn2XPkNE0E7b","object":"chat.completion.chunk","created":1773334542,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830324-DpEBUpsxBtavj73Ij4Xl","provider":"GMICloud","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":150,"completion_tokens":9,"total_tokens":159,"cost":0.000036,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0000225,"upstream_inference_completions_cost":0.0000135},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334542-8yPTrBVJcn2XPkNE0E7b","object":"chat.completion.chunk","created":1773334542,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[],"usage":{"prompt_tokens":154,"completion_tokens":10,"total_tokens":164,"cost":0.000022815,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0000351,"upstream_inference_prompt_cost":0.0000231,"upstream_inference_completions_cost":0.000012},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -45,7 +45,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.180815667s
+    duration: 859.785125ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -69,63 +69,65 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"download:0","type":"function","function":{"name":"download","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"functions.download:0","index":0,"type":"function","function":{"name":"download","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"{\"url"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"url"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"https"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"://"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"https"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"example"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"://"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"-files"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"example"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":".online"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-files"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"-con"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".online"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"vert"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-con"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":".com"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"vert"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/document"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".com"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/document"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"txt"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/example"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"txt"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":".txt"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/example"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\","}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\","}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"file"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"_path"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"file"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_path"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"example"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":".txt"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"example"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".txt"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830324-gSfTegu3OW5kKRNRMi4u","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830324,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":11584,"completion_tokens":36,"total_tokens":11620,"cost":0.011692,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.011584,"upstream_inference_completions_cost":0.000108},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]}
+
+      data: {"id":"gen-1773334542-g92HeuTTtQJNPZZDPU2e","object":"chat.completion.chunk","created":1773334542,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11412,"completion_tokens":35,"total_tokens":11447,"cost":0.0018659,"is_byok":false,"prompt_tokens_details":{"cached_tokens":11264,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0018659,"upstream_inference_prompt_cost":0.0017784,"upstream_inference_completions_cost":0.0000875},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -134,7 +136,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.017908625s
+    duration: 2.871377791s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -180,15 +182,15 @@ interactions:
       - text/plain; charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 93.176792ms
+    duration: 1.397901125s
 - id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51271
+    content_length: 51251
     host: ""

internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/fetch_tool.yaml 🔗

@@ -24,19 +24,17 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830332-uymAi6cUGQh14tZVvvWc","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334550-e9I0jErWtiGCcrnyThes","object":"chat.completion.chunk","created":1773334550,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Check","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-uymAi6cUGQh14tZVvvWc","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":"Check"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334550-e9I0jErWtiGCcrnyThes","object":"chat.completion.chunk","created":1773334550,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" if example","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-uymAi6cUGQh14tZVvvWc","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":" if example"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334550-e9I0jErWtiGCcrnyThes","object":"chat.completion.chunk","created":1773334550,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":".html contains John","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-uymAi6cUGQh14tZVvvWc","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":".html contains John"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334550-e9I0jErWtiGCcrnyThes","object":"chat.completion.chunk","created":1773334550,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" Doe","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-uymAi6cUGQh14tZVvvWc","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":" Doe"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334550-e9I0jErWtiGCcrnyThes","object":"chat.completion.chunk","created":1773334550,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830332-uymAi6cUGQh14tZVvvWc","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}],"system_fingerprint":null}
-
-      data: {"id":"gen-1768830332-uymAi6cUGQh14tZVvvWc","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":159,"completion_tokens":7,"total_tokens":166,"cost":0.00003225,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.00002385,"upstream_inference_completions_cost":0.0000084},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334550-e9I0jErWtiGCcrnyThes","object":"chat.completion.chunk","created":1773334550,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[],"usage":{"prompt_tokens":155,"completion_tokens":8,"total_tokens":163,"cost":0.00002275,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00002275,"upstream_inference_prompt_cost":0.00001395,"upstream_inference_completions_cost":0.0000088},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -45,7 +43,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.455522416s
+    duration: 1.042426041s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -69,55 +67,61 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"fetch:0","type":"function","function":{"name":"fetch","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"functions.fetch:0","index":0,"type":"function","function":{"name":"fetch","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"url"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"{\"url"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"https"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"https"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"://"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"://"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"example"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"example"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-files"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"-files"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".online"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":".online"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-con"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"-con"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"vert"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"vert"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".com"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":".com"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"website"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"website"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/html"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/html"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/example"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/example"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".html"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":".html"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\","}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\",\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"format"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"format"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\":\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"text"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"text"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830332-6AduxF6E5iD1YJHiELzE","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830332,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":11591,"completion_tokens":32,"total_tokens":11623,"cost":0.00458129,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.00452049,"upstream_inference_completions_cost":0.0000608},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]}
+
+      data: {"id":"gen-1773334550-KrcUQN03V3u06sKmH8L9","object":"chat.completion.chunk","created":1773334550,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11419,"completion_tokens":33,"total_tokens":11452,"cost":0.0018651,"is_byok":false,"prompt_tokens_details":{"cached_tokens":11264,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0018651,"upstream_inference_prompt_cost":0.0017826,"upstream_inference_completions_cost":0.0000825},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -126,7 +130,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.745940583s
+    duration: 2.839528375s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -197,15 +201,15 @@ interactions:
       - text/html; charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 48.774375ms
+    duration: 372.996042ms
 - id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 53682
+    content_length: 53665
     host: ""

internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/glob_tool.yaml 🔗

@@ -24,21 +24,17 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830601-JFP8REyTpY04VjYTZEmH","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-RNAmsnbQ8Cy7m80mbZbM","object":"chat.completion.chunk","created":1773334558,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[{"index":0,"delta":{"content":"Find","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-JFP8REyTpY04VjYTZEmH","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-RNAmsnbQ8Cy7m80mbZbM","object":"chat.completion.chunk","created":1773334558,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[{"index":0,"delta":{"content":" all .go files","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-JFP8REyTpY04VjYTZEmH","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":"Find"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-RNAmsnbQ8Cy7m80mbZbM","object":"chat.completion.chunk","created":1773334558,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[{"index":0,"delta":{"content":" in current directory using","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-JFP8REyTpY04VjYTZEmH","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":" all .go files"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-RNAmsnbQ8Cy7m80mbZbM","object":"chat.completion.chunk","created":1773334558,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[{"index":0,"delta":{"content":" glob","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-JFP8REyTpY04VjYTZEmH","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":" in current directory using"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-RNAmsnbQ8Cy7m80mbZbM","object":"chat.completion.chunk","created":1773334558,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830601-JFP8REyTpY04VjYTZEmH","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":" glob"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
-
-      data: {"id":"gen-1768830601-JFP8REyTpY04VjYTZEmH","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
-
-      data: {"id":"gen-1768830601-JFP8REyTpY04VjYTZEmH","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":139,"completion_tokens":11,"total_tokens":150,"cost":0.00002461,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.00001251,"upstream_inference_completions_cost":0.0000121},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334558-RNAmsnbQ8Cy7m80mbZbM","object":"chat.completion.chunk","created":1773334558,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[],"usage":{"prompt_tokens":143,"completion_tokens":10,"total_tokens":153,"cost":0.00003645,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00003645,"upstream_inference_prompt_cost":0.00002145,"upstream_inference_completions_cost":0.000015},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -47,7 +43,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 730.054792ms
+    duration: 1.599437334s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -71,25 +67,25 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830601-ISuI5EdVhNAc1G5pDE5s","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-oJHHQPC19YPFJoAqyXNG","object":"chat.completion.chunk","created":1773334558,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"glob:0","type":"function","function":{"name":"glob","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-ISuI5EdVhNAc1G5pDE5s","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"functions.glob:0","index":0,"type":"function","function":{"name":"glob","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-oJHHQPC19YPFJoAqyXNG","object":"chat.completion.chunk","created":1773334558,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-ISuI5EdVhNAc1G5pDE5s","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"{\"pattern"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-oJHHQPC19YPFJoAqyXNG","object":"chat.completion.chunk","created":1773334558,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-ISuI5EdVhNAc1G5pDE5s","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-oJHHQPC19YPFJoAqyXNG","object":"chat.completion.chunk","created":1773334558,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"pattern"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-ISuI5EdVhNAc1G5pDE5s","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-oJHHQPC19YPFJoAqyXNG","object":"chat.completion.chunk","created":1773334558,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-ISuI5EdVhNAc1G5pDE5s","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"*."}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-oJHHQPC19YPFJoAqyXNG","object":"chat.completion.chunk","created":1773334558,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \"*."}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-ISuI5EdVhNAc1G5pDE5s","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"go"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-oJHHQPC19YPFJoAqyXNG","object":"chat.completion.chunk","created":1773334558,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"go"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-ISuI5EdVhNAc1G5pDE5s","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334558-oJHHQPC19YPFJoAqyXNG","object":"chat.completion.chunk","created":1773334558,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830601-ISuI5EdVhNAc1G5pDE5s","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+      data: {"id":"gen-1773334558-oJHHQPC19YPFJoAqyXNG","object":"chat.completion.chunk","created":1773334558,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]}
 
-      data: {"id":"gen-1768830601-ISuI5EdVhNAc1G5pDE5s","provider":"Chutes","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830601,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":11574,"completion_tokens":17,"total_tokens":11591,"cost":0.00454616,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.00451386,"upstream_inference_completions_cost":0.0000323},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334558-oJHHQPC19YPFJoAqyXNG","object":"chat.completion.chunk","created":1773334558,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11402,"completion_tokens":15,"total_tokens":11417,"cost":0.0018099,"is_byok":false,"prompt_tokens_details":{"cached_tokens":11264,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0018099,"upstream_inference_prompt_cost":0.0017724,"upstream_inference_completions_cost":0.0000375},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -98,15 +94,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.303927625s
+    duration: 2.769449708s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51081
+    content_length: 51062
     host: ""

internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/multiedit_tool.yaml 🔗

@@ -24,23 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830361-KnDZJcRrhDeKwzt90zgG","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-hQsvjJZlZYDs3Hw05RFy","object":"chat.completion.chunk","created":1773334576,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":"Change","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-KnDZJcRrhDeKwzt90zgG","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-hQsvjJZlZYDs3Hw05RFy","object":"chat.completion.chunk","created":1773334576,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":" greeting","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-KnDZJcRrhDeKwzt90zgG","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":"Use"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-hQsvjJZlZYDs3Hw05RFy","object":"chat.completion.chunk","created":1773334576,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-KnDZJcRrhDeKwzt90zgG","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" multiedit to"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-hQsvjJZlZYDs3Hw05RFy","object":"chat.completion.chunk","created":1773334576,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":" add comment in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-KnDZJcRrhDeKwzt90zgG","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" update greeting"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-hQsvjJZlZYDs3Hw05RFy","object":"chat.completion.chunk","created":1773334576,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":" main.go","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-KnDZJcRrhDeKwzt90zgG","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" and add comment in"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-hQsvjJZlZYDs3Hw05RFy","object":"chat.completion.chunk","created":1773334576,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830361-KnDZJcRrhDeKwzt90zgG","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" main.go"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
-
-      data: {"id":"gen-1768830361-KnDZJcRrhDeKwzt90zgG","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
-
-      data: {"id":"gen-1768830361-KnDZJcRrhDeKwzt90zgG","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":160,"completion_tokens":14,"total_tokens":174,"cost":0.0000298,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0000144,"upstream_inference_completions_cost":0.0000154},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334576-hQsvjJZlZYDs3Hw05RFy","object":"chat.completion.chunk","created":1773334576,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[],"usage":{"prompt_tokens":160,"completion_tokens":9,"total_tokens":169,"cost":0.000035,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000035,"upstream_inference_prompt_cost":0.0000224,"upstream_inference_completions_cost":0.0000126},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -49,7 +45,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 239.99125ms
+    duration: 2.266157584s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -73,63 +69,117 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"I'll","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" help","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" you","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" make","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" those","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" changes","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" using","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" mult","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"ied","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"it","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" Let","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" me","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" first","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" check","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" current","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" content","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" of","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" main","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":".go","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" see","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" exact","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" formatting","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"view:0","type":"function","function":{"name":"view","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":"I'll"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" help"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" you"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"file"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" make"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_path"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" those"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" changes"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \"/"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" to"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" main"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/c"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":".go"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"rush"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" using"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" mult"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":"ied"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":"it"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" Let"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"router"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" me"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" first"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"imi"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" check"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" current"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/mult"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" state"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"ied"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" of"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"it"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_tool"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":" file"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/main"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":"."},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".go"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"functions.view:0","function":{"arguments":"{\"file_path\": \"/tmp/crush-test/TestCoderAgent/openrouter-kimi-k2/multiedit_tool/main.go\"}","name":"view"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]}
 
-      data: {"id":"gen-1768830361-nQs2nTeCgVC9tx7GjCPf","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830361,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":12775,"completion_tokens":51,"total_tokens":12826,"cost":0.005212,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.00511,"upstream_inference_completions_cost":0.000102},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334576-YbdnX9yYKyX3bDXHpkhV","object":"chat.completion.chunk","created":1773334576,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11424,"completion_tokens":61,"total_tokens":11485,"cost":0.0019381,"is_byok":false,"prompt_tokens_details":{"cached_tokens":11264,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0019381,"upstream_inference_prompt_cost":0.0017856,"upstream_inference_completions_cost":0.0001525},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -138,15 +188,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 432.223583ms
+    duration: 2.687149291s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51438
+    content_length: 51436
     host: ""

internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/parallel_tool_calls.yaml 🔗

@@ -24,21 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830385-x9fwT8MATFhFKpxBh31a","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334613-QcM6GdqAs4UX3x5mhwnG","object":"chat.completion.chunk","created":1773334613,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":"Find","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-x9fwT8MATFhFKpxBh31a","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":"Find"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334613-QcM6GdqAs4UX3x5mhwnG","object":"chat.completion.chunk","created":1773334613,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":" .go files and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-x9fwT8MATFhFKpxBh31a","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":" .go files and"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334613-QcM6GdqAs4UX3x5mhwnG","object":"chat.completion.chunk","created":1773334613,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":" list directory","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-x9fwT8MATFhFKpxBh31a","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":" list directory"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334613-QcM6GdqAs4UX3x5mhwnG","object":"chat.completion.chunk","created":1773334613,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-x9fwT8MATFhFKpxBh31a","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":" in"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334613-QcM6GdqAs4UX3x5mhwnG","object":"chat.completion.chunk","created":1773334613,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":" parallel","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-x9fwT8MATFhFKpxBh31a","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":" parallel"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334613-QcM6GdqAs4UX3x5mhwnG","object":"chat.completion.chunk","created":1773334613,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830385-x9fwT8MATFhFKpxBh31a","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}],"system_fingerprint":null}
-
-      data: {"id":"gen-1768830385-x9fwT8MATFhFKpxBh31a","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":160,"completion_tokens":9,"total_tokens":169,"cost":0.0000348,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.000024,"upstream_inference_completions_cost":0.0000108},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334613-QcM6GdqAs4UX3x5mhwnG","object":"chat.completion.chunk","created":1773334613,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"SiliconFlow","choices":[],"usage":{"prompt_tokens":156,"completion_tokens":10,"total_tokens":166,"cost":0.00003584,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00003584,"upstream_inference_prompt_cost":0.00002184,"upstream_inference_completions_cost":0.000014},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -47,7 +45,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 832.842584ms
+    duration: 1.74081725s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -71,31 +69,41 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"glob:0","type":"function","function":{"name":"glob","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"pattern"}}]},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \"**"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"functions.glob:0","type":"function","function":{"name":"glob","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/*."}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"go"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"pattern"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"id":"ls:1","type":"function","function":{"name":"ls","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":" \"**"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"/*."}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"go"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"path"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":null,"type":"function","function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"id":"functions.ls:1","type":"function","function":{"name":"ls","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":" \".\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":1,"id":null,"type":"function","function":{"arguments":"{}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":1,"function":{"arguments":"}"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}],"system_fingerprint":""}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]}
 
-      data: {"id":"gen-1768830385-zIIWH3CAe4AS4Y0mUEGZ","provider":"SiliconFlow","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830385,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":11669,"completion_tokens":25,"total_tokens":11694,"cost":0.0047176,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0046676,"upstream_inference_completions_cost":0.00005},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334613-kWaBI8JP6jHQYcrAXi9b","object":"chat.completion.chunk","created":1773334613,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11420,"completion_tokens":29,"total_tokens":11449,"cost":0.0018557,"is_byok":false,"prompt_tokens_details":{"cached_tokens":11264,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0018557,"upstream_inference_prompt_cost":0.0017832,"upstream_inference_completions_cost":0.0000725},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -104,15 +112,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 4.901375625s
+    duration: 3.245729834s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51430
+    content_length: 51405
     host: ""

internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/read_a_file.yaml 🔗

@@ -24,19 +24,13 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830283-jqcQ1UYtDnQXJSsQIqAv","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-u0AdcFEb7Z8CVaRRTgZP","object":"chat.completion.chunk","created":1773334512,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Read","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-jqcQ1UYtDnQXJSsQIqAv","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":"Read"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-u0AdcFEb7Z8CVaRRTgZP","object":"chat.completion.chunk","created":1773334512,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" the go mod","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-jqcQ1UYtDnQXJSsQIqAv","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":" the"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-u0AdcFEb7Z8CVaRRTgZP","object":"chat.completion.chunk","created":1773334512,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830283-jqcQ1UYtDnQXJSsQIqAv","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":" go"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
-
-      data: {"id":"gen-1768830283-jqcQ1UYtDnQXJSsQIqAv","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":" mod"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
-
-      data: {"id":"gen-1768830283-jqcQ1UYtDnQXJSsQIqAv","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
-
-      data: {"id":"gen-1768830283-jqcQ1UYtDnQXJSsQIqAv","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":131,"completion_tokens":5,"total_tokens":136,"cost":0.0000171,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0000131,"upstream_inference_completions_cost":0.000004},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334512-u0AdcFEb7Z8CVaRRTgZP","object":"chat.completion.chunk","created":1773334512,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[],"usage":{"prompt_tokens":131,"completion_tokens":5,"total_tokens":136,"cost":0.00001729,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00001729,"upstream_inference_prompt_cost":0.00001179,"upstream_inference_completions_cost":0.0000055},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -45,7 +39,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.759914166s
+    duration: 364.606375ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -69,59 +63,61 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"view:0","type":"function","function":{"name":"view","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"functions.view:0","index":0,"type":"function","function":{"name":"view","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"{\"file"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"file"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"_path"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_path"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":" \"/"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \"/"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"tmp"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/c"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/c"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"rush"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"rush"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"-test"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/Test"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"Coder"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"Agent"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/open"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"router"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"router"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"imi"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"imi"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/read"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/read"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"_a"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_a"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"_file"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_file"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/go"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/go"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":".mod"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".mod"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]}
 
-      data: {"id":"gen-1768830283-PiI9WQcYsIG2yRS2sB1J","provider":"Together","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830283,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":11566,"completion_tokens":34,"total_tokens":11600,"cost":0.011668,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.011566,"upstream_inference_completions_cost":0.000102},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334512-wqJwbwIZL1tkXxtWzCzD","object":"chat.completion.chunk","created":1773334512,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11394,"completion_tokens":33,"total_tokens":11427,"cost":0.0018501,"is_byok":false,"prompt_tokens_details":{"cached_tokens":11264,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0018501,"upstream_inference_prompt_cost":0.0017676,"upstream_inference_completions_cost":0.0000825},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -130,15 +126,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 2.062560166s
+    duration: 3.241100208s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51124
+    content_length: 51104
     host: ""

internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/simple_test.yaml 🔗

@@ -24,13 +24,11 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830280-4PCDv2pnxJ4GGNJaNBDx","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830280,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334508-8NckSs9Il6oS66YUbYZu","object":"chat.completion.chunk","created":1773334508,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"Hello","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830280-4PCDv2pnxJ4GGNJaNBDx","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830280,"choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334508-8NckSs9Il6oS66YUbYZu","object":"chat.completion.chunk","created":1773334508,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830280-4PCDv2pnxJ4GGNJaNBDx","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830280,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
-
-      data: {"id":"gen-1768830280-4PCDv2pnxJ4GGNJaNBDx","provider":"Chutes","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830280,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":128,"completion_tokens":2,"total_tokens":130,"cost":0.0000144,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0000128,"upstream_inference_completions_cost":0.0000016},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334508-8NckSs9Il6oS66YUbYZu","object":"chat.completion.chunk","created":1773334508,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[],"usage":{"prompt_tokens":132,"completion_tokens":1,"total_tokens":133,"cost":0.00001365,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.000021,"upstream_inference_prompt_cost":0.0000198,"upstream_inference_completions_cost":0.0000012},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -39,7 +37,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.783372292s
+    duration: 2.44035525s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -63,13 +61,13 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830280-yAMcRB3SQ5hL08vW1yrX","provider":"AtlasCloud","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830280,"choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334508-ZqyuLPtakq5VFuSWlpBV","object":"chat.completion.chunk","created":1773334508,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"Hi","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830280-yAMcRB3SQ5hL08vW1yrX","provider":"AtlasCloud","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830280,"choices":[{"index":0,"delta":{"role":"assistant","content":"!"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334508-ZqyuLPtakq5VFuSWlpBV","object":"chat.completion.chunk","created":1773334508,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"!","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830280-yAMcRB3SQ5hL08vW1yrX","provider":"AtlasCloud","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830280,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+      data: {"id":"gen-1773334508-ZqyuLPtakq5VFuSWlpBV","object":"chat.completion.chunk","created":1773334508,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830280-yAMcRB3SQ5hL08vW1yrX","provider":"AtlasCloud","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830280,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":11982,"completion_tokens":2,"total_tokens":11984,"cost":0.0071942,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0071892,"upstream_inference_completions_cost":0.000005},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334508-ZqyuLPtakq5VFuSWlpBV","object":"chat.completion.chunk","created":1773334508,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11390,"completion_tokens":3,"total_tokens":11393,"cost":0.0068415,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0068415,"upstream_inference_prompt_cost":0.006834,"upstream_inference_completions_cost":0.0000075},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -78,4 +76,4 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 2.531405542s
+    duration: 4.60327625s

internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/update_a_file.yaml 🔗

@@ -24,21 +24,17 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830290-g9cszM7AWBXcykR0NTwS","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-otrBdcE4CKqBw01X1AqD","object":"chat.completion.chunk","created":1773334519,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"Update","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-g9cszM7AWBXcykR0NTwS","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-otrBdcE4CKqBw01X1AqD","object":"chat.completion.chunk","created":1773334519,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" main.go to print","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-g9cszM7AWBXcykR0NTwS","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":"Update"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-otrBdcE4CKqBw01X1AqD","object":"chat.completion.chunk","created":1773334519,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" hello","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-g9cszM7AWBXcykR0NTwS","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":" main.go to print"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-otrBdcE4CKqBw01X1AqD","object":"chat.completion.chunk","created":1773334519,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" from crush","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-g9cszM7AWBXcykR0NTwS","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":" hello"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-otrBdcE4CKqBw01X1AqD","object":"chat.completion.chunk","created":1773334519,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830290-g9cszM7AWBXcykR0NTwS","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":" from crush"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
-
-      data: {"id":"gen-1768830290-g9cszM7AWBXcykR0NTwS","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
-
-      data: {"id":"gen-1768830290-g9cszM7AWBXcykR0NTwS","provider":"DeepInfra","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":141,"completion_tokens":9,"total_tokens":150,"cost":0.00002259,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.00001269,"upstream_inference_completions_cost":0.0000099},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334519-otrBdcE4CKqBw01X1AqD","object":"chat.completion.chunk","created":1773334519,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[],"usage":{"prompt_tokens":145,"completion_tokens":8,"total_tokens":153,"cost":0.0000203775,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00003135,"upstream_inference_prompt_cost":0.00002175,"upstream_inference_completions_cost":0.0000096},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -47,7 +43,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 982.306417ms
+    duration: 684.026791ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -71,59 +67,61 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"view:0","type":"function","function":{"name":"view","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":"functions.view:0","index":0,"type":"function","function":{"name":"view","arguments":""}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"{\"file"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"_path"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"file"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_path"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":" \"/"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"tmp"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \"/"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/c"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"rush"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/c"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"-test"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"rush"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/Test"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"Coder"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"Agent"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/open"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"router"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"router"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"imi"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"imi"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/update"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"_a"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/update"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"_file"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_a"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"/main"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_file"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":".go"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/main"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"id":null,"index":0,"type":"function","function":{"name":null,"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".go"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}]}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830290-V0kXHtQM2kZyXpjaUvZl","provider":"Parasail","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830290,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":11576,"completion_tokens":34,"total_tokens":11610,"cost":0.0069315,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.00682984,"upstream_inference_completions_cost":0.00010166},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]}
+
+      data: {"id":"gen-1773334519-qKaVru8AKl5tTTsxUfii","object":"chat.completion.chunk","created":1773334519,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11404,"completion_tokens":33,"total_tokens":11437,"cost":0.0018561,"is_byok":false,"prompt_tokens_details":{"cached_tokens":11264,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0018561,"upstream_inference_prompt_cost":0.0017736,"upstream_inference_completions_cost":0.0000825},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -132,15 +130,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 2.036410208s
+    duration: 3.549766458s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51254
+    content_length: 51234
     host: ""

internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/write_tool.yaml 🔗

@@ -24,17 +24,15 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830376-47Lo1VDfcxY5VPrlmIsL","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334605-6ZRsy4saGGf5i8FeUwoK","object":"chat.completion.chunk","created":1773334605,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"Create","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-47Lo1VDfcxY5VPrlmIsL","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":"Create"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334605-6ZRsy4saGGf5i8FeUwoK","object":"chat.completion.chunk","created":1773334605,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" config.json with name","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-47Lo1VDfcxY5VPrlmIsL","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":" config.json with test"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334605-6ZRsy4saGGf5i8FeUwoK","object":"chat.completion.chunk","created":1773334605,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" and version data","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-47Lo1VDfcxY5VPrlmIsL","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":" data"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":null}
+      data: {"id":"gen-1773334605-6ZRsy4saGGf5i8FeUwoK","object":"chat.completion.chunk","created":1773334605,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830376-47Lo1VDfcxY5VPrlmIsL","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}],"system_fingerprint":null}
-
-      data: {"id":"gen-1768830376-47Lo1VDfcxY5VPrlmIsL","provider":"Alibaba","model":"qwen/qwen3-next-80b-a3b-instruct","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":159,"completion_tokens":6,"total_tokens":165,"cost":0.00003105,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.00002385,"upstream_inference_completions_cost":0.0000072},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334605-6ZRsy4saGGf5i8FeUwoK","object":"chat.completion.chunk","created":1773334605,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[],"usage":{"prompt_tokens":159,"completion_tokens":8,"total_tokens":167,"cost":0.0000217425,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.00003345,"upstream_inference_prompt_cost":0.00002385,"upstream_inference_completions_cost":0.0000096},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -43,7 +41,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 401.234708ms
+    duration: 1.050449458s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -67,101 +65,101 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"id":"write:0","type":"function","function":{"name":"write","arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"write:0","type":"function","function":{"name":"write"}}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"{\""},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"file"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"file"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"_path"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_path"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"\":"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":" \"/"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \"/"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"tmp"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"tmp"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"/c"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/c"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"rush"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"rush"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"-test"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"/Test"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/Test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"Coder"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Coder"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"Agent"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"Agent"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"/open"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/open"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"router"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"router"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"-k"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"imi"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"imi"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"-k"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"-k"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"2"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"2"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"/write"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/write"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"_tool"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"_tool"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"/config"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"/config"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":".json"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":".json"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"\","},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\","}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":" \""},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"content"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"content"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"\":"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":" \"{\\\""},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \"{\\\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"name"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"name"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"\\\":"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\\\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":" \\\""},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"test"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"test"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"\\\","},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\\\","}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":" \\\""},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"version"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"version"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"\\\":"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\\\":"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":" \\\""},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":" \\\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"1"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"1"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"."},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"."}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"0"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"0"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"."},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"."}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"0"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"0"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"\\\""},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"\\\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"}\""},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"}\""}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"function":{"arguments":"}"},"type":"function"}]},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":null,"role":"assistant","tool_calls":[{"index":0,"function":{"arguments":"}"}}]},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":"tool_calls","native_finish_reason":"tool_calls","logprobs":null}],"system_fingerprint":"fpv0_8318f5a4"}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"tool_calls","native_finish_reason":"tool_calls"}]}
 
-      data: {"id":"gen-1768830376-xyffXUQpEBD9RwIMppIs","provider":"Novita","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830376,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":11418,"completion_tokens":53,"total_tokens":11471,"cost":0.0069833,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0068508,"upstream_inference_completions_cost":0.0001325},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334605-ooYL6BU9cYOdYWyiC9c1","object":"chat.completion.chunk","created":1773334605,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11418,"completion_tokens":53,"total_tokens":11471,"cost":0.0019145,"is_byok":false,"prompt_tokens_details":{"cached_tokens":11264,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0019145,"upstream_inference_prompt_cost":0.001782,"upstream_inference_completions_cost":0.0001325},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -170,7 +168,7 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 5.076708166s
+    duration: 3.13401525s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -194,13 +192,27 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1768830384-hUcLkIPWD1PQj9mftCUp","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830384,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"Created","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" config","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":".json","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" with","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" the","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" specified","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" JSON","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":" content","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830384-hUcLkIPWD1PQj9mftCUp","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830384,"choices":[{"index":0,"delta":{"role":"assistant","content":"Done"},"finish_reason":null,"native_finish_reason":null,"logprobs":null}]}
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":".","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1768830384-hUcLkIPWD1PQj9mftCUp","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830384,"choices":[{"index":0,"delta":{"role":"assistant","content":" "},"finish_reason":"stop","native_finish_reason":"stop","logprobs":null}]}
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1768830384-hUcLkIPWD1PQj9mftCUp","provider":"DeepInfra","model":"moonshotai/kimi-k2-0905","object":"chat.completion.chunk","created":1768830384,"choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null,"native_finish_reason":null,"logprobs":null}],"usage":{"prompt_tokens":12840,"completion_tokens":2,"total_tokens":12842,"cost":0.00514,"is_byok":false,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.005136,"upstream_inference_completions_cost":0.000004},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0}}}
+      data: {"id":"gen-1773334610-AG6kQpMCDVrPNsmGdeaI","object":"chat.completion.chunk","created":1773334610,"model":"moonshotai/kimi-k2-0905","provider":"Moonshot AI","system_fingerprint":"fpv0_805d9276","choices":[],"usage":{"prompt_tokens":11516,"completion_tokens":10,"total_tokens":11526,"cost":0.0018658,"is_byok":false,"prompt_tokens_details":{"cached_tokens":11264,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"cost_details":{"upstream_inference_cost":0.0018658,"upstream_inference_prompt_cost":0.0018408,"upstream_inference_completions_cost":0.000025},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -209,4 +221,4 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 413.531125ms
+    duration: 2.410180292s

internal/agent/testdata/TestCoderAgent/zai-glm4.6/bash_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,21 +24,23 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214720f5bafbb053254ba2","created":1768830440,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"2026031300572754f0fb52268c4ba3","created":1773334648,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"20260119214720f5bafbb053254ba2","created":1768830440,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"B"}}]}
+      data: {"id":"2026031300572754f0fb52268c4ba3","created":1773334648,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"B"}}]}
 
-      data: {"id":"20260119214720f5bafbb053254ba2","created":1768830440,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"ash"}}]}
+      data: {"id":"2026031300572754f0fb52268c4ba3","created":1773334648,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"ash"}}]}
 
-      data: {"id":"20260119214720f5bafbb053254ba2","created":1768830440,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
+      data: {"id":"2026031300572754f0fb52268c4ba3","created":1773334648,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
 
-      data: {"id":"20260119214720f5bafbb053254ba2","created":1768830440,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" creation"}}]}
+      data: {"id":"2026031300572754f0fb52268c4ba3","created":1773334648,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" creation"}}]}
 
-      data: {"id":"20260119214720f5bafbb053254ba2","created":1768830440,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
+      data: {"id":"2026031300572754f0fb52268c4ba3","created":1773334648,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
 
-      data: {"id":"20260119214720f5bafbb053254ba2","created":1768830440,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
+      data: {"id":"2026031300572754f0fb52268c4ba3","created":1773334648,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" hello"}}]}
 
-      data: {"id":"20260119214720f5bafbb053254ba2","created":1768830440,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":140,"completion_tokens":10,"total_tokens":150,"prompt_tokens_details":{"cached_tokens":114}}}
+      data: {"id":"2026031300572754f0fb52268c4ba3","created":1773334648,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
+
+      data: {"id":"2026031300572754f0fb52268c4ba3","created":1773334648,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":140,"completion_tokens":11,"total_tokens":151,"prompt_tokens_details":{"cached_tokens":114}}}
 
       data: [DONE]
 
@@ -47,7 +49,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.716247583s
+    duration: 682.410125ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -62,7 +64,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -71,13 +73,233 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214721f682d7fb29b048d6","created":1768830441,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"1"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Create"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" named"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" test"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".txt"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" With"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" content"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" '"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hello"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" bash"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'\n"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Do"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" not"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" print"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" its"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" timestamp"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n\n"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" bash"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" can"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" `"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"echo"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"`"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" write"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" or"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" here"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-doc"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" doesn"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'t"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" want"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" timestamp"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" printed"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" so"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'ll"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" avoid"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" commands"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" like"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" `"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"touch"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"`"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" or"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" `"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"ls"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" -"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"l"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"`"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" that"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" would"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" show"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" timestamps"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".\n\n"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Simple"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"st"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" approach"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" `"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"echo"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" '"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hello"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" bash"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" >"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" test"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".txt"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"`\n\n"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" description"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]}
 
-      data: {"id":"20260119214721f682d7fb29b048d6","created":1768830441,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" required"}}]}
 
-      data: {"id":"20260119214721f682d7fb29b048d6","created":1768830441,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_559cbc417a2e4413a51512f5","index":0,"type":"function","function":{"name":"bash","arguments":"{\"command\":\"echo 'hello bash' > test.txt\",\"description\":\"Create test.txt with specified content\"}"}}]}}]}
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]}
 
-      data: {"id":"20260119214721f682d7fb29b048d6","created":1768830441,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12038,"completion_tokens":37,"total_tokens":12075,"prompt_tokens_details":{"cached_tokens":11906},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" bash"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" calls"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" according"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" instructions"}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_ba5a99dd0d034b3e8e70a241","index":0,"type":"function","function":{"name":"bash","arguments":"{\"command\":\"echo 'hello bash' > test.txt\",\"description\":\"Create test.txt with hello bash content\"}"}}]}}]}
+
+      data: {"id":"20260313005727ea5c45f293cd4470","created":1773334647,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12032,"completion_tokens":142,"total_tokens":12174,"prompt_tokens_details":{"cached_tokens":11900},"completion_tokens_details":{"reasoning_tokens":112}}}
 
       data: [DONE]
 
@@ -86,22 +308,22 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 22.877957416s
+    duration: 773.787083ms
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51088
+    content_length: 51540
     host: ""

internal/agent/testdata/TestCoderAgent/zai-glm4.6/download_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,19 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214746ff0f57f2dd6f4a3c","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005733fdb247bad6284afe","created":1773334653,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"20260119214746ff0f57f2dd6f4a3c","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Download"}}]}
+      data: {"id":"20260313005733fdb247bad6284afe","created":1773334653,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Download"}}]}
 
-      data: {"id":"20260119214746ff0f57f2dd6f4a3c","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
+      data: {"id":"20260313005733fdb247bad6284afe","created":1773334653,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]}
 
-      data: {"id":"20260119214746ff0f57f2dd6f4a3c","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" as"}}]}
+      data: {"id":"20260313005733fdb247bad6284afe","created":1773334653,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" save"}}]}
 
-      data: {"id":"20260119214746ff0f57f2dd6f4a3c","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" example"}}]}
+      data: {"id":"20260313005733fdb247bad6284afe","created":1773334653,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" text"}}]}
 
-      data: {"id":"20260119214746ff0f57f2dd6f4a3c","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":".txt"}}]}
+      data: {"id":"20260313005733fdb247bad6284afe","created":1773334653,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
 
-      data: {"id":"20260119214746ff0f57f2dd6f4a3c","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":143,"completion_tokens":9,"total_tokens":152,"prompt_tokens_details":{"cached_tokens":114}}}
+      data: {"id":"20260313005733fdb247bad6284afe","created":1773334653,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":143,"completion_tokens":9,"total_tokens":152,"prompt_tokens_details":{"cached_tokens":114}}}
 
       data: [DONE]
 
@@ -45,7 +45,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.298214334s
+    duration: 614.490625ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -60,7 +60,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -69,13 +69,207 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"202601192147461ac99dc89c064ff6","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
 
-      data: {"id":"202601192147461ac99dc89c064ff6","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
 
-      data: {"id":"202601192147461ac99dc89c064ff6","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_fb9c6d06858f4b6c93dec56d","index":0,"type":"function","function":{"name":"download","arguments":"{\"url\":\"https://example-files.online-convert.com/document/txt/example.txt\",\"file_path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/download_tool/example.txt\"}"}}]}}]}
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
 
-      data: {"id":"202601192147461ac99dc89c064ff6","created":1768830466,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12041,"completion_tokens":55,"total_tokens":12096,"prompt_tokens_details":{"cached_tokens":11906},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" download"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" from"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" URL"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" save"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" it"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" locally"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" `"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"download"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"`"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" task"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".\n\n"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" URL"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" https"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"://"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"example"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-files"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".online"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"convert"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".com"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/document"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/t"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"xt"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/example"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".txt"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" save"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" path"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" be"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" example"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".txt"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"relative"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" current"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" working"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" directory"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":")\n\n"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" have"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" all"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" required"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parameters"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" url"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" https"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"://"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"example"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-files"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".online"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"convert"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".com"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/document"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/t"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"xt"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/example"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".txt"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"_path"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" example"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".txt"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n\n"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Let"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" proceed"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" download"}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_a44e24123f4047cb80b8de6b","index":0,"type":"function","function":{"name":"download","arguments":"{\"file_path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/download_tool/example.txt\",\"url\":\"https://example-files.online-convert.com/document/txt/example.txt\"}"}}]}}]}
+
+      data: {"id":"202603130057340700288479834242","created":1773334654,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12035,"completion_tokens":146,"total_tokens":12181,"prompt_tokens_details":{"cached_tokens":11900},"completion_tokens_details":{"reasoning_tokens":99}}}
 
       data: [DONE]
 
@@ -84,7 +278,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 2.389240416s
+    duration: 1.295849292s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -130,22 +324,22 @@ interactions:
       - text/plain; charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 105.371333ms
+    duration: 689.155875ms
 - id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51259
+    content_length: 51693
     host: ""

internal/agent/testdata/TestCoderAgent/zai-glm4.6/fetch_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,19 +24,23 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026011921475024193c5bdb7a439a","created":1768830470,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005738a2808b3368ba4bed","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"2026011921475024193c5bdb7a439a","created":1768830470,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Check"}}]}
+      data: {"id":"20260313005738a2808b3368ba4bed","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Fetch"}}]}
 
-      data: {"id":"2026011921475024193c5bdb7a439a","created":1768830470,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" HTML"}}]}
+      data: {"id":"20260313005738a2808b3368ba4bed","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
 
-      data: {"id":"2026011921475024193c5bdb7a439a","created":1768830470,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]}
+      data: {"id":"20260313005738a2808b3368ba4bed","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]}
 
-      data: {"id":"2026011921475024193c5bdb7a439a","created":1768830470,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" John"}}]}
+      data: {"id":"20260313005738a2808b3368ba4bed","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" check"}}]}
 
-      data: {"id":"2026011921475024193c5bdb7a439a","created":1768830470,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Doe"}}]}
+      data: {"id":"20260313005738a2808b3368ba4bed","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]}
 
-      data: {"id":"2026011921475024193c5bdb7a439a","created":1768830470,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":148,"completion_tokens":9,"total_tokens":157,"prompt_tokens_details":{"cached_tokens":114}}}
+      data: {"id":"20260313005738a2808b3368ba4bed","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" John"}}]}
+
+      data: {"id":"20260313005738a2808b3368ba4bed","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Doe"}}]}
+
+      data: {"id":"20260313005738a2808b3368ba4bed","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":148,"completion_tokens":11,"total_tokens":159,"prompt_tokens_details":{"cached_tokens":114}}}
 
       data: [DONE]
 
@@ -45,7 +49,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 2.103121375s
+    duration: 736.606625ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -60,7 +64,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -69,13 +73,109 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"202601192147513b80b22044fc4fe9","created":1768830471,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" fetch"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" content"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" from"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" specific"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" URL"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" check"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" if"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" it"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" contains"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" phrase"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" '"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"John"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Doe"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'."}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
 
-      data: {"id":"202601192147513b80b22044fc4fe9","created":1768830471,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
 
-      data: {"id":"202601192147513b80b22044fc4fe9","created":1768830471,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_b14f6b78acee45be822bfc77","index":0,"type":"function","function":{"name":"fetch","arguments":"{\"url\":\"https://example-files.online-convert.com/website/html/example.html\",\"format\":\"text\"}"}}]}}]}
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" fetch"}}]}
 
-      data: {"id":"202601192147513b80b22044fc4fe9","created":1768830471,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12048,"completion_tokens":37,"total_tokens":12085,"prompt_tokens_details":{"cached_tokens":11906},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" get"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" content"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" then"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" search"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" text"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".\n\n"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Let"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" fetch"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" URL"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" provided"}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_dc6c417044ab4326b6643660","index":0,"type":"function","function":{"name":"fetch","arguments":"{\"format\":\"text\",\"url\":\"https://example-files.online-convert.com/website/html/example.html\"}"}}]}}]}
+
+      data: {"id":"20260313005738e5d6bb42474640c2","created":1773334658,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12042,"completion_tokens":79,"total_tokens":12121,"prompt_tokens_details":{"cached_tokens":11900},"completion_tokens_details":{"reasoning_tokens":50}}}
 
       data: [DONE]
 
@@ -84,7 +184,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 9.617347459s
+    duration: 1.241195167s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -155,22 +255,22 @@ interactions:
       - text/html; charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 52.297167ms
+    duration: 382.134334ms
 - id: 3
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 53623
+    content_length: 53837
     host: ""

internal/agent/testdata/TestCoderAgent/zai-glm4.6/glob_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,17 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026011921480674cd894f317040ff","created":1768830486,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005744c3401f0b08cd4721","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"2026011921480674cd894f317040ff","created":1768830486,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"glob"}}]}
+      data: {"id":"20260313005744c3401f0b08cd4721","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Find"}}]}
 
-      data: {"id":"2026011921480674cd894f317040ff","created":1768830486,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" find"}}]}
+      data: {"id":"20260313005744c3401f0b08cd4721","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
 
-      data: {"id":"2026011921480674cd894f317040ff","created":1768830486,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" go"}}]}
+      data: {"id":"20260313005744c3401f0b08cd4721","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" files"}}]}
 
-      data: {"id":"2026011921480674cd894f317040ff","created":1768830486,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" files"}}]}
+      data: {"id":"20260313005744c3401f0b08cd4721","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
 
-      data: {"id":"2026011921480674cd894f317040ff","created":1768830486,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":132,"completion_tokens":8,"total_tokens":140,"prompt_tokens_details":{"cached_tokens":4}}}
+      data: {"id":"20260313005744c3401f0b08cd4721","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" glob"}}]}
+
+      data: {"id":"20260313005744c3401f0b08cd4721","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":132,"completion_tokens":9,"total_tokens":141,"prompt_tokens_details":{"cached_tokens":115}}}
 
       data: [DONE]
 
@@ -43,7 +45,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.183180875s
+    duration: 645.146834ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -58,7 +60,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -67,13 +69,137 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214806c37dd6fcc7b04cd3","created":1768830486,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" glob"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" find"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" all"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ."}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"go"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" files"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" current"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" directory"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" working"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" directory"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" /"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"tmp"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/c"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"rush"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-test"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/Test"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Coder"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Agent"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/z"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"ai"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-g"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"lm"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"4"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"6"}}]}
 
-      data: {"id":"20260119214806c37dd6fcc7b04cd3","created":1768830486,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/g"}}]}
 
-      data: {"id":"20260119214806c37dd6fcc7b04cd3","created":1768830486,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_40d6420b263e46b4bda1214f","index":0,"type":"function","function":{"name":"glob","arguments":"{\"pattern\":\"*.go\"}"}}]}}]}
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"lob"}}]}
 
-      data: {"id":"20260119214806c37dd6fcc7b04cd3","created":1768830486,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12031,"completion_tokens":18,"total_tokens":12049,"prompt_tokens_details":{"cached_tokens":11906},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"_tool"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".\n\n"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'ll"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" glob"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" pattern"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \"*."}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"go"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\""}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" find"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Go"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" files"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" current"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" directory"}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_03463d649e8a4a77b9733e26","index":0,"type":"function","function":{"name":"glob","arguments":"{\"path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/glob_tool\",\"pattern\":\"*.go\"}"}}]}}]}
+
+      data: {"id":"202603130057444d5d79754b454958","created":1773334664,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12025,"completion_tokens":98,"total_tokens":12123,"prompt_tokens_details":{"cached_tokens":11900},"completion_tokens_details":{"reasoning_tokens":64}}}
 
       data: [DONE]
 
@@ -82,22 +208,22 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.685756542s
+    duration: 1.296899833s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51016
+    content_length: 51323
     host: ""

internal/agent/testdata/TestCoderAgent/zai-glm4.6/ls_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,19 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214825c9d8845a1ce84ef4","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"202603130057586d7c2b9c2d97413c","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"20260119214825c9d8845a1ce84ef4","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"List"}}]}
+      data: {"id":"202603130057586d7c2b9c2d97413c","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"List"}}]}
 
-      data: {"id":"20260119214825c9d8845a1ce84ef4","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" files"}}]}
+      data: {"id":"202603130057586d7c2b9c2d97413c","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" files"}}]}
 
-      data: {"id":"20260119214825c9d8845a1ce84ef4","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
+      data: {"id":"202603130057586d7c2b9c2d97413c","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
 
-      data: {"id":"20260119214825c9d8845a1ce84ef4","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" ls"}}]}
+      data: {"id":"202603130057586d7c2b9c2d97413c","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" ls"}}]}
 
-      data: {"id":"20260119214825c9d8845a1ce84ef4","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" command"}}]}
+      data: {"id":"202603130057586d7c2b9c2d97413c","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" command"}}]}
 
-      data: {"id":"20260119214825c9d8845a1ce84ef4","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":130,"completion_tokens":9,"total_tokens":139,"prompt_tokens_details":{"cached_tokens":4}}}
+      data: {"id":"202603130057586d7c2b9c2d97413c","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":130,"completion_tokens":9,"total_tokens":139,"prompt_tokens_details":{"cached_tokens":115}}}
 
       data: [DONE]
 
@@ -45,7 +45,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.619916917s
+    duration: 640.509291ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -60,7 +60,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -69,13 +69,113 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026011921482512c8ff786196438d","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
 
-      data: {"id":"2026011921482512c8ff786196438d","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
 
-      data: {"id":"2026011921482512c8ff786196438d","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_422b386ee85744df91071b26","index":0,"type":"function","function":{"name":"ls","arguments":"{\"path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/ls_tool\"}"}}]}}]}
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
 
-      data: {"id":"2026011921482512c8ff786196438d","created":1768830505,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12029,"completion_tokens":33,"total_tokens":12062,"prompt_tokens_details":{"cached_tokens":11906},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ls"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" list"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" files"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" current"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" directory"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" current"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" working"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" directory"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" `/"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"tmp"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/c"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"rush"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-test"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/Test"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Coder"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Agent"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/z"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"ai"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-g"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"lm"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"4"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"6"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"ls"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"_tool"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"`.\n\n"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'ll"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ls"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" list"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" files"}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_a4e74f4c387d4d67b6ce44d6","index":0,"type":"function","function":{"name":"ls","arguments":"{\"path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/ls_tool\"}"}}]}}]}
+
+      data: {"id":"20260313005758f2eb8a9158ec45e7","created":1773334678,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12023,"completion_tokens":79,"total_tokens":12102,"prompt_tokens_details":{"cached_tokens":11900},"completion_tokens_details":{"reasoning_tokens":52}}}
 
       data: [DONE]
 
@@ -84,22 +184,22 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.643054708s
+    duration: 1.319597s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51070
+    content_length: 51258
     host: ""

internal/agent/testdata/TestCoderAgent/zai-glm4.6/multiedit_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,25 +24,23 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214830f5b9b304dd864346","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"2026031300580127adcbad203e4bcb","created":1773334681,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"20260119214830f5b9b304dd864346","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Mult"}}]}
+      data: {"id":"2026031300580127adcbad203e4bcb","created":1773334681,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Mult"}}]}
 
-      data: {"id":"20260119214830f5b9b304dd864346","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"ied"}}]}
+      data: {"id":"2026031300580127adcbad203e4bcb","created":1773334681,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"ied"}}]}
 
-      data: {"id":"20260119214830f5b9b304dd864346","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"it"}}]}
+      data: {"id":"2026031300580127adcbad203e4bcb","created":1773334681,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"it"}}]}
 
-      data: {"id":"20260119214830f5b9b304dd864346","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]}
+      data: {"id":"2026031300580127adcbad203e4bcb","created":1773334681,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
 
-      data: {"id":"20260119214830f5b9b304dd864346","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" main"}}]}
+      data: {"id":"2026031300580127adcbad203e4bcb","created":1773334681,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" G"}}]}
 
-      data: {"id":"20260119214830f5b9b304dd864346","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":".go"}}]}
+      data: {"id":"2026031300580127adcbad203e4bcb","created":1773334681,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"reeting"}}]}
 
-      data: {"id":"20260119214830f5b9b304dd864346","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Title"}}]}
+      data: {"id":"2026031300580127adcbad203e4bcb","created":1773334681,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Change"}}]}
 
-      data: {"id":"20260119214830f5b9b304dd864346","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Change"}}]}
-
-      data: {"id":"20260119214830f5b9b304dd864346","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":153,"completion_tokens":12,"total_tokens":165,"prompt_tokens_details":{"cached_tokens":115}}}
+      data: {"id":"2026031300580127adcbad203e4bcb","created":1773334681,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":153,"completion_tokens":11,"total_tokens":164,"prompt_tokens_details":{"cached_tokens":115}}}
 
       data: [DONE]
 
@@ -51,7 +49,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.904839708s
+    duration: 650.443875ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -66,7 +64,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -75,71 +73,141 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" mult"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"ied"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"it"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"1"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Change"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" '"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Hello"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" World"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"!'"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" '"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Hello"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Crush"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"!'\n"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Add"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" comment"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" '//"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"I"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" G"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"'ll"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"reeting"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" help"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" above"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" use"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" mult"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" fmt"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"ied"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".Println"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"it"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" line"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" make"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" main"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" those"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".go"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" changes"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n\n"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"First"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" main"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":".go"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"."}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" need"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" First"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":","}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" read"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" let"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" me"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" main"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" view"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".go"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" current"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" see"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" its"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" understand"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" current"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" its"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" state"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" structure"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":".\n"}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" understand"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_751dfaded3ac40fd90f835e7","index":0,"type":"function","function":{"name":"view","arguments":"{\"file_path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/multiedit_tool/main.go\"}"}}]}}]}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
 
-      data: {"id":"2026011921483079fa0494aa4c48a7","created":1768830510,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12054,"completion_tokens":67,"total_tokens":12121,"prompt_tokens_details":{"cached_tokens":11906},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" exact"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" formatting"}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_bbe600f64cbd4f66bebf837c","index":0,"type":"function","function":{"name":"view","arguments":"{\"file_path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/multiedit_tool/main.go\"}"}}]}}]}
+
+      data: {"id":"2026031300580278bf94d8a7e04d15","created":1773334682,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12048,"completion_tokens":98,"total_tokens":12146,"prompt_tokens_details":{"cached_tokens":11900},"completion_tokens_details":{"reasoning_tokens":66}}}
 
       data: [DONE]
 
@@ -148,22 +216,22 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.974514209s
+    duration: 1.169831667s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51377
+    content_length: 51499
     host: ""

internal/agent/testdata/TestCoderAgent/zai-glm4.6/parallel_tool_calls.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,23 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"202601192148452cbea4d5a4814811","created":1768830525,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"2026031300583406bc96b58dec4ddf","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"202601192148452cbea4d5a4814811","created":1768830525,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Parallel"}}]}
+      data: {"id":"2026031300583406bc96b58dec4ddf","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Parallel"}}]}
 
-      data: {"id":"202601192148452cbea4d5a4814811","created":1768830525,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" glob"}}]}
+      data: {"id":"2026031300583406bc96b58dec4ddf","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" glob"}}]}
 
-      data: {"id":"202601192148452cbea4d5a4814811","created":1768830525,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]}
+      data: {"id":"2026031300583406bc96b58dec4ddf","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]}
 
-      data: {"id":"202601192148452cbea4d5a4814811","created":1768830525,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" ls"}}]}
+      data: {"id":"2026031300583406bc96b58dec4ddf","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" ls"}}]}
 
-      data: {"id":"202601192148452cbea4d5a4814811","created":1768830525,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]}
+      data: {"id":"2026031300583406bc96b58dec4ddf","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" commands"}}]}
 
-      data: {"id":"202601192148452cbea4d5a4814811","created":1768830525,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
-
-      data: {"id":"202601192148452cbea4d5a4814811","created":1768830525,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" files"}}]}
-
-      data: {"id":"202601192148452cbea4d5a4814811","created":1768830525,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":149,"completion_tokens":11,"total_tokens":160,"prompt_tokens_details":{"cached_tokens":4}}}
+      data: {"id":"2026031300583406bc96b58dec4ddf","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":149,"completion_tokens":9,"total_tokens":158,"prompt_tokens_details":{"cached_tokens":122}}}
 
       data: [DONE]
 
@@ -49,7 +45,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.2044225s
+    duration: 671.149208ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -64,7 +60,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -73,15 +69,121 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214846d6161f71748646b8","created":1768830526,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"1"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Use"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" glob"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" find"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" all"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ."}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"go"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" files"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Use"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ls"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" list"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" current"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" directory"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Both"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" be"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" run"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" parallel"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"in"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" same"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" message"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":")\n\n"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"This"}}]}
 
-      data: {"id":"20260119214846d6161f71748646b8","created":1768830526,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]}
 
-      data: {"id":"20260119214846d6161f71748646b8","created":1768830526,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_43c64878511140dc9941794a","index":0,"type":"function","function":{"name":"glob","arguments":"{\"pattern\":\"**/*.go\"}"}}]}}]}
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" straightforward"}}]}
 
-      data: {"id":"20260119214846d6161f71748646b8","created":1768830526,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_91a77afdfdae4e0e850768ad","index":1,"type":"function","function":{"name":"ls","arguments":"{\"path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/parallel_tool_calls\"}"}}]}}]}
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" -"}}]}
 
-      data: {"id":"20260119214846d6161f71748646b8","created":1768830526,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12049,"completion_tokens":49,"total_tokens":12098,"prompt_tokens_details":{"cached_tokens":11906},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'ll"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" both"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tools"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" single"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" message"}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_f03810915c3648c299924eed","index":0,"type":"function","function":{"name":"glob","arguments":"{\"pattern\":\"**/*.go\"}"}}]}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_1adef167a3794961899fc65c","index":1,"type":"function","function":{"name":"ls","arguments":"{\"path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/parallel_tool_calls\"}"}}]}}]}
+
+      data: {"id":"20260313005834f42ba52cd6a14242","created":1773334714,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12043,"completion_tokens":94,"total_tokens":12137,"prompt_tokens_details":{"cached_tokens":11901},"completion_tokens_details":{"reasoning_tokens":55}}}
 
       data: [DONE]
 
@@ -90,22 +192,22 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 15.501491166s
+    duration: 1.283819333s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51460
+    content_length: 51667
     host: ""

internal/agent/testdata/TestCoderAgent/zai-glm4.6/read_a_file.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,15 +24,17 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214656028e1a27796245c0","created":1768830416,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"202603130057068493e9d0537f4469","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"20260119214656028e1a27796245c0","created":1768830416,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Go"}}]}
+      data: {"id":"202603130057068493e9d0537f4469","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Go"}}]}
 
-      data: {"id":"20260119214656028e1a27796245c0","created":1768830416,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Module"}}]}
+      data: {"id":"202603130057068493e9d0537f4469","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" mod"}}]}
 
-      data: {"id":"20260119214656028e1a27796245c0","created":1768830416,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Summary"}}]}
+      data: {"id":"202603130057068493e9d0537f4469","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
 
-      data: {"id":"20260119214656028e1a27796245c0","created":1768830416,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":124,"completion_tokens":7,"total_tokens":131,"prompt_tokens_details":{"cached_tokens":114}}}
+      data: {"id":"202603130057068493e9d0537f4469","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" examination"}}]}
+
+      data: {"id":"202603130057068493e9d0537f4469","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":124,"completion_tokens":8,"total_tokens":132,"prompt_tokens_details":{"cached_tokens":114}}}
 
       data: [DONE]
 
@@ -41,7 +43,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.35162425s
+    duration: 485.383916ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -56,7 +58,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -65,33 +67,75 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" read"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" go"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".mod"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Let"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" first"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"I"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" check"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"'ll"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" what"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" read"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" files"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" are"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" go"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":".mod"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" current"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" directory"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":".\n"}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" then"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_529b52424c2d42d6b2171092","index":0,"type":"function","function":{"name":"view","arguments":"{\"file_path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/read_a_file/go.mod\"}"}}]}}]}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" read"}}]}
 
-      data: {"id":"20260119214657974efa061cb140fb","created":1768830417,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12023,"completion_tokens":46,"total_tokens":12069,"prompt_tokens_details":{"cached_tokens":45},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" go"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".mod"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" if"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" it"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" exists"}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_b1e59ba90d184abb9ee7fd6b","index":0,"type":"function","function":{"name":"ls","arguments":"{\"path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/read_a_file\"}"}}]}}]}
+
+      data: {"id":"20260313005706f80c346ec6174e25","created":1773334626,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12017,"completion_tokens":60,"total_tokens":12077,"prompt_tokens_details":{"cached_tokens":11900},"completion_tokens_details":{"reasoning_tokens":33}}}
 
       data: [DONE]
 
@@ -100,22 +144,93 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 2.725045167s
+    duration: 6.669161625s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51094
+    content_length: 51176
+    host: ""

internal/agent/testdata/TestCoderAgent/zai-glm4.6/simple_test.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,11 +24,11 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026011921463481193bf2b83c45e5","created":1768830394,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"2026031300570169f889211fd042f0","created":1773334621,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"2026011921463481193bf2b83c45e5","created":1768830394,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"}}]}
+      data: {"id":"2026031300570169f889211fd042f0","created":1773334621,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"}}]}
 
-      data: {"id":"2026011921463481193bf2b83c45e5","created":1768830394,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":121,"completion_tokens":5,"total_tokens":126,"prompt_tokens_details":{"cached_tokens":4}}}
+      data: {"id":"2026031300570169f889211fd042f0","created":1773334621,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":121,"completion_tokens":5,"total_tokens":126,"prompt_tokens_details":{"cached_tokens":4}}}
 
       data: [DONE]
 
@@ -37,7 +37,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.262129958s
+    duration: 1.889344417s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -52,7 +52,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -61,29 +61,125 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" just"}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"!"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" said"}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" How"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" can"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Hello"}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" I"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"."}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" help"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" This"}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" is"}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" today"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"?"}}]}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" simple"}}]}
 
-      data: {"id":"20260119214634622e4e36cb794803","created":1768830395,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12019,"completion_tokens":14,"total_tokens":12033,"prompt_tokens_details":{"cached_tokens":43},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" greeting"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" so"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" respond"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" brief"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" concise"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" greeting"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" back"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Based"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" on"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" my"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" communication"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" style"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" keep"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" this"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" under"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" "}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"4"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" lines"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" simple"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" greeting"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" without"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" preamble"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" or"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" post"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"amble"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"!"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" How"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" can"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" I"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" help"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" today"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"?"}}]}
+
+      data: {"id":"2026031300570288bac9cc12884e2d","created":1773334622,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12013,"completion_tokens":61,"total_tokens":12074,"prompt_tokens_details":{"cached_tokens":44},"completion_tokens_details":{"reasoning_tokens":50}}}
 
       data: [DONE]
 
@@ -92,4 +188,4 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 2.773061542s
+    duration: 4.959438458s

internal/agent/testdata/TestCoderAgent/zai-glm4.6/sourcegraph_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,19 +24,23 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119215657a528cbba8dc945c7","created":1768831017,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005814b570dd650aed4f95","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"20260119215657a528cbba8dc945c7","created":1768831017,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Source"}}]}
+      data: {"id":"20260313005814b570dd650aed4f95","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Search"}}]}
 
-      data: {"id":"20260119215657a528cbba8dc945c7","created":1768831017,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"graph"}}]}
+      data: {"id":"20260313005814b570dd650aed4f95","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" '"}}]}
 
-      data: {"id":"20260119215657a528cbba8dc945c7","created":1768831017,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
+      data: {"id":"20260313005814b570dd650aed4f95","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"func"}}]}
 
-      data: {"id":"20260119215657a528cbba8dc945c7","created":1768831017,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Main"}}]}
+      data: {"id":"20260313005814b570dd650aed4f95","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" main"}}]}
 
-      data: {"id":"20260119215657a528cbba8dc945c7","created":1768831017,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Search"}}]}
+      data: {"id":"20260313005814b570dd650aed4f95","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"'"}}]}
 
-      data: {"id":"20260119215657a528cbba8dc945c7","created":1768831017,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":133,"completion_tokens":9,"total_tokens":142,"prompt_tokens_details":{"cached_tokens":4}}}
+      data: {"id":"20260313005814b570dd650aed4f95","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]}
+
+      data: {"id":"20260313005814b570dd650aed4f95","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
+
+      data: {"id":"20260313005814b570dd650aed4f95","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":133,"completion_tokens":11,"total_tokens":144,"prompt_tokens_details":{"cached_tokens":115}}}
 
       data: [DONE]
 
@@ -45,7 +49,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.964927833s
+    duration: 653.2945ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -60,7 +64,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -69,13 +73,141 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119215658ebf0899598c84a95","created":1768831018,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" source"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"graph"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" search"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" '"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"func"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" main"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Go"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" repositories"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" need"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" construct"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" query"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" that"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"1"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Searches"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" for"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" pattern"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" '"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"func"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" main"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'\n"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Filters"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Go"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" language"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" files"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Searches"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" in"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" public"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" repositories"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n\n"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Let"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
 
-      data: {"id":"20260119215658ebf0899598c84a95","created":1768831018,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" source"}}]}
 
-      data: {"id":"20260119215658ebf0899598c84a95","created":1768831018,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_18f32b5908064e7eb51e0b83","index":0,"type":"function","function":{"name":"sourcegraph","arguments":"{\"count\":10,\"query\":\"lang:go func main\"}"}}]}}]}
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"graph"}}]}
 
-      data: {"id":"20260119215658ebf0899598c84a95","created":1768831018,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12032,"completion_tokens":30,"total_tokens":12062,"prompt_tokens_details":{"cached_tokens":45},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" appropriate"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" query"}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_4184759d6a4a4f20be0e70c4","index":0,"type":"function","function":{"name":"sourcegraph","arguments":"{\"count\":10,\"query\":\"lang:go func main\"}"}}]}}]}
+
+      data: {"id":"20260313005814a0e4c708d9a04454","created":1773334694,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12026,"completion_tokens":88,"total_tokens":12114,"prompt_tokens_details":{"cached_tokens":11900},"completion_tokens_details":{"reasoning_tokens":66}}}
 
       data: [DONE]
 
@@ -84,7 +216,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 2.915980375s
+    duration: 9.326890583s
 - id: 2
   request:
     proto: HTTP/1.1
@@ -106,28 +238,28 @@ interactions:
     proto_minor: 0
     content_length: -1
     uncompressed: true

internal/agent/testdata/TestCoderAgent/zai-glm4.6/update_a_file.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,17 +24,23 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026011921470892df6a623ba442e8","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"202603130057173d64ded14ab944a3","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"2026011921470892df6a623ba442e8","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Update"}}]}
+      data: {"id":"202603130057173d64ded14ab944a3","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Update"}}]}
 
-      data: {"id":"2026011921470892df6a623ba442e8","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" main"}}]}
+      data: {"id":"202603130057173d64ded14ab944a3","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" main"}}]}
 
-      data: {"id":"2026011921470892df6a623ba442e8","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":".go"}}]}
+      data: {"id":"202603130057173d64ded14ab944a3","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":".go"}}]}
 
-      data: {"id":"2026011921470892df6a623ba442e8","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" greeting"}}]}
+      data: {"id":"202603130057173d64ded14ab944a3","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
 
-      data: {"id":"2026011921470892df6a623ba442e8","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":134,"completion_tokens":8,"total_tokens":142,"prompt_tokens_details":{"cached_tokens":114}}}
+      data: {"id":"202603130057173d64ded14ab944a3","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]}
+
+      data: {"id":"202603130057173d64ded14ab944a3","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" crush"}}]}
+
+      data: {"id":"202603130057173d64ded14ab944a3","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" hello"}}]}
+
+      data: {"id":"202603130057173d64ded14ab944a3","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":134,"completion_tokens":11,"total_tokens":145,"prompt_tokens_details":{"cached_tokens":114}}}
 
       data: [DONE]
 
@@ -43,7 +49,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 2.524076791s
+    duration: 1.61739175s
 - id: 1
   request:
     proto: HTTP/1.1
@@ -58,7 +64,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -67,73 +73,133 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" update"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" main"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".go"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" change"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" print"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" statement"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"I"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" say"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"'ll"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" update"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"hello"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" from"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" main"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" crush"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":".go"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"."}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \n\n"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"First"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" change"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":","}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" I"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" print"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" statement"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" check"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" if"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" say"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" \""}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"hello"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" exists"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" from"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" and"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" crush"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" read"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\"."}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" its"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" Let"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" contents"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" me"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" first"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" see"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" check"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" what"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" needs"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" current"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" be"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" of"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" changed"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"I"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":".\n"}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"'ll"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_62dc338f90854683ab14ec72","index":0,"type":"function","function":{"name":"view","arguments":"{\"file_path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/update_a_file/main.go\"}"}}]}}]}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" help"}}]}
 
-      data: {"id":"202601192147080e5e8932eb084e69","created":1768830428,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12033,"completion_tokens":66,"total_tokens":12099,"prompt_tokens_details":{"cached_tokens":11906},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" you"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" update"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" main"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":".go"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"."}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" Let"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" me"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" first"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" read"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" the"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" current"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"."}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_60aa7caefc9d47008f5e4077","index":0,"type":"function","function":{"name":"view","arguments":"{\"file_path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/update_a_file/main.go\"}"}}]}}]}
+
+      data: {"id":"202603130057179283907760e94f61","created":1773334637,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12027,"completion_tokens":92,"total_tokens":12119,"prompt_tokens_details":{"cached_tokens":11900},"completion_tokens_details":{"reasoning_tokens":44}}}
 
       data: [DONE]
 
@@ -142,22 +208,22 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 3.660386958s
+    duration: 1.258704334s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51329
+    content_length: 51462
     host: ""

internal/agent/testdata/TestCoderAgent/zai-glm4.6/write_tool.yaml 🔗

@@ -15,7 +15,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -24,19 +24,23 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"20260119214841d5e404cbb41f4b39","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"2026031300583043a1c1ec22d741f4","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"20260119214841d5e404cbb41f4b39","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Creating"}}]}
+      data: {"id":"2026031300583043a1c1ec22d741f4","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Write"}}]}
 
-      data: {"id":"20260119214841d5e404cbb41f4b39","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" config"}}]}
+      data: {"id":"2026031300583043a1c1ec22d741f4","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" config"}}]}
 
-      data: {"id":"20260119214841d5e404cbb41f4b39","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":".json"}}]}
+      data: {"id":"2026031300583043a1c1ec22d741f4","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":".json"}}]}
 
-      data: {"id":"20260119214841d5e404cbb41f4b39","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
+      data: {"id":"2026031300583043a1c1ec22d741f4","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
 
-      data: {"id":"20260119214841d5e404cbb41f4b39","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
+      data: {"id":"2026031300583043a1c1ec22d741f4","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
 
-      data: {"id":"20260119214841d5e404cbb41f4b39","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":148,"completion_tokens":9,"total_tokens":157,"prompt_tokens_details":{"cached_tokens":115}}}
+      data: {"id":"2026031300583043a1c1ec22d741f4","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" JSON"}}]}
+
+      data: {"id":"2026031300583043a1c1ec22d741f4","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
+
+      data: {"id":"2026031300583043a1c1ec22d741f4","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":148,"completion_tokens":11,"total_tokens":159,"prompt_tokens_details":{"cached_tokens":115}}}
 
       data: [DONE]
 
@@ -45,7 +49,7 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 990.550333ms
+    duration: 714.901209ms
 - id: 1
   request:
     proto: HTTP/1.1
@@ -60,7 +64,7 @@ interactions:
       Content-Type:
       - application/json
       User-Agent:
-      - OpenAI/Go 2.7.1
+      - Charm-Crush/devel (https://charm.land/crush)
     url: https://api.z.ai/api/coding/paas/v4/chat/completions
     method: POST
   response:
@@ -69,13 +73,241 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"202601192148415b2feaac14784d75","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"The"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" user"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" wants"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" create"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" a"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" new"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" called"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" config"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".json"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" specific"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" content"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" {\""}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"name"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\":"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"test"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\","}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"version"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\":"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"1"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"0"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"0"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"}\n\n"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"I"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" need"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":":\n"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"1"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" Use"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" write"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" to"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" create"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"2"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" file"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" be"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" at"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" /"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"tmp"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/c"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"rush"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-test"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/Test"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Coder"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Agent"}}]}
 
-      data: {"id":"202601192148415b2feaac14784d75","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","content":"\n"}}]}
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/z"}}]}
 
-      data: {"id":"202601192148415b2feaac14784d75","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_7517f8ee8aeb43ca81864ca8","index":0,"type":"function","function":{"name":"write","arguments":"{\"content\":\"{\\\"name\\\": \\\"test\\\", \\\"version\\\": \\\"1.0.0\\\"}\",\"file_path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/write_tool/config.json\"}"}}]}}]}
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"ai"}}]}
 
-      data: {"id":"202601192148415b2feaac14784d75","created":1768830521,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12047,"completion_tokens":58,"total_tokens":12105,"prompt_tokens_details":{"cached_tokens":11906},"completion_tokens_details":{"reasoning_tokens":1}}}
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"-g"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"lm"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"4"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"6"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/write"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"_tool"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"/config"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":".json"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" ("}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"since"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" that"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'s"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" working"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" directory"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":")\n"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"3"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" The"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" content"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" should"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" be"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" exactly"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" '{\""}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"name"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\":"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"test"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\","}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"version"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\":"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" \""}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"1"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"0"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"0"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\"}"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"'\n\n"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"Let"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" me"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" use"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" write"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" tool"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" with"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" the"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" absolute"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":" path"}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"."}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"delta":{"tool_calls":[{"id":"call_794e434b07cb449b8fe6322a","index":0,"type":"function","function":{"name":"write","arguments":"{\"file_path\":\"/tmp/crush-test/TestCoderAgent/zai-glm4.6/write_tool/config.json\",\"content\":\"{\\\"name\\\": \\\"test\\\", \\\"version\\\": \\\"1.0.0\\\"}\"}"}}]}}]}
+
+      data: {"id":"20260313005830d71d5e032dfb455f","created":1773334710,"object":"chat.completion.chunk","model":"glm-4.6","choices":[{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":12041,"completion_tokens":166,"total_tokens":12207,"prompt_tokens_details":{"cached_tokens":11900},"completion_tokens_details":{"reasoning_tokens":116}}}
 
       data: [DONE]
 
@@ -84,22 +316,22 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 2.110609125s
+    duration: 1.185080917s
 - id: 2
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 51264
+    content_length: 51690
     host: ""