test: re-record vcr cassettes

Andrey Nering created

Change summary

internal/agent/testdata/TestCoderAgent/anthropic-sonnet/bash_tool.yaml             | 19 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/download_tool.yaml         | 18 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/fetch_tool.yaml            | 18 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/glob_tool.yaml             | 18 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/grep_tool.yaml             | 18 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/ls_tool.yaml               | 18 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/multiedit_tool.yaml        | 19 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/parallel_tool_calls.yaml   | 18 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/read_a_file.yaml           | 18 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/simple_test.yaml           | 20 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/sourcegraph_tool.yaml      | 19 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/update_a_file.yaml         | 18 
internal/agent/testdata/TestCoderAgent/anthropic-sonnet/write_tool.yaml            | 19 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/bash_tool.yaml                 | 32 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/download_tool.yaml             | 28 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/fetch_tool.yaml                | 30 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/glob_tool.yaml                 | 28 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/grep_tool.yaml                 | 30 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/ls_tool.yaml                   | 20 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/multiedit_tool.yaml            | 28 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/parallel_tool_calls.yaml       | 30 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/read_a_file.yaml               | 20 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/simple_test.yaml               | 14 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/sourcegraph_tool.yaml          | 34 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/update_a_file.yaml             | 34 
internal/agent/testdata/TestCoderAgent/openai-gpt-5/write_tool.yaml                | 24 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/bash_tool.yaml           | 24 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/download_tool.yaml       | 32 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/fetch_tool.yaml          | 18 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/glob_tool.yaml           | 18 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/grep_tool.yaml           | 20 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/ls_tool.yaml             | 18 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/multiedit_tool.yaml      | 34 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/parallel_tool_calls.yaml | 36 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/read_a_file.yaml         | 24 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/simple_test.yaml         | 12 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/sourcegraph_tool.yaml    | 18 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/update_a_file.yaml       | 24 
internal/agent/testdata/TestCoderAgent/openrouter-kimi-k2/write_tool.yaml          | 14 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/bash_tool.yaml                   | 18 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/download_tool.yaml               |  3 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/fetch_tool.yaml                  | 51 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/glob_tool.yaml                   | 18 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/grep_tool.yaml                   | 26 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/ls_tool.yaml                     |  3 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/multiedit_tool.yaml              | 24 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/parallel_tool_calls.yaml         | 22 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/read_a_file.yaml                 | 14 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/simple_test.yaml                 | 10 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/sourcegraph_tool.yaml            | 47 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/update_a_file.yaml               | 28 
internal/agent/testdata/TestCoderAgent/zai-glm4.6/write_tool.yaml                  | 22 
52 files changed, 571 insertions(+), 599 deletions(-)

Detailed changes

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

@@ -23,45 +23,46 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_0177UM6XRTDtJoPA1CS7DNYu","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":177,"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","inference_geo":"not_available"}}}
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01VzT95Yg52yRncWMcaLrmfC","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":177,"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","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 create"}             }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Bash create"}         }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" test.txt with hello bash"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" file without timestamp"}           }
 
       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,"stop_details":null},"usage":{"input_tokens":177,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":12}   }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null,"stop_details":null},"usage":{"input_tokens":177,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":9}               }
 
       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: 902.800167ms
+    duration: 1.104341792s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31194
+    content_length: 31043
     host: ""

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

@@ -26,43 +26,43 @@ interactions:
     uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01PS6qKVAAz9MYS8HXhaUzqv","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":185,"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"}} }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01FrLY1GjC7uhHuN4Wm3K2Er","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":185,"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":"Download"}             }
+      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":" example.txt file"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" and save example.txt file"}  }
 
       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,"stop_details":null},"usage":{"input_tokens":185,"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,"stop_details":null},"usage":{"input_tokens":185,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":10}             }
 
       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: 552.012708ms
+    duration: 849.119083ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31219
+    content_length: 31068
     host: ""

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

@@ -26,43 +26,43 @@ interactions:
     uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_019PvutHiAvPGAjwc3K7ZezY","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":192,"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","inference_geo":"not_available"}}  }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_014TzoSX5ygfeVjxiBpMuo5b","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":192,"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":"Fetch HTML"}          }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Check"}     }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" and search for John Doe"}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" if example.html contains 'John 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,"stop_details":null},"usage":{"input_tokens":192,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":12}           }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null,"stop_details":null},"usage":{"input_tokens":192,"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: 675.476542ms
+    duration: 912.685792ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31237
+    content_length: 31086
     host: ""

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

@@ -26,43 +26,43 @@ interactions:
     uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01JWf2kRs87U3RHaC6KS2hKm","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":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","inference_geo":"not_available"}}     }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_016gFGvY1mJARHPK5geBtZca","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":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","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":"Finding"}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Finding"}             }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" all .go files with glob"}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Go files with glob in current directory"}          }
 
       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,"stop_details":null},"usage":{"input_tokens":167,"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,"stop_details":null},"usage":{"input_tokens":167,"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: 509.169834ms
+    duration: 522.915792ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31155
+    content_length: 31004
     host: ""

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

@@ -26,43 +26,43 @@ interactions:
     uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01PnGjtwtdArJitw6WVHbcho","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":169,"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","inference_geo":"not_available"}}          }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01DDuSaAjzBVC2GMGFH71zGK","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":169,"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","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":"Grep search"}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Grep search"}               }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" for package in Go files"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" for 'package' in Go files"}}
 
       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,"stop_details":null},"usage":{"input_tokens":169,"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,"stop_details":null},"usage":{"input_tokens":169,"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: 526.974833ms
+    duration: 748.122792ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31153
+    content_length: 31002
     host: ""

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

@@ -26,43 +26,43 @@ interactions:
     uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01CaBgwQsqDXj8N1otrB7SVz","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":165,"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"}}    }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01524QdtZ125onKVyuqZxJuM","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":165,"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":"Listing"}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Using"}  }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Files with ls Command"}     }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" ls to list directory files"}            }
 
       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,"stop_details":null},"usage":{"input_tokens":165,"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,"stop_details":null},"usage":{"input_tokens":165,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":9}}
 
       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: 596.581875ms
+    duration: 671.612666ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31147
+    content_length: 30996
     host: ""

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

@@ -23,46 +23,45 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
-    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_019xXC3oRsSToBhvhwN62QVi","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":195,"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"}}               }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01RKM1qKvmwGiYc4aTLUrgpd","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":195,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"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":"mult"}     }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Multiedit Hello"}               }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"iedit to change Hello World to Hello Crush"}       }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" World to Hello Crush with comment"}           }
 
       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,"stop_details":null},"usage":{"input_tokens":195,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":14}      }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null,"stop_details":null},"usage":{"input_tokens":195,"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: 596.690833ms
+    duration: 642.710416ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31233
+    content_length: 31082
     host: ""

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

@@ -26,43 +26,43 @@ interactions:
     uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01RGYbcTPp9oMAH8957nmkP8","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":184,"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"}}           }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01HKqZKuLTTyE6hXkLYkJCug","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":184,"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":"Running"}     }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Finding"}  }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" glob and ls commands in parallel"}    }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Go files and listing directory in 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,"stop_details":null},"usage":{"input_tokens":184,"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,"stop_details":null},"usage":{"input_tokens":184,"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: 494.300334ms
+    duration: 644.135083ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31244
+    content_length: 31093
     host: ""

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

@@ -26,43 +26,43 @@ interactions:
     uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01K8vQmuyKbjBQifeb2WUzZa","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":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"}}        }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01LhuXKez6yFTEEV385d1cux","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":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":"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 file review"}}
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" mod file reading"}               }
 
       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,"stop_details":null},"usage":{"input_tokens":159,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":7}  }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null,"stop_details":null},"usage":{"input_tokens":159,"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: 615.172458ms
+    duration: 1.1756565s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31117
+    content_length: 30966
     host: ""

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

@@ -23,45 +23,43 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01EtZXHdNRPZ8DMfAdBXv1Fk","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":156,"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"}}   }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_019QZqWubF2xvU8AxWu51CHS","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":156,"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":"Hello"}           }
-
-      event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" there"}              }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Hello"}             }
 
       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,"stop_details":null},"usage":{"input_tokens":156,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":5}        }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null,"stop_details":null},"usage":{"input_tokens":156,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":4}           }
 
       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: 770.471042ms
+    duration: 755.416208ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31107
+    content_length: 30956
     host: ""

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

@@ -23,45 +23,46 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01Dn6kz1zwhHiNXgbUL57guo","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":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":5,"service_tier":"standard","inference_geo":"not_available"}}        }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_016XyqvjsUrPpyWxdMpxne7i","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":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":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":"Sourcegraph searching"}        }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":"Sourcegraph Go"}         }
 
       event: content_block_delta
-      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" for func main in Go repos"}  }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" func main Search"}     }
 
       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,"stop_details":null},"usage":{"input_tokens":170,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":14}    }
+      data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null,"stop_details":null},"usage":{"input_tokens":170,"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: 706.328458ms
+    duration: 692.93075ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31167
+    content_length: 31016
     host: ""

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

@@ -26,43 +26,43 @@ interactions:
     uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01NB5QFknQooeJuM7sm7ZnU4","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":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"}} }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01UR3MBvvH5GXuLq66hf7uDj","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":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":""}        }
+      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.go hello message from crush"}     }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" main.go print statement to say hello 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,"stop_details":null},"usage":{"input_tokens":170,"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,"stop_details":null},"usage":{"input_tokens":170,"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: 596.008708ms
+    duration: 681.551083ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31173
+    content_length: 31022
     host: ""

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

@@ -23,45 +23,46 @@ interactions:
     proto_major: 2
     proto_minor: 0
     content_length: -1
+    uncompressed: true
     body: |+
       event: message_start
-      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01Ut7n8edSPhwrdGNd6DAs5b","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":186,"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"}}  }
+      data: {"type":"message_start","message":{"model":"claude-haiku-4-5-20251001","id":"msg_01B97T62rPotpjpBoqwYEGhV","type":"message","role":"assistant","content":[],"stop_reason":null,"stop_sequence":null,"stop_details":null,"usage":{"input_tokens":186,"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.json with write command"}         }
+      data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" config.json file with JSON 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,"stop_details":null},"usage":{"input_tokens":186,"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,"stop_details":null},"usage":{"input_tokens":186,"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: 623.949ms
+    duration: 1.171629833s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31210
+    content_length: 31059
     host: ""

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

@@ -24,33 +24,25 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"j31hpz57PbCUp5"}
+      data: {"id":"chatcmpl-DUu766HHRJZGfCbzBIsqnXXbWbRg6","object":"chat.completion.chunk","created":1776257912,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"btFJOm8415mI2m"}
 
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"Create"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"smZWT2ViIs"}
+      data: {"id":"chatcmpl-DUu766HHRJZGfCbzBIsqnXXbWbRg6","object":"chat.completion.chunk","created":1776257912,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":"Creating"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"HuT3Bpv5"}
 
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" test"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dsRO6W34I11"}
+      data: {"id":"chatcmpl-DUu766HHRJZGfCbzBIsqnXXbWbRg6","object":"chat.completion.chunk","created":1776257912,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" a"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"b4r8VMOYrYZAuM"}
 
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":".txt"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"y1RHAzoKKTu3"}
+      data: {"id":"chatcmpl-DUu766HHRJZGfCbzBIsqnXXbWbRg6","object":"chat.completion.chunk","created":1776257912,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"EQgGDtlho8Q"}
 
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zK9BMVInPWE"}
+      data: {"id":"chatcmpl-DUu766HHRJZGfCbzBIsqnXXbWbRg6","object":"chat.completion.chunk","created":1776257912,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1aMQ6gMv4rM"}
 
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZILJtdKwT7CwHV"}
+      data: {"id":"chatcmpl-DUu766HHRJZGfCbzBIsqnXXbWbRg6","object":"chat.completion.chunk","created":1776257912,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Bash"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FzGsXtCzL7e"}
 
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"hello"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"BWCasWyCwjk"}
+      data: {"id":"chatcmpl-DUu766HHRJZGfCbzBIsqnXXbWbRg6","object":"chat.completion.chunk","created":1776257912,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Without"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"LtwOp6S2"}
 
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" bash"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KtcNSDFqqxD"}
+      data: {"id":"chatcmpl-DUu766HHRJZGfCbzBIsqnXXbWbRg6","object":"chat.completion.chunk","created":1776257912,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Timestamp"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9CGJGr"}
 
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"aR4JCAPH0NCMioH"}
+      data: {"id":"chatcmpl-DUu766HHRJZGfCbzBIsqnXXbWbRg6","object":"chat.completion.chunk","created":1776257912,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"O7d6fVtofG"}
 
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" content"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6h9A4duE"}
-
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9YnvfPrwzZXim"}
-
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Bash"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4XlpTxpq6Ox"}
-
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"nQQOQMffUP"}
-
-      data: {"id":"chatcmpl-DTBShhjEdipyusO44qHtguBDtZYpc","object":"chat.completion.chunk","created":1775847943,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[],"usage":{"prompt_tokens":161,"completion_tokens":11,"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":"FnsCGu8aJqv5Y"}
+      data: {"id":"chatcmpl-DUu766HHRJZGfCbzBIsqnXXbWbRg6","object":"chat.completion.chunk","created":1776257912,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[],"usage":{"prompt_tokens":161,"completion_tokens":7,"total_tokens":168,"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":"PDcwbMlWzQteaR"}
 
       data: [DONE]
 
@@ -59,15 +51,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 583.310209ms
+    duration: 476.599417ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30854
+    content_length: 30703
     host: ""

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

@@ -24,29 +24,27 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Ip35hh5JVCH8fB"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"u2Zl5nMG0dL9CP"}
 
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"Download"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"tUMsweNo"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"Downloading"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Ra9ua"}
 
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"WmkSXDrhx1aK"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"iobtzjlXdwSz"}
 
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Save"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"PQZ7DNZWxzY"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Saving"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"xeaxb2qW1"}
 
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TcF4DJd2Aue"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" a"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"iUZ9jtz5dNraEH"}
 
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" from"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"B6896ktnKvt"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Text"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"JNLJDvRUXy2"}
 
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" URL"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"CCOz9exFCK9q"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"g7qIehCB3JO"}
 
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" as"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ujWXgrW87kjWO"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" from"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"aZ7zn892ySL"}
 
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" example"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"CePCkwEa"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" URL"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"154tqRwBY6vR"}
 
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":".txt"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"IhiSIOsJLoSn"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"C35gRaSm0j"}
 
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"ACGJudtzHq"}
-
-      data: {"id":"chatcmpl-DTBSr8xjMtA2YjYriw992Z8CsPC1W","object":"chat.completion.chunk","created":1775847953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[],"usage":{"prompt_tokens":164,"completion_tokens":9,"total_tokens":173,"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":"AMn3T5819SD7Nr"}
+      data: {"id":"chatcmpl-DUu7P8bArE2m7oXyibZyJZnXnPJGS","object":"chat.completion.chunk","created":1776257931,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[],"usage":{"prompt_tokens":164,"completion_tokens":8,"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":"MtWLF0P0cBrYuV"}
 
       data: [DONE]
 
@@ -55,15 +53,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.194561792s
+    duration: 383.557166ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30879
+    content_length: 30728
     host: ""

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

@@ -24,27 +24,31 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"HFzR8wz8ZBVTIq"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"jvf30qULGidN2V"}
 
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":"Check"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"E8TgwKSPPu2"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"content":"Check"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"giDQMHsHsaK"}
 
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" Website"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7yiAHM7w"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"content":" for"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"JAxGYkIBjd9W"}
 
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" Content"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"iSnvgIq5"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"yr4WzGAPPot7Sf"}
 
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" for"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4Niq20xkJjX0"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"content":"John"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"oKUPSAS7l6kZ"}
 
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bL9xnph8Csmyu0"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"content":" Doe"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"LjGLjnAdEQUr"}
 
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":"John"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"IPjCWHV7Kpfq"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9SHF6RnjpLTAEsu"}
 
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" Doe"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"jMmNW0E1bQbq"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"sBfZdecUfRFOd"}
 
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cUQPNWKQImIihiY"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"content":" Online"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zvGABZYSl"}
 
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"urZcl1x3Wp"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"content":" HTML"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zMm9h9k5cZ0"}
 
-      data: {"id":"chatcmpl-DTBT7z5RnFzyxDEoivkImtAvWXvSC","object":"chat.completion.chunk","created":1775847969,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[],"usage":{"prompt_tokens":169,"completion_tokens":8,"total_tokens":177,"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":"wZb8jaymz7IhEQ"}
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{"content":" File"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"kubOtDlhaEs"}
+
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"UsjdBVfwJ0"}
+
+      data: {"id":"chatcmpl-DUu7leRpegv7FTwppRdPxLoDutmRp","object":"chat.completion.chunk","created":1776257953,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d65b5b17fe","choices":[],"usage":{"prompt_tokens":169,"completion_tokens":10,"total_tokens":179,"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":"K4M1Jf0PUNp4O"}
 
       data: [DONE]
 
@@ -53,15 +57,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 698.907958ms
+    duration: 1.854110209s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30897
+    content_length: 30746
     host: ""

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

@@ -24,23 +24,29 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBTKUHr31EPvyQMFbXdeejY7EZHs","object":"chat.completion.chunk","created":1775847982,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Gyh2d77d9h9fei"}
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"a2x71ppZ5Z1qs5"}
 
-      data: {"id":"chatcmpl-DTBTKUHr31EPvyQMFbXdeejY7EZHs","object":"chat.completion.chunk","created":1775847982,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"Finding"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"h9ZQtv0Lw"}
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"Finding"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Tn2CYUEym"}
 
-      data: {"id":"chatcmpl-DTBTKUHr31EPvyQMFbXdeejY7EZHs","object":"chat.completion.chunk","created":1775847982,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" ."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZXciTfqJ5zlGRa"}
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" ."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"xVsGTBkumRMEVe"}
 
-      data: {"id":"chatcmpl-DTBTKUHr31EPvyQMFbXdeejY7EZHs","object":"chat.completion.chunk","created":1775847982,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"SWxhda8L27XOZ7"}
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QFn1JT6GE1J1tl"}
 
-      data: {"id":"chatcmpl-DTBTKUHr31EPvyQMFbXdeejY7EZHs","object":"chat.completion.chunk","created":1775847982,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"12bhJiwbyj"}
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"RcPpPAinfY"}
 
-      data: {"id":"chatcmpl-DTBTKUHr31EPvyQMFbXdeejY7EZHs","object":"chat.completion.chunk","created":1775847982,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Using"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"deHf8Gv1T4"}
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"qOdC5qqw3lD"}
 
-      data: {"id":"chatcmpl-DTBTKUHr31EPvyQMFbXdeejY7EZHs","object":"chat.completion.chunk","created":1775847982,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Glob"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"2MNUCMpPoYn"}
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Glob"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"o7pZGxVzN4M"}
 
-      data: {"id":"chatcmpl-DTBTKUHr31EPvyQMFbXdeejY7EZHs","object":"chat.completion.chunk","created":1775847982,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"lXGvNnQLfK"}
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"60gBO8RrsjiQq"}
 
-      data: {"id":"chatcmpl-DTBTKUHr31EPvyQMFbXdeejY7EZHs","object":"chat.completion.chunk","created":1775847982,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","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":"l9uSLJDmJOqQiN"}
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Current"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"M2evSfdW"}
+
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Directory"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"RCtmze"}
+
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"St0cm2OqCX"}
+
+      data: {"id":"chatcmpl-DUu7vwRcZeq1bGZKjOFL4UnjWIszV","object":"chat.completion.chunk","created":1776257963,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","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":"i4S0SUY7py1rLP"}
 
       data: [DONE]
 
@@ -49,15 +55,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 424.062292ms
+    duration: 462.902458ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30815
+    content_length: 30664
     host: ""

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

@@ -24,31 +24,31 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bl27TTSk47YiRv"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"uxNecKgAuOkR7p"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"Search"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"jyQCPGnGnD"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"Using"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"lGHYXKjoiKU"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" for"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ccDq7Sajt9t1"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" grep"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"R1Pistrcm7c"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZoPB12juvEv0Y4"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" to"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"uTzT0W9oK8xlh"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"package"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"b6sES8uG0"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" find"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"55aUOVWEWre"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6UnCnrWxWDKKy2F"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pS156bwGCUwr0i"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"mc0g2xOQRptkb"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"package"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7Dh6cgrtx"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"eHiJUSJsN3i6P"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FSDGrXERmN2EBLT"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"8onElgzCTD"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rJSDz5sFx6nrb"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" using"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"i7NAD8buYQ"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"PQLYXTtYVqeIm"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" grep"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7omcvQ2zFR9"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TgVKN33UYi"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"XRLHHqhIyd"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"6hGyE1De9N"}
 
-      data: {"id":"chatcmpl-DTBTOFxlnrQzL6Q4euaMFP0ITI1fb","object":"chat.completion.chunk","created":1775847986,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[],"usage":{"prompt_tokens":154,"completion_tokens":10,"total_tokens":164,"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":"5UCFYEgY93Mj3"}
+      data: {"id":"chatcmpl-DUu848sQt4Ep7RV7uVnyx102d94YI","object":"chat.completion.chunk","created":1776257972,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[],"usage":{"prompt_tokens":154,"completion_tokens":10,"total_tokens":164,"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":"Ar0GwunAmv3vi"}
 
       data: [DONE]
 
@@ -57,15 +57,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 424.598542ms
+    duration: 558.148708ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30813
+    content_length: 30662
     host: ""

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

@@ -24,21 +24,21 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBTViJPe8lif4yuMeeyz7X4Am8Jq","object":"chat.completion.chunk","created":1775847993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1UUoppHKnlOYUk"}
+      data: {"id":"chatcmpl-DUu8By9ZhTZA2ibLQodzTs4CJg9HK","object":"chat.completion.chunk","created":1776257979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KdWvH71jPQncsC"}
 
-      data: {"id":"chatcmpl-DTBTViJPe8lif4yuMeeyz7X4Am8Jq","object":"chat.completion.chunk","created":1775847993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"Listing"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"mM8p9AbGv"}
+      data: {"id":"chatcmpl-DUu8By9ZhTZA2ibLQodzTs4CJg9HK","object":"chat.completion.chunk","created":1776257979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"Listing"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QTgvyWYJF"}
 
-      data: {"id":"chatcmpl-DTBTViJPe8lif4yuMeeyz7X4Am8Jq","object":"chat.completion.chunk","created":1775847993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pL4dtpcB1y"}
+      data: {"id":"chatcmpl-DUu8By9ZhTZA2ibLQodzTs4CJg9HK","object":"chat.completion.chunk","created":1776257979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"95S2InrgnJ"}
 
-      data: {"id":"chatcmpl-DTBTViJPe8lif4yuMeeyz7X4Am8Jq","object":"chat.completion.chunk","created":1775847993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VO0rgaQFv1X"}
+      data: {"id":"chatcmpl-DUu8By9ZhTZA2ibLQodzTs4CJg9HK","object":"chat.completion.chunk","created":1776257979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"BXlMfiG1WWO"}
 
-      data: {"id":"chatcmpl-DTBTViJPe8lif4yuMeeyz7X4Am8Jq","object":"chat.completion.chunk","created":1775847993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" ls"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"wB095nslLkxPh"}
+      data: {"id":"chatcmpl-DUu8By9ZhTZA2ibLQodzTs4CJg9HK","object":"chat.completion.chunk","created":1776257979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" LS"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6Rx07ZTyhSMbA"}
 
-      data: {"id":"chatcmpl-DTBTViJPe8lif4yuMeeyz7X4Am8Jq","object":"chat.completion.chunk","created":1775847993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Command"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ubq3RY4B"}
+      data: {"id":"chatcmpl-DUu8By9ZhTZA2ibLQodzTs4CJg9HK","object":"chat.completion.chunk","created":1776257979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Command"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"SPSL3vJ4"}
 
-      data: {"id":"chatcmpl-DTBTViJPe8lif4yuMeeyz7X4Am8Jq","object":"chat.completion.chunk","created":1775847993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"X30CeKPPiH"}
+      data: {"id":"chatcmpl-DUu8By9ZhTZA2ibLQodzTs4CJg9HK","object":"chat.completion.chunk","created":1776257979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"09O2pUvzlg"}
 
-      data: {"id":"chatcmpl-DTBTViJPe8lif4yuMeeyz7X4Am8Jq","object":"chat.completion.chunk","created":1775847993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[],"usage":{"prompt_tokens":151,"completion_tokens":5,"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":"HsDTBXKAqa5Uib"}
+      data: {"id":"chatcmpl-DUu8By9ZhTZA2ibLQodzTs4CJg9HK","object":"chat.completion.chunk","created":1776257979,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[],"usage":{"prompt_tokens":151,"completion_tokens":5,"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":"AWangyIfGvW1fn"}
 
       data: [DONE]
 
@@ -47,15 +47,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 690.410167ms
+    duration: 495.352166ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30807
+    content_length: 30656
     host: ""

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

@@ -24,29 +24,27 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ES3H5R6rrAELN3"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pdXDH27RbLoHxt"}
 
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"Editing"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4E69x3U39"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":"Updating"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7ZzORgyJ"}
 
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Ohg0gOCEB97"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Greeting"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pWByjnu"}
 
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":".go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Lt6wj4gMIcyIe"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Message"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6IOUbSDj"}
 
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"EKhSYxOQqF6ZbZM"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"qs8mFwfRiROzU"}
 
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Change"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"R5oYkt1j6"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"AOKru5lV1pk"}
 
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Greeting"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"xi7sy2I"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":".go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"r4L6nUPGX7SM4"}
 
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"hBUsRQlVwpjU"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"98sGxlUf9T9"}
 
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Add"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FPvNUSqT0EQ4"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Comment"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ILxbKeYR"}
 
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Comment"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"0iMaM2Q2"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"HV7P1UFb9I"}
 
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"hy2tQRrruS"}
-
-      data: {"id":"chatcmpl-DTBwIBSrGhw5Qx6YzZ3FLUt5Zr38r","object":"chat.completion.chunk","created":1775849778,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[],"usage":{"prompt_tokens":173,"completion_tokens":9,"total_tokens":182,"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":"HXGzvV9LVSJp7P"}
+      data: {"id":"chatcmpl-DUuHv4cCwsfQOFgckGzR68rs71VKw","object":"chat.completion.chunk","created":1776258583,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[],"usage":{"prompt_tokens":173,"completion_tokens":8,"total_tokens":181,"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":"HVTixg6ANeOJbV"}
 
       data: [DONE]
 
@@ -55,15 +53,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 532.62975ms
+    duration: 662.977083ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30893
+    content_length: 30742
     host: ""

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

@@ -24,31 +24,25 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"GlJsJCepcpNmGp"}
+      data: {"id":"chatcmpl-DUu90yHFiqANxMC539sFFf3Ox94Lf","object":"chat.completion.chunk","created":1776258030,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"P4Pcx2SHsL1Ht0"}
 
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"Parallel"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"XcZtR2Aw"}
+      data: {"id":"chatcmpl-DUu90yHFiqANxMC539sFFf3Ox94Lf","object":"chat.completion.chunk","created":1776258030,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":"Running"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"I23AxfXaa"}
 
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Execution"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"uIVoqp"}
+      data: {"id":"chatcmpl-DUu90yHFiqANxMC539sFFf3Ox94Lf","object":"chat.completion.chunk","created":1776258030,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Glob"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ig87JsfJZjB"}
 
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" of"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"g69IIsZhkIm1A"}
+      data: {"id":"chatcmpl-DUu90yHFiqANxMC539sFFf3Ox94Lf","object":"chat.completion.chunk","created":1776258030,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"SyFictSzn3CU"}
 
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Glob"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QBhvu10YwcM"}
+      data: {"id":"chatcmpl-DUu90yHFiqANxMC539sFFf3Ox94Lf","object":"chat.completion.chunk","created":1776258030,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" LS"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZWMk2qQZPUUII"}
 
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" and"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZXlwpuZPQkL8"}
+      data: {"id":"chatcmpl-DUu90yHFiqANxMC539sFFf3Ox94Lf","object":"chat.completion.chunk","created":1776258030,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Commands"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"KsOhZOQ"}
 
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" LS"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dzpTJ7cu1ydsl"}
+      data: {"id":"chatcmpl-DUu90yHFiqANxMC539sFFf3Ox94Lf","object":"chat.completion.chunk","created":1776258030,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QvBWJsGovNPVh"}
 
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" for"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"nZQf5hR5RLjD"}
+      data: {"id":"chatcmpl-DUu90yHFiqANxMC539sFFf3Ox94Lf","object":"chat.completion.chunk","created":1776258030,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Parallel"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"iwptu0d"}
 
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" ."},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"gpeNnuvduDJlPP"}
+      data: {"id":"chatcmpl-DUu90yHFiqANxMC539sFFf3Ox94Lf","object":"chat.completion.chunk","created":1776258030,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"0hKCRMiXL4"}
 
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"42BBnnQAr8wIg8"}
-
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Files"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5tRtsu32QZ"}
-
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"3PgLwKh330"}
-
-      data: {"id":"chatcmpl-DTBV8tpswlz4avSwi7JkfmCW31tNt","object":"chat.completion.chunk","created":1775848094,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[],"usage":{"prompt_tokens":170,"completion_tokens":10,"total_tokens":180,"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":"ERSXp7nJ5kQ0Q"}
+      data: {"id":"chatcmpl-DUu90yHFiqANxMC539sFFf3Ox94Lf","object":"chat.completion.chunk","created":1776258030,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[],"usage":{"prompt_tokens":170,"completion_tokens":7,"total_tokens":177,"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":"XQUDNF0k7Xd1jN"}
 
       data: [DONE]
 
@@ -57,15 +51,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 605.141916ms
+    duration: 552.086291ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30904
+    content_length: 30753
     host: ""

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

@@ -24,21 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBSDLMiDBYMB7R8mrUKOEgQ1ZmT4","object":"chat.completion.chunk","created":1775847913,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6HiEiB8HX3Zelt"}
+      data: {"id":"chatcmpl-DUu6dqBgbhU1UPRnCxHakFCyc9onb","object":"chat.completion.chunk","created":1776257883,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"EwmOllIzTgofTi"}
 
-      data: {"id":"chatcmpl-DTBSDLMiDBYMB7R8mrUKOEgQ1ZmT4","object":"chat.completion.chunk","created":1775847913,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"Understanding"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"f71"}
+      data: {"id":"chatcmpl-DUu6dqBgbhU1UPRnCxHakFCyc9onb","object":"chat.completion.chunk","created":1776257883,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"Reading"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"cjOicLixi"}
 
-      data: {"id":"chatcmpl-DTBSDLMiDBYMB7R8mrUKOEgQ1ZmT4","object":"chat.completion.chunk","created":1775847913,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" the"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5trz9i18qdDn"}
+      data: {"id":"chatcmpl-DUu6dqBgbhU1UPRnCxHakFCyc9onb","object":"chat.completion.chunk","created":1776257883,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QtnAAPDcRXyMB"}
 
-      data: {"id":"chatcmpl-DTBSDLMiDBYMB7R8mrUKOEgQ1ZmT4","object":"chat.completion.chunk","created":1775847913,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7sV7YlGq8wFU8"}
+      data: {"id":"chatcmpl-DUu6dqBgbhU1UPRnCxHakFCyc9onb","object":"chat.completion.chunk","created":1776257883,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Module"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZWwjoOccl"}
 
-      data: {"id":"chatcmpl-DTBSDLMiDBYMB7R8mrUKOEgQ1ZmT4","object":"chat.completion.chunk","created":1775847913,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Module"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bi1bbJbBH"}
+      data: {"id":"chatcmpl-DUu6dqBgbhU1UPRnCxHakFCyc9onb","object":"chat.completion.chunk","created":1776257883,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Information"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rxaq"}
 
-      data: {"id":"chatcmpl-DTBSDLMiDBYMB7R8mrUKOEgQ1ZmT4","object":"chat.completion.chunk","created":1775847913,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" System"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VrqvQeRPa"}
+      data: {"id":"chatcmpl-DUu6dqBgbhU1UPRnCxHakFCyc9onb","object":"chat.completion.chunk","created":1776257883,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"VeSW8VDmIo"}
 
-      data: {"id":"chatcmpl-DTBSDLMiDBYMB7R8mrUKOEgQ1ZmT4","object":"chat.completion.chunk","created":1775847913,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"kAE9G1K7Tb"}
-
-      data: {"id":"chatcmpl-DTBSDLMiDBYMB7R8mrUKOEgQ1ZmT4","object":"chat.completion.chunk","created":1775847913,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[],"usage":{"prompt_tokens":145,"completion_tokens":5,"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":"lXr3eSUfBpvRzv"}
+      data: {"id":"chatcmpl-DUu6dqBgbhU1UPRnCxHakFCyc9onb","object":"chat.completion.chunk","created":1776257883,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[],"usage":{"prompt_tokens":145,"completion_tokens":4,"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":"r9JMj8ytipcFIU"}
 
       data: [DONE]
 
@@ -47,15 +45,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.223565125s
+    duration: 1.372738958s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30777
+    content_length: 30626
     host: ""

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

@@ -24,15 +24,15 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBS9KD8X0Mlnl19ZMcxmOdgxaxTQ","object":"chat.completion.chunk","created":1775847909,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"AdDeGbcc7dHmjr"}
+      data: {"id":"chatcmpl-DUu6aInjKVkX6LT00KPNjZ0Gb1TG2","object":"chat.completion.chunk","created":1776257880,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Ih6EAwz94Qt5Lg"}
 
-      data: {"id":"chatcmpl-DTBS9KD8X0Mlnl19ZMcxmOdgxaxTQ","object":"chat.completion.chunk","created":1775847909,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":"Greeting"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"M3BSMEDL"}
+      data: {"id":"chatcmpl-DUu6aInjKVkX6LT00KPNjZ0Gb1TG2","object":"chat.completion.chunk","created":1776257880,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"Greeting"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zzUirghY"}
 
-      data: {"id":"chatcmpl-DTBS9KD8X0Mlnl19ZMcxmOdgxaxTQ","object":"chat.completion.chunk","created":1775847909,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" Message"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"6iUQFg26"}
+      data: {"id":"chatcmpl-DUu6aInjKVkX6LT00KPNjZ0Gb1TG2","object":"chat.completion.chunk","created":1776257880,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" Message"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"wxDMlPti"}
 
-      data: {"id":"chatcmpl-DTBS9KD8X0Mlnl19ZMcxmOdgxaxTQ","object":"chat.completion.chunk","created":1775847909,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"8y7EZOYm9f"}
+      data: {"id":"chatcmpl-DUu6aInjKVkX6LT00KPNjZ0Gb1TG2","object":"chat.completion.chunk","created":1776257880,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"oajOqsk75J"}
 
-      data: {"id":"chatcmpl-DTBS9KD8X0Mlnl19ZMcxmOdgxaxTQ","object":"chat.completion.chunk","created":1775847909,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[],"usage":{"prompt_tokens":142,"completion_tokens":2,"total_tokens":144,"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":"B9RoBbXjiQRgSF"}
+      data: {"id":"chatcmpl-DUu6aInjKVkX6LT00KPNjZ0Gb1TG2","object":"chat.completion.chunk","created":1776257880,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[],"usage":{"prompt_tokens":142,"completion_tokens":2,"total_tokens":144,"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":"Un8176gp7eRd67"}
 
       data: [DONE]
 
@@ -41,15 +41,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 2.473751083s
+    duration: 2.400276875s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30767
+    content_length: 30616
     host: ""

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

@@ -24,35 +24,35 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"5kG5O1A43eibDJ"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TLIhDuNot1v6xm"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"Searching"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"tdSzgIc"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":"Searching"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zzHJdCx"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"tmZP7uZlCvzVRi"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" '"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"mcqjdcqPhyB95D"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"func"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"YsfebVLDiCzu"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":"func"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"TcarK8oZfyPg"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Q88QwG9ngyu"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"PNb5sfnv46S"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"B036jaBzefBtzKL"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":"'"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"3Vpc2Y9IUXz0XEY"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"S0zqsNVBKRm9L"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"VVXceRwtpom8t"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"j7ANV9tb3DUC8"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"H5hyBr4mmUZIY"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Re"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"unfuMA7HY2MbN"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Re"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"t54vf8ssB1HQh"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"positories"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Cuk8nR"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":"positories"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"bPh76T"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Using"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rm6ttFhyp6"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Using"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"BQKXikInH7"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Source"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"9dOclbEVR"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" Source"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"utFZ1tXLk"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"graph"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"jtIKG9hYHfd"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":"graph"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"BOZEYp094Vm"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"Mo49yPMTvh"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"9nGlrL9PcC"}
 
-      data: {"id":"chatcmpl-DTBUbbGQVZAktEDyQ7m4poBHyoc8G","object":"chat.completion.chunk","created":1775848061,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[],"usage":{"prompt_tokens":154,"completion_tokens":12,"total_tokens":166,"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":"sEPbr5nYPwbiX"}
+      data: {"id":"chatcmpl-DUu8PgjWhzEBZ68J5cdeqYLGGLCfn","object":"chat.completion.chunk","created":1776257993,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[],"usage":{"prompt_tokens":154,"completion_tokens":12,"total_tokens":166,"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":"4GNnu13ZQlgrM"}
 
       data: [DONE]
 
@@ -61,15 +61,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 455.111834ms
+    duration: 531.269ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30827
+    content_length: 30676
     host: ""

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

@@ -24,31 +24,35 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"XiDvZTyJxQP7Wx"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vxS8DuIry7SlEa"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":"Update"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Kwws4GTQvc"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"Update"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Qbznj4V5xk"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"CKFDfDXsFdZ"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" print"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"wNiaID5A6p"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":".go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"kIoLxopTEYkwW"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" message"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"qG3mkG7V"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" to"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"U0096QLSQEvqa"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" in"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"y74AD9fsadJFa"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" Print"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"uS1g40cgJB"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" main"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"vgW1Y1epwFK"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" \""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"dYMU5ssbFCLTN"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":".go"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"1NSzZyNShRz1a"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"7OjhUDzYLiV"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" to"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ptGkueYFA1B2o"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" from"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"kd9TQoJtczG"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" \""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"txuhK9Uh7GcD7"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":" Crush"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Dxzbbl0miI"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"hello"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"pD7Yo0C1wzV"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{"content":"\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"QvtEkvgdVFFMrO"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" from"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"zpgxh1k4fQF"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"pSwNgqujle"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":" crush"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"3jWMQjThdP"}
 
-      data: {"id":"chatcmpl-DTBSQDHEN4I5KzLMNCIljfZucWic9","object":"chat.completion.chunk","created":1775847926,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_32f061d4be","choices":[],"usage":{"prompt_tokens":155,"completion_tokens":10,"total_tokens":165,"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":"VzZbhjcibajyj"}
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{"content":"\""},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"LbDPFqNW5l6W1w"}
+
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"4PaKFljQoZ"}
+
+      data: {"id":"chatcmpl-DUu6kvaBnw75LTfXpSDqulFyMN2rq","object":"chat.completion.chunk","created":1776257890,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_2608ccf94f","choices":[],"usage":{"prompt_tokens":155,"completion_tokens":12,"total_tokens":167,"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":"ceuoCJksB71I1"}
 
       data: [DONE]
 
@@ -57,15 +61,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 1.264199208s
+    duration: 1.119495167s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30833
+    content_length: 30682
     host: ""

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

@@ -24,25 +24,25 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"chatcmpl-DTBV0n6tjwbhP4dljyR8Beo5fTKL6","object":"chat.completion.chunk","created":1775848086,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"EX0ikWZWRqPJPo"}
+      data: {"id":"chatcmpl-DUu8lVyNkTTXsfkIjl5sXmDORr187","object":"chat.completion.chunk","created":1776258015,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"8U8nsmGrF8Fv1d"}
 
-      data: {"id":"chatcmpl-DTBV0n6tjwbhP4dljyR8Beo5fTKL6","object":"chat.completion.chunk","created":1775848086,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":"Creating"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"Cxwu1MJS"}
+      data: {"id":"chatcmpl-DUu8lVyNkTTXsfkIjl5sXmDORr187","object":"chat.completion.chunk","created":1776258015,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":"Create"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"FES1t3Wwo6"}
 
-      data: {"id":"chatcmpl-DTBV0n6tjwbhP4dljyR8Beo5fTKL6","object":"chat.completion.chunk","created":1775848086,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" config"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"huiyrtI7q"}
+      data: {"id":"chatcmpl-DUu8lVyNkTTXsfkIjl5sXmDORr187","object":"chat.completion.chunk","created":1776258015,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" config"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"u7eObrGnf"}
 
-      data: {"id":"chatcmpl-DTBV0n6tjwbhP4dljyR8Beo5fTKL6","object":"chat.completion.chunk","created":1775848086,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":".json"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"ZgjrpNOKfBl"}
+      data: {"id":"chatcmpl-DUu8lVyNkTTXsfkIjl5sXmDORr187","object":"chat.completion.chunk","created":1776258015,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":".json"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"EAC3vpR592v"}
 
-      data: {"id":"chatcmpl-DTBV0n6tjwbhP4dljyR8Beo5fTKL6","object":"chat.completion.chunk","created":1775848086,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"AVwdINmLUMR"}
+      data: {"id":"chatcmpl-DUu8lVyNkTTXsfkIjl5sXmDORr187","object":"chat.completion.chunk","created":1776258015,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" with"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rOIAeBXA7R5"}
 
-      data: {"id":"chatcmpl-DTBV0n6tjwbhP4dljyR8Beo5fTKL6","object":"chat.completion.chunk","created":1775848086,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Sample"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"4LU0Xo82N"}
+      data: {"id":"chatcmpl-DUu8lVyNkTTXsfkIjl5sXmDORr187","object":"chat.completion.chunk","created":1776258015,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" test"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"gmnjJ1S0yuP"}
 
-      data: {"id":"chatcmpl-DTBV0n6tjwbhP4dljyR8Beo5fTKL6","object":"chat.completion.chunk","created":1775848086,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" JSON"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"V8O3P8dog8l"}
+      data: {"id":"chatcmpl-DUu8lVyNkTTXsfkIjl5sXmDORr187","object":"chat.completion.chunk","created":1776258015,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" version"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"jHPoBFcS"}
 
-      data: {"id":"chatcmpl-DTBV0n6tjwbhP4dljyR8Beo5fTKL6","object":"chat.completion.chunk","created":1775848086,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{"content":" Content"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"rPBmCUGm"}
+      data: {"id":"chatcmpl-DUu8lVyNkTTXsfkIjl5sXmDORr187","object":"chat.completion.chunk","created":1776258015,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{"content":" set"},"logprobs":null,"finish_reason":null}],"usage":null,"obfuscation":"RZw1hvk9C6ty"}
 
-      data: {"id":"chatcmpl-DTBV0n6tjwbhP4dljyR8Beo5fTKL6","object":"chat.completion.chunk","created":1775848086,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"b31EDRCL5b"}
+      data: {"id":"chatcmpl-DUu8lVyNkTTXsfkIjl5sXmDORr187","object":"chat.completion.chunk","created":1776258015,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}],"usage":null,"obfuscation":"CEG2uvyf8b"}
 
-      data: {"id":"chatcmpl-DTBV0n6tjwbhP4dljyR8Beo5fTKL6","object":"chat.completion.chunk","created":1775848086,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_9860921a69","choices":[],"usage":{"prompt_tokens":169,"completion_tokens":7,"total_tokens":176,"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":"dUflUOLLQtoMQw"}
+      data: {"id":"chatcmpl-DUu8lVyNkTTXsfkIjl5sXmDORr187","object":"chat.completion.chunk","created":1776258015,"model":"gpt-4o-2024-08-06","service_tier":"default","system_fingerprint":"fp_d08c293973","choices":[],"usage":{"prompt_tokens":169,"completion_tokens":7,"total_tokens":176,"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":"Wrdx8Q5Hl3ci7s"}
 
       data: [DONE]
 
@@ -51,15 +51,15 @@ interactions:
       - text/event-stream; charset=utf-8
     status: 200 OK
     code: 200
-    duration: 541.715708ms
+    duration: 575.75125ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30870
+    content_length: 30719
     host: ""

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

@@ -26,25 +26,21 @@ interactions:
     body: |+
       : OPENROUTER PROCESSING
 
-      data: {"id":"gen-1775848133-vVvlZfNWdhFhpeO7z5Sl","object":"chat.completion.chunk","created":1775848133,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":"Create","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
-
-      data: {"id":"gen-1775848133-vVvlZfNWdhFhpeO7z5Sl","object":"chat.completion.chunk","created":1775848133,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" test","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
-
-      data: {"id":"gen-1775848133-vVvlZfNWdhFhpeO7z5Sl","object":"chat.completion.chunk","created":1775848133,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":".txt","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      : OPENROUTER PROCESSING
 
-      data: {"id":"gen-1775848133-vVvlZfNWdhFhpeO7z5Sl","object":"chat.completion.chunk","created":1775848133,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" with","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258422-gEiJdRzuFc7MzOlqcEsC","object":"chat.completion.chunk","created":1776258422,"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-1775848133-vVvlZfNWdhFhpeO7z5Sl","object":"chat.completion.chunk","created":1775848133,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" hello","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258422-gEiJdRzuFc7MzOlqcEsC","object":"chat.completion.chunk","created":1776258422,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" test","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848133-vVvlZfNWdhFhpeO7z5Sl","object":"chat.completion.chunk","created":1775848133,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" bash","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258422-gEiJdRzuFc7MzOlqcEsC","object":"chat.completion.chunk","created":1776258422,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":".txt with hello","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848133-vVvlZfNWdhFhpeO7z5Sl","object":"chat.completion.chunk","created":1775848133,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" using","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258422-gEiJdRzuFc7MzOlqcEsC","object":"chat.completion.chunk","created":1776258422,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" bash using","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848133-vVvlZfNWdhFhpeO7z5Sl","object":"chat.completion.chunk","created":1775848133,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" bash","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258422-gEiJdRzuFc7MzOlqcEsC","object":"chat.completion.chunk","created":1776258422,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" bash","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848133-vVvlZfNWdhFhpeO7z5Sl","object":"chat.completion.chunk","created":1775848133,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
+      data: {"id":"gen-1776258422-gEiJdRzuFc7MzOlqcEsC","object":"chat.completion.chunk","created":1776258422,"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-1775848133-vVvlZfNWdhFhpeO7z5Sl","object":"chat.completion.chunk","created":1775848133,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":163,"completion_tokens":9,"total_tokens":172,"cost":0.0000262,"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.0000262,"upstream_inference_prompt_cost":0.0000163,"upstream_inference_completions_cost":0.0000099},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258422-gEiJdRzuFc7MzOlqcEsC","object":"chat.completion.chunk","created":1776258422,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":167,"completion_tokens":8,"total_tokens":175,"cost":0.0000225225,"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.00003465,"upstream_inference_prompt_cost":0.00002505,"upstream_inference_completions_cost":0.0000096},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -53,15 +49,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 842.086375ms
+    duration: 2.484926s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31003
+    content_length: 30852
     host: ""

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

@@ -26,19 +26,33 @@ interactions:
     body: |+
       : OPENROUTER PROCESSING
 
-      data: {"id":"gen-1775848142-yji54RTp8WmHXnz9zjAZ","object":"chat.completion.chunk","created":1775848142,"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}]}
+      : OPENROUTER PROCESSING
+
+      : OPENROUTER PROCESSING
+
+      data: {"id":"gen-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"Download","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" example","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848142-yji54RTp8WmHXnz9zjAZ","object":"chat.completion.chunk","created":1775848142,"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-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":".txt","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848142-yji54RTp8WmHXnz9zjAZ","object":"chat.completion.chunk","created":1775848142,"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-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" from","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848142-yji54RTp8WmHXnz9zjAZ","object":"chat.completion.chunk","created":1775848142,"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-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" example","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848142-yji54RTp8WmHXnz9zjAZ","object":"chat.completion.chunk","created":1775848142,"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-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"-files","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848142-yji54RTp8WmHXnz9zjAZ","object":"chat.completion.chunk","created":1775848142,"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-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":".online","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848142-yji54RTp8WmHXnz9zjAZ","object":"chat.completion.chunk","created":1775848142,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":170,"completion_tokens":10,"total_tokens":180,"cost":0.000024375,"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.0000375,"upstream_inference_prompt_cost":0.0000255,"upstream_inference_completions_cost":0.000012},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"-","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"convert","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":".com","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
+
+      data: {"id":"gen-1776258083-34CApIFOELFlfXiEavBa","object":"chat.completion.chunk","created":1776258083,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":166,"completion_tokens":11,"total_tokens":177,"cost":0.0000414,"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.0000414,"upstream_inference_prompt_cost":0.0000249,"upstream_inference_completions_cost":0.0000165},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -47,15 +61,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 827.37675ms
+    duration: 1.67017125s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31028
+    content_length: 30877
     host: ""

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

@@ -24,17 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1775848152-c06ZG7R2WQwamZxuORB6","object":"chat.completion.chunk","created":1775848152,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"Check","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      : OPENROUTER PROCESSING
+
+      data: {"id":"gen-1776258090-Iz0T3rmv80ztgYAqt4UB","object":"chat.completion.chunk","created":1776258090,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"Check","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848152-c06ZG7R2WQwamZxuORB6","object":"chat.completion.chunk","created":1775848152,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":" if example","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258090-Iz0T3rmv80ztgYAqt4UB","object":"chat.completion.chunk","created":1776258090,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" if example","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848152-c06ZG7R2WQwamZxuORB6","object":"chat.completion.chunk","created":1775848152,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":".html contains John","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258090-Iz0T3rmv80ztgYAqt4UB","object":"chat.completion.chunk","created":1776258090,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":".html contains John","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848152-c06ZG7R2WQwamZxuORB6","object":"chat.completion.chunk","created":1775848152,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":" Doe","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258090-Iz0T3rmv80ztgYAqt4UB","object":"chat.completion.chunk","created":1776258090,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" Doe","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848152-c06ZG7R2WQwamZxuORB6","object":"chat.completion.chunk","created":1775848152,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
+      data: {"id":"gen-1776258090-Iz0T3rmv80ztgYAqt4UB","object":"chat.completion.chunk","created":1776258090,"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-1775848152-c06ZG7R2WQwamZxuORB6","object":"chat.completion.chunk","created":1775848152,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":171,"completion_tokens":8,"total_tokens":179,"cost":0.00003525,"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.00003525,"upstream_inference_prompt_cost":0.00002565,"upstream_inference_completions_cost":0.0000096},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258090-Iz0T3rmv80ztgYAqt4UB","object":"chat.completion.chunk","created":1776258090,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":175,"completion_tokens":7,"total_tokens":182,"cost":0.0000225225,"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.00003465,"upstream_inference_prompt_cost":0.00002625,"upstream_inference_completions_cost":0.0000084},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -43,15 +45,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 624.011292ms
+    duration: 674.561292ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31046
+    content_length: 30895
     host: ""

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

@@ -26,19 +26,17 @@ interactions:
     body: |+
       : OPENROUTER PROCESSING
 
-      : OPENROUTER PROCESSING
-
-      data: {"id":"gen-1775848160-EXZu21IQsNfb2DPfrmS7","object":"chat.completion.chunk","created":1775848160,"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-1776258097-qFYkYYtoO3xmTURMwe2b","object":"chat.completion.chunk","created":1776258097,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"Find","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848160-EXZu21IQsNfb2DPfrmS7","object":"chat.completion.chunk","created":1775848160,"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-1776258097-qFYkYYtoO3xmTURMwe2b","object":"chat.completion.chunk","created":1776258097,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":" all .go files","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848160-EXZu21IQsNfb2DPfrmS7","object":"chat.completion.chunk","created":1775848160,"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-1776258097-qFYkYYtoO3xmTURMwe2b","object":"chat.completion.chunk","created":1776258097,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":" in current directory using","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848160-EXZu21IQsNfb2DPfrmS7","object":"chat.completion.chunk","created":1775848160,"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-1776258097-qFYkYYtoO3xmTURMwe2b","object":"chat.completion.chunk","created":1776258097,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":" glob","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848160-EXZu21IQsNfb2DPfrmS7","object":"chat.completion.chunk","created":1775848160,"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-1776258097-qFYkYYtoO3xmTURMwe2b","object":"chat.completion.chunk","created":1776258097,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1775848160-EXZu21IQsNfb2DPfrmS7","object":"chat.completion.chunk","created":1775848160,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":159,"completion_tokens":10,"total_tokens":169,"cost":0.00003885,"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.00003885,"upstream_inference_prompt_cost":0.00002385,"upstream_inference_completions_cost":0.000015},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258097-qFYkYYtoO3xmTURMwe2b","object":"chat.completion.chunk","created":1776258097,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":155,"completion_tokens":11,"total_tokens":166,"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.00002325,"upstream_inference_completions_cost":0.0000132},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -47,15 +45,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.024881084s
+    duration: 883.711667ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30964
+    content_length: 30813
     host: ""

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

@@ -26,17 +26,21 @@ interactions:
     body: |+
       : OPENROUTER PROCESSING
 
-      data: {"id":"gen-1775848165-gwf5ZdJEWzvjfzj9U74D","object":"chat.completion.chunk","created":1775848165,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"Search","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      : OPENROUTER PROCESSING
+
+      : OPENROUTER PROCESSING
+
+      data: {"id":"gen-1776258101-2DN1WhDUvsStYUSP0aQr","object":"chat.completion.chunk","created":1776258101,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"Search","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848165-gwf5ZdJEWzvjfzj9U74D","object":"chat.completion.chunk","created":1775848165,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" for '","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258101-2DN1WhDUvsStYUSP0aQr","object":"chat.completion.chunk","created":1776258101,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" for '","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848165-gwf5ZdJEWzvjfzj9U74D","object":"chat.completion.chunk","created":1775848165,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"package' in Go","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258101-2DN1WhDUvsStYUSP0aQr","object":"chat.completion.chunk","created":1776258101,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"package' in Go","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848165-gwf5ZdJEWzvjfzj9U74D","object":"chat.completion.chunk","created":1775848165,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" files using grep","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258101-2DN1WhDUvsStYUSP0aQr","object":"chat.completion.chunk","created":1776258101,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" files using grep","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848165-gwf5ZdJEWzvjfzj9U74D","object":"chat.completion.chunk","created":1775848165,"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-1776258101-2DN1WhDUvsStYUSP0aQr","object":"chat.completion.chunk","created":1776258101,"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-1775848165-gwf5ZdJEWzvjfzj9U74D","object":"chat.completion.chunk","created":1775848165,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":160,"completion_tokens":10,"total_tokens":170,"cost":0.0000234,"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.000036,"upstream_inference_prompt_cost":0.000024,"upstream_inference_completions_cost":0.000012},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258101-2DN1WhDUvsStYUSP0aQr","object":"chat.completion.chunk","created":1776258101,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":160,"completion_tokens":10,"total_tokens":170,"cost":0.0000234,"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.000036,"upstream_inference_prompt_cost":0.000024,"upstream_inference_completions_cost":0.000012},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -45,15 +49,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 841.949208ms
+    duration: 1.59618s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30962
+    content_length: 30811
     host: ""

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

@@ -24,17 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1775848171-AilTnncZvKu3pyyDGKQh","object":"chat.completion.chunk","created":1775848171,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"List","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      : OPENROUTER PROCESSING
+
+      : OPENROUTER PROCESSING
 
-      data: {"id":"gen-1775848171-AilTnncZvKu3pyyDGKQh","object":"chat.completion.chunk","created":1775848171,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" files in current directory","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258105-JakSMN7G85CTKecg6k5G","object":"chat.completion.chunk","created":1776258105,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"List","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848171-AilTnncZvKu3pyyDGKQh","object":"chat.completion.chunk","created":1775848171,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" with","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258105-JakSMN7G85CTKecg6k5G","object":"chat.completion.chunk","created":1776258105,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" files in current directory","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848171-AilTnncZvKu3pyyDGKQh","object":"chat.completion.chunk","created":1775848171,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" ls","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258105-JakSMN7G85CTKecg6k5G","object":"chat.completion.chunk","created":1776258105,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" using ls","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848171-AilTnncZvKu3pyyDGKQh","object":"chat.completion.chunk","created":1775848171,"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-1776258105-JakSMN7G85CTKecg6k5G","object":"chat.completion.chunk","created":1776258105,"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-1775848171-AilTnncZvKu3pyyDGKQh","object":"chat.completion.chunk","created":1775848171,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":153,"completion_tokens":8,"total_tokens":161,"cost":0.00002257,"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.00002257,"upstream_inference_prompt_cost":0.00001377,"upstream_inference_completions_cost":0.0000088},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258105-JakSMN7G85CTKecg6k5G","object":"chat.completion.chunk","created":1776258105,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":153,"completion_tokens":8,"total_tokens":161,"cost":0.00002257,"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.00002257,"upstream_inference_prompt_cost":0.00001377,"upstream_inference_completions_cost":0.0000088},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -43,15 +45,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 420.668167ms
+    duration: 874.434167ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30956
+    content_length: 30805
     host: ""

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

@@ -28,19 +28,35 @@ interactions:
 
       : OPENROUTER PROCESSING
 
-      data: {"id":"gen-1775848177-Y6umktjag466F1KjsWzb","object":"chat.completion.chunk","created":1775848177,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Use","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"Use","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848177-Y6umktjag466F1KjsWzb","object":"chat.completion.chunk","created":1775848177,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" multiedit to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" mult","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848177-Y6umktjag466F1KjsWzb","object":"chat.completion.chunk","created":1775848177,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" update","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"ied","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848177-Y6umktjag466F1KjsWzb","object":"chat.completion.chunk","created":1775848177,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" greeting and add","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"it","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848177-Y6umktjag466F1KjsWzb","object":"chat.completion.chunk","created":1775848177,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" comment","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848177-Y6umktjag466F1KjsWzb","object":"chat.completion.chunk","created":1775848177,"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-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" update","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848177-Y6umktjag466F1KjsWzb","object":"chat.completion.chunk","created":1775848177,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":176,"completion_tokens":11,"total_tokens":187,"cost":0.00002794,"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.00002794,"upstream_inference_prompt_cost":0.00001584,"upstream_inference_completions_cost":0.0000121},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" greeting","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" add","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" comment","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":" main","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":".go","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
+
+      data: {"id":"gen-1776258111-goltDQrdyo9oIvehdopW","object":"chat.completion.chunk","created":1776258111,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"AtlasCloud","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":176,"completion_tokens":14,"total_tokens":190,"cost":0.0000474,"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.0000474,"upstream_inference_prompt_cost":0.0000264,"upstream_inference_completions_cost":0.000021},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -49,15 +65,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 784.322667ms
+    duration: 1.152553833s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31042
+    content_length: 30891
     host: ""

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

@@ -26,23 +26,37 @@ interactions:
     body: |+
       : OPENROUTER PROCESSING
 
-      : OPENROUTER PROCESSING
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":"Run","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" glob","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" ls","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848229-REjGu5cgiYpV7zhESWI8","object":"chat.completion.chunk","created":1775848229,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Run","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" parallel","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848229-REjGu5cgiYpV7zhESWI8","object":"chat.completion.chunk","created":1775848229,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" glob and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848229-REjGu5cgiYpV7zhESWI8","object":"chat.completion.chunk","created":1775848229,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" ls in","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" find","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848229-REjGu5cgiYpV7zhESWI8","object":"chat.completion.chunk","created":1775848229,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" parallel to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" .","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848229-REjGu5cgiYpV7zhESWI8","object":"chat.completion.chunk","created":1775848229,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" find .go files","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":"go","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848229-REjGu5cgiYpV7zhESWI8","object":"chat.completion.chunk","created":1775848229,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" and list directory","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" files","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848229-REjGu5cgiYpV7zhESWI8","object":"chat.completion.chunk","created":1775848229,"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-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" and","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848229-REjGu5cgiYpV7zhESWI8","object":"chat.completion.chunk","created":1775848229,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":172,"completion_tokens":15,"total_tokens":187,"cost":0.00003198,"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.00003198,"upstream_inference_prompt_cost":0.00001548,"upstream_inference_completions_cost":0.0000165},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" list","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" directory","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
+
+      data: {"id":"gen-1776258151-AsOfoCF0UigLUkEqX8dE","object":"chat.completion.chunk","created":1776258151,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":172,"completion_tokens":15,"total_tokens":187,"cost":0.0000337,"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.0000337,"upstream_inference_prompt_cost":0.0000172,"upstream_inference_completions_cost":0.0000165},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -51,15 +65,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 802.121416ms
+    duration: 892.2825ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31053
+    content_length: 30902
     host: ""

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

@@ -24,13 +24,25 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"gen-1775848108-3Wrv1w0bSoRkjgrPmcYd","object":"chat.completion.chunk","created":1775848108,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"Read","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      : OPENROUTER PROCESSING
+
+      : OPENROUTER PROCESSING
+
+      : OPENROUTER PROCESSING
+
+      : OPENROUTER PROCESSING
+
+      : OPENROUTER PROCESSING
+
+      : OPENROUTER PROCESSING
+
+      data: {"id":"gen-1776258048-mA5p6M64yZpcAEtaPS4m","object":"chat.completion.chunk","created":1776258048,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"Read","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848108-3Wrv1w0bSoRkjgrPmcYd","object":"chat.completion.chunk","created":1775848108,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":" the go mod","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258048-mA5p6M64yZpcAEtaPS4m","object":"chat.completion.chunk","created":1776258048,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" the go mod","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848108-3Wrv1w0bSoRkjgrPmcYd","object":"chat.completion.chunk","created":1775848108,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
+      data: {"id":"gen-1776258048-mA5p6M64yZpcAEtaPS4m","object":"chat.completion.chunk","created":1776258048,"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-1775848108-3Wrv1w0bSoRkjgrPmcYd","object":"chat.completion.chunk","created":1775848108,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":147,"completion_tokens":5,"total_tokens":152,"cost":0.00002805,"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.00002805,"upstream_inference_prompt_cost":0.00002205,"upstream_inference_completions_cost":0.000006},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258048-mA5p6M64yZpcAEtaPS4m","object":"chat.completion.chunk","created":1776258048,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":151,"completion_tokens":4,"total_tokens":155,"cost":0.0000178425,"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.00002745,"upstream_inference_prompt_cost":0.00002265,"upstream_inference_completions_cost":0.0000048},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -39,15 +51,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 616.527791ms
+    duration: 2.776948s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30926
+    content_length: 30775
     host: ""

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

@@ -26,11 +26,13 @@ interactions:
     body: |+
       : OPENROUTER PROCESSING
 
-      data: {"id":"gen-1775848106-BMdw8CLic23r38YJvppB","object":"chat.completion.chunk","created":1775848106,"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}]}
+      : OPENROUTER PROCESSING
+
+      data: {"id":"gen-1776258045-M14anX94IZdtXfmbrZ6w","object":"chat.completion.chunk","created":1776258045,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"Hello","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848106-BMdw8CLic23r38YJvppB","object":"chat.completion.chunk","created":1775848106,"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-1776258045-M14anX94IZdtXfmbrZ6w","object":"chat.completion.chunk","created":1776258045,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
 
-      data: {"id":"gen-1775848106-BMdw8CLic23r38YJvppB","object":"chat.completion.chunk","created":1775848106,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":148,"completion_tokens":1,"total_tokens":149,"cost":0.00001521,"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.0000234,"upstream_inference_prompt_cost":0.0000222,"upstream_inference_completions_cost":0.0000012},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258045-M14anX94IZdtXfmbrZ6w","object":"chat.completion.chunk","created":1776258045,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Google","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":144,"completion_tokens":2,"total_tokens":146,"cost":0.000024,"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.000024,"upstream_inference_prompt_cost":0.0000216,"upstream_inference_completions_cost":0.0000024},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -39,15 +41,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.755025916s
+    duration: 2.353106417s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30916
+    content_length: 30765
     host: ""

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

@@ -26,19 +26,17 @@ interactions:
     body: |+
       : OPENROUTER PROCESSING
 
-      : OPENROUTER PROCESSING
-
-      data: {"id":"gen-1775848201-JsSCFbc2Ugp9h31uvdgd","object":"chat.completion.chunk","created":1775848201,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"Search","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258132-DCbWlrI5SsLNlrlQyV8Z","object":"chat.completion.chunk","created":1776258132,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"Search","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848201-JsSCFbc2Ugp9h31uvdgd","object":"chat.completion.chunk","created":1775848201,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" for func","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258132-DCbWlrI5SsLNlrlQyV8Z","object":"chat.completion.chunk","created":1776258132,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" for func","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848201-JsSCFbc2Ugp9h31uvdgd","object":"chat.completion.chunk","created":1775848201,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" main in Go repositories","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258132-DCbWlrI5SsLNlrlQyV8Z","object":"chat.completion.chunk","created":1776258132,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" main in Go repositories","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848201-JsSCFbc2Ugp9h31uvdgd","object":"chat.completion.chunk","created":1775848201,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" using Sourcegraph","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258132-DCbWlrI5SsLNlrlQyV8Z","object":"chat.completion.chunk","created":1776258132,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" using Sourcegraph","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848201-JsSCFbc2Ugp9h31uvdgd","object":"chat.completion.chunk","created":1775848201,"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-1776258132-DCbWlrI5SsLNlrlQyV8Z","object":"chat.completion.chunk","created":1776258132,"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-1775848201-JsSCFbc2Ugp9h31uvdgd","object":"chat.completion.chunk","created":1775848201,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":160,"completion_tokens":10,"total_tokens":170,"cost":0.0000234,"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.000036,"upstream_inference_prompt_cost":0.000024,"upstream_inference_completions_cost":0.000012},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258132-DCbWlrI5SsLNlrlQyV8Z","object":"chat.completion.chunk","created":1776258132,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":160,"completion_tokens":10,"total_tokens":170,"cost":0.0000234,"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.000036,"upstream_inference_prompt_cost":0.000024,"upstream_inference_completions_cost":0.000012},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -47,15 +45,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 1.073539541s
+    duration: 572.347583ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30976
+    content_length: 30825
     host: ""

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

@@ -26,17 +26,25 @@ interactions:
     body: |+
       : OPENROUTER PROCESSING
 
-      data: {"id":"gen-1775848114-Z2x1Sp6hvWVcLByQ8VID","object":"chat.completion.chunk","created":1775848114,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"Update","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258057-xbejiwF312OZqf1rmqEG","object":"chat.completion.chunk","created":1776258057,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":"Update","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848114-Z2x1Sp6hvWVcLByQ8VID","object":"chat.completion.chunk","created":1775848114,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" main.go to print","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258057-xbejiwF312OZqf1rmqEG","object":"chat.completion.chunk","created":1776258057,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" main","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848114-Z2x1Sp6hvWVcLByQ8VID","object":"chat.completion.chunk","created":1775848114,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" hello","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258057-xbejiwF312OZqf1rmqEG","object":"chat.completion.chunk","created":1776258057,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":".go","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848114-Z2x1Sp6hvWVcLByQ8VID","object":"chat.completion.chunk","created":1775848114,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":" from crush","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258057-xbejiwF312OZqf1rmqEG","object":"chat.completion.chunk","created":1776258057,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" to","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848114-Z2x1Sp6hvWVcLByQ8VID","object":"chat.completion.chunk","created":1775848114,"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-1776258057-xbejiwF312OZqf1rmqEG","object":"chat.completion.chunk","created":1776258057,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" print","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848114-Z2x1Sp6hvWVcLByQ8VID","object":"chat.completion.chunk","created":1775848114,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"DeepInfra","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":157,"completion_tokens":9,"total_tokens":166,"cost":0.00002403,"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.00002403,"upstream_inference_prompt_cost":0.00001413,"upstream_inference_completions_cost":0.0000099},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258057-xbejiwF312OZqf1rmqEG","object":"chat.completion.chunk","created":1776258057,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" hello","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258057-xbejiwF312OZqf1rmqEG","object":"chat.completion.chunk","created":1776258057,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" from","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258057-xbejiwF312OZqf1rmqEG","object":"chat.completion.chunk","created":1776258057,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":" crush","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+
+      data: {"id":"gen-1776258057-xbejiwF312OZqf1rmqEG","object":"chat.completion.chunk","created":1776258057,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}]}
+
+      data: {"id":"gen-1776258057-xbejiwF312OZqf1rmqEG","object":"chat.completion.chunk","created":1776258057,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Parasail","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":157,"completion_tokens":9,"total_tokens":166,"cost":0.0000256,"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.0000256,"upstream_inference_prompt_cost":0.0000157,"upstream_inference_completions_cost":0.0000099},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -45,15 +53,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 856.267708ms
+    duration: 875.837708ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30982
+    content_length: 30831
     host: ""

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

@@ -26,15 +26,15 @@ interactions:
     body: |+
       : OPENROUTER PROCESSING
 
-      data: {"id":"gen-1775848221-dKPjp0bQ9hCZ0qlk90M5","object":"chat.completion.chunk","created":1775848221,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[{"index":0,"delta":{"content":"Create","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258146-WjvXwiaFi9NttWNKetR4","object":"chat.completion.chunk","created":1776258146,"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-1775848221-dKPjp0bQ9hCZ0qlk90M5","object":"chat.completion.chunk","created":1775848221,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[{"index":0,"delta":{"content":" config.json with test","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258146-WjvXwiaFi9NttWNKetR4","object":"chat.completion.chunk","created":1776258146,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" config.json with test","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848221-dKPjp0bQ9hCZ0qlk90M5","object":"chat.completion.chunk","created":1775848221,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[{"index":0,"delta":{"content":" data","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
+      data: {"id":"gen-1776258146-WjvXwiaFi9NttWNKetR4","object":"chat.completion.chunk","created":1776258146,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":" data","role":"assistant"},"finish_reason":null,"native_finish_reason":null}]}
 
-      data: {"id":"gen-1775848221-dKPjp0bQ9hCZ0qlk90M5","object":"chat.completion.chunk","created":1775848221,"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-1776258146-WjvXwiaFi9NttWNKetR4","object":"chat.completion.chunk","created":1776258146,"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-1775848221-dKPjp0bQ9hCZ0qlk90M5","object":"chat.completion.chunk","created":1775848221,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Novita","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":175,"completion_tokens":6,"total_tokens":181,"cost":0.00003525,"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.00003525,"upstream_inference_prompt_cost":0.00002625,"upstream_inference_completions_cost":0.000009},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
+      data: {"id":"gen-1776258146-WjvXwiaFi9NttWNKetR4","object":"chat.completion.chunk","created":1776258146,"model":"qwen/qwen3-next-80b-a3b-instruct-2509","provider":"Alibaba","choices":[{"index":0,"delta":{"content":"","role":"assistant"},"finish_reason":"stop","native_finish_reason":"stop"}],"usage":{"prompt_tokens":175,"completion_tokens":6,"total_tokens":181,"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.00002625,"upstream_inference_completions_cost":0.0000072},"completion_tokens_details":{"reasoning_tokens":0,"image_tokens":0,"audio_tokens":0}}}
 
       data: [DONE]
 
@@ -43,15 +43,15 @@ interactions:
       - text/event-stream
     status: 200 OK
     code: 200
-    duration: 957.28575ms
+    duration: 656.330833ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 31019
+    content_length: 30868
     host: ""

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

@@ -24,19 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026041103110119d5e5e9f55a4783","created":1775848261,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260415210258f0eca00bc5504951","created":1776258178,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"2026041103110119d5e5e9f55a4783","created":1775848261,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Create"}}]}
+      data: {"id":"20260415210258f0eca00bc5504951","created":1776258178,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Create"}}]}
 
-      data: {"id":"2026041103110119d5e5e9f55a4783","created":1775848261,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
+      data: {"id":"20260415210258f0eca00bc5504951","created":1776258178,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
 
-      data: {"id":"2026041103110119d5e5e9f55a4783","created":1775848261,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
+      data: {"id":"20260415210258f0eca00bc5504951","created":1776258178,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
 
-      data: {"id":"2026041103110119d5e5e9f55a4783","created":1775848261,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" bash"}}]}
+      data: {"id":"20260415210258f0eca00bc5504951","created":1776258178,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" bash"}}]}
 
-      data: {"id":"2026041103110119d5e5e9f55a4783","created":1775848261,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
+      data: {"id":"20260415210258f0eca00bc5504951","created":1776258178,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
 
-      data: {"id":"2026041103110119d5e5e9f55a4783","created":1775848261,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":156,"completion_tokens":9,"total_tokens":165,"prompt_tokens_details":{"cached_tokens":130}}}
+      data: {"id":"20260415210258f0eca00bc5504951","created":1776258178,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":156,"completion_tokens":9,"total_tokens":165,"prompt_tokens_details":{"cached_tokens":130}}}
 
       data: [DONE]
 
@@ -45,15 +45,15 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 561.313167ms
+    duration: 660.719708ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30843
+    content_length: 30692
     host: ""

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

@@ -6,9 +6,9 @@ interactions:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 862
+    content_length: 30717
     host: ""
-    body: '{"messages":[{"content":"You will generate a short title based on the first message a user begins a conversation with.\n\n<rules>\n- Keep the title in the same language that the user wrote their message in.\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</rules>\n\n /no_think","role":"system"},{"content":"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 <think>\n\n</think>","role":"user"}],"model":"glm-4.5-air","max_tokens":40,"stream_options":{"include_usage":true},"stream":true}'

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

@@ -6,58 +6,9 @@ interactions:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 883
-    host: ""
-    body: '{"messages":[{"content":"You will generate a short title based on the first message a user begins a conversation with.\n\n<rules>\n- Keep the title in the same language that the user wrote their message in.\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</rules>\n\n /no_think","role":"system"},{"content":"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 <think>\n\n</think>","role":"user"}],"model":"glm-4.5-air","max_tokens":40,"stream_options":{"include_usage":true},"stream":true}'
-    headers:
-      Accept:
-      - application/json
-      Content-Type:
-      - application/json
-      User-Agent:
-      - Charm-Crush/devel (https://charm.land/crush)
-    url: https://api.z.ai/api/coding/paas/v4/chat/completions
-    method: POST
-  response:
-    proto: HTTP/2.0
-    proto_major: 2
-    proto_minor: 0
-    content_length: -1
-    body: |+
-      data: {"id":"2026041103111447b6f2618be349f4","created":1775848274,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
-
-      data: {"id":"2026041103111447b6f2618be349f4","created":1775848274,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Check"}}]}
-
-      data: {"id":"2026041103111447b6f2618be349f4","created":1775848274,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]}
-
-      data: {"id":"2026041103111447b6f2618be349f4","created":1775848274,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" John"}}]}
-
-      data: {"id":"2026041103111447b6f2618be349f4","created":1775848274,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Doe"}}]}
-
-      data: {"id":"2026041103111447b6f2618be349f4","created":1775848274,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]}
-
-      data: {"id":"2026041103111447b6f2618be349f4","created":1775848274,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" HTML"}}]}
-
-      data: {"id":"2026041103111447b6f2618be349f4","created":1775848274,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
-
-      data: {"id":"2026041103111447b6f2618be349f4","created":1775848274,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":164,"completion_tokens":11,"total_tokens":175,"prompt_tokens_details":{"cached_tokens":130}}}
-
-      data: [DONE]
-
-    headers:
-      Content-Type:
-      - text/event-stream;charset=UTF-8
-    status: 200 OK
-    code: 200
-    duration: 558.774375ms
-- id: 1
-  request:
-    proto: HTTP/1.1
-    proto_major: 1
-    proto_minor: 1
-    content_length: 30886
+    content_length: 30735
     host: ""

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

@@ -24,19 +24,19 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026041103112049ecef9602e0472b","created":1775848280,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260415210323904ea969925e4e79","created":1776258203,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"2026041103112049ecef9602e0472b","created":1775848280,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Find"}}]}
+      data: {"id":"20260415210323904ea969925e4e79","created":1776258203,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Find"}}]}
 
-      data: {"id":"2026041103112049ecef9602e0472b","created":1775848280,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
+      data: {"id":"20260415210323904ea969925e4e79","created":1776258203,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
 
-      data: {"id":"2026041103112049ecef9602e0472b","created":1775848280,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Files"}}]}
+      data: {"id":"20260415210323904ea969925e4e79","created":1776258203,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" files"}}]}
 
-      data: {"id":"2026041103112049ecef9602e0472b","created":1775848280,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
+      data: {"id":"20260415210323904ea969925e4e79","created":1776258203,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
 
-      data: {"id":"2026041103112049ecef9602e0472b","created":1775848280,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Glob"}}]}
+      data: {"id":"20260415210323904ea969925e4e79","created":1776258203,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" glob"}}]}
 
-      data: {"id":"2026041103112049ecef9602e0472b","created":1775848280,"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":131}}}
+      data: {"id":"20260415210323904ea969925e4e79","created":1776258203,"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":130}}}
 
       data: [DONE]
 
@@ -45,15 +45,15 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 570.766917ms
+    duration: 782.422041ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30804
+    content_length: 30653
     host: ""

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

@@ -24,23 +24,27 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"202604110311232b54345db0b44f5a","created":1775848283,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"202604110311232b54345db0b44f5a","created":1775848283,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Search"}}]}
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Search"}}]}
 
-      data: {"id":"202604110311232b54345db0b44f5a","created":1775848283,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" '"}}]}
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" '"}}]}
 
-      data: {"id":"202604110311232b54345db0b44f5a","created":1775848283,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"package"}}]}
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"package"}}]}
 
-      data: {"id":"202604110311232b54345db0b44f5a","created":1775848283,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"'"}}]}
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"'"}}]}
 
-      data: {"id":"202604110311232b54345db0b44f5a","created":1775848283,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]}
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" in"}}]}
 
-      data: {"id":"202604110311232b54345db0b44f5a","created":1775848283,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
 
-      data: {"id":"202604110311232b54345db0b44f5a","created":1775848283,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" files"}}]}
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" files"}}]}
 
-      data: {"id":"202604110311232b54345db0b44f5a","created":1775848283,"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":131}}}
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
+
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" grep"}}]}
+
+      data: {"id":"20260415210332d05b163091ee424f","created":1776258212,"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":13,"total_tokens":162,"prompt_tokens_details":{"cached_tokens":131}}}
 
       data: [DONE]
 
@@ -49,15 +53,15 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 630.303875ms
+    duration: 692.243375ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30802
+    content_length: 30651
     host: ""

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

@@ -6,9 +6,9 @@ interactions:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 796
+    content_length: 30645
     host: ""
-    body: '{"messages":[{"content":"You will generate a short title based on the first message a user begins a conversation with.\n\n<rules>\n- Keep the title in the same language that the user wrote their message in.\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</rules>\n\n /no_think","role":"system"},{"content":"Generate a concise title for the following content:\n\nuse ls to list the files in the current directory\n <think>\n\n</think>","role":"user"}],"model":"glm-4.5-air","max_tokens":40,"stream_options":{"include_usage":true},"stream":true}'

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

@@ -24,23 +24,25 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"202604110311317bc7ba741be145a0","created":1775848291,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"202604152103499ea9502e7e524c5d","created":1776258229,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"202604110311317bc7ba741be145a0","created":1775848291,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Mult"}}]}
+      data: {"id":"202604152103499ea9502e7e524c5d","created":1776258229,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Mult"}}]}
 
-      data: {"id":"202604110311317bc7ba741be145a0","created":1775848291,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"ied"}}]}
+      data: {"id":"202604152103499ea9502e7e524c5d","created":1776258229,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"ied"}}]}
 
-      data: {"id":"202604110311317bc7ba741be145a0","created":1775848291,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"it"}}]}
+      data: {"id":"202604152103499ea9502e7e524c5d","created":1776258229,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"it"}}]}
 
-      data: {"id":"202604110311317bc7ba741be145a0","created":1775848291,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":":"}}]}
+      data: {"id":"202604152103499ea9502e7e524c5d","created":1776258229,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":":"}}]}
 
-      data: {"id":"202604110311317bc7ba741be145a0","created":1775848291,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" G"}}]}
+      data: {"id":"202604152103499ea9502e7e524c5d","created":1776258229,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" G"}}]}
 
-      data: {"id":"202604110311317bc7ba741be145a0","created":1775848291,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"reeting"}}]}
+      data: {"id":"202604152103499ea9502e7e524c5d","created":1776258229,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"reeting"}}]}
 
-      data: {"id":"202604110311317bc7ba741be145a0","created":1775848291,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Change"}}]}
+      data: {"id":"202604152103499ea9502e7e524c5d","created":1776258229,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Code"}}]}
 
-      data: {"id":"202604110311317bc7ba741be145a0","created":1775848291,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":169,"completion_tokens":11,"total_tokens":180,"prompt_tokens_details":{"cached_tokens":131}}}
+      data: {"id":"202604152103499ea9502e7e524c5d","created":1776258229,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Modification"}}]}
+
+      data: {"id":"202604152103499ea9502e7e524c5d","created":1776258229,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":169,"completion_tokens":12,"total_tokens":181,"prompt_tokens_details":{"cached_tokens":131}}}
 
       data: [DONE]
 
@@ -49,15 +51,15 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 550.673917ms
+    duration: 849.242583ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30882
+    content_length: 30731
     host: ""

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

@@ -24,23 +24,21 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026041103115861920b9d636c4e17","created":1775848318,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"2026041521042468d4466b9b45454f","created":1776258264,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"2026041103115861920b9d636c4e17","created":1775848318,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Parallel"}}]}
+      data: {"id":"2026041521042468d4466b9b45454f","created":1776258264,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Find"}}]}
 
-      data: {"id":"2026041103115861920b9d636c4e17","created":1775848318,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" glob"}}]}
+      data: {"id":"2026041521042468d4466b9b45454f","created":1776258264,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]}
 
-      data: {"id":"2026041103115861920b9d636c4e17","created":1775848318,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" and"}}]}
+      data: {"id":"2026041521042468d4466b9b45454f","created":1776258264,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" list"}}]}
 
-      data: {"id":"2026041103115861920b9d636c4e17","created":1775848318,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" ls"}}]}
+      data: {"id":"2026041521042468d4466b9b45454f","created":1776258264,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
 
-      data: {"id":"2026041103115861920b9d636c4e17","created":1775848318,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]}
+      data: {"id":"2026041521042468d4466b9b45454f","created":1776258264,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" files"}}]}
 
-      data: {"id":"2026041103115861920b9d636c4e17","created":1775848318,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
+      data: {"id":"2026041521042468d4466b9b45454f","created":1776258264,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" concurrently"}}]}
 
-      data: {"id":"2026041103115861920b9d636c4e17","created":1775848318,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" files"}}]}
-
-      data: {"id":"2026041103115861920b9d636c4e17","created":1775848318,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":165,"completion_tokens":11,"total_tokens":176,"prompt_tokens_details":{"cached_tokens":138}}}
+      data: {"id":"2026041521042468d4466b9b45454f","created":1776258264,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":165,"completion_tokens":10,"total_tokens":175,"prompt_tokens_details":{"cached_tokens":131}}}
 
       data: [DONE]
 
@@ -49,15 +47,15 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 562.572458ms
+    duration: 671.357792ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30893
+    content_length: 30742
     host: ""

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

@@ -24,15 +24,15 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026041103104011fb4c996fa24f0e","created":1775848240,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"20260415210242aaced0dd2f274718","created":1776258162,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"2026041103104011fb4c996fa24f0e","created":1775848240,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Go"}}]}
+      data: {"id":"20260415210242aaced0dd2f274718","created":1776258162,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Understanding"}}]}
 
-      data: {"id":"2026041103104011fb4c996fa24f0e","created":1775848240,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Mod"}}]}
+      data: {"id":"20260415210242aaced0dd2f274718","created":1776258162,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
 
-      data: {"id":"2026041103104011fb4c996fa24f0e","created":1775848240,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Analysis"}}]}
+      data: {"id":"20260415210242aaced0dd2f274718","created":1776258162,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Module"}}]}
 
-      data: {"id":"2026041103104011fb4c996fa24f0e","created":1775848240,"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":7,"total_tokens":147,"prompt_tokens_details":{"cached_tokens":130}}}
+      data: {"id":"20260415210242aaced0dd2f274718","created":1776258162,"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":7,"total_tokens":147,"prompt_tokens_details":{"cached_tokens":130}}}
 
       data: [DONE]
 
@@ -41,15 +41,15 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 591.461209ms
+    duration: 770.922042ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30766
+    content_length: 30615
     host: ""

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

@@ -24,11 +24,11 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"202604110310385d74b2651033440e","created":1775848238,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"202604152102399ca97490d8064fea","created":1776258159,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"202604110310385d74b2651033440e","created":1775848238,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"}}]}
+      data: {"id":"202604152102399ca97490d8064fea","created":1776258159,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Hello"}}]}
 
-      data: {"id":"202604110310385d74b2651033440e","created":1775848238,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":137,"completion_tokens":5,"total_tokens":142,"prompt_tokens_details":{"cached_tokens":4}}}
+      data: {"id":"202604152102399ca97490d8064fea","created":1776258159,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":137,"completion_tokens":5,"total_tokens":142,"prompt_tokens_details":{"cached_tokens":130}}}
 
       data: [DONE]
 
@@ -37,15 +37,15 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 1.984886625s
+    duration: 1.940147958s
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30756
+    content_length: 30605
     host: ""

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

@@ -6,54 +6,9 @@ interactions:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 807
-    host: ""
-    body: '{"messages":[{"content":"You will generate a short title based on the first message a user begins a conversation with.\n\n<rules>\n- Keep the title in the same language that the user wrote their message in.\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</rules>\n\n /no_think","role":"system"},{"content":"Generate a concise title for the following content:\n\nuse sourcegraph to search for ''func main'' in Go repositories\n <think>\n\n</think>","role":"user"}],"model":"glm-4.5-air","max_tokens":40,"stream_options":{"include_usage":true},"stream":true}'
-    headers:
-      Accept:
-      - application/json
-      Content-Type:
-      - application/json
-      User-Agent:
-      - Charm-Crush/devel (https://charm.land/crush)
-    url: https://api.z.ai/api/coding/paas/v4/chat/completions
-    method: POST
-  response:
-    proto: HTTP/2.0
-    proto_major: 2
-    proto_minor: 0
-    content_length: -1
-    body: |+
-      data: {"id":"202604110311391dc483e004db438c","created":1775848299,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
-
-      data: {"id":"202604110311391dc483e004db438c","created":1775848299,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Search"}}]}
-
-      data: {"id":"202604110311391dc483e004db438c","created":1775848299,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" for"}}]}
-
-      data: {"id":"202604110311391dc483e004db438c","created":1775848299,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" Go"}}]}
-
-      data: {"id":"202604110311391dc483e004db438c","created":1775848299,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" main"}}]}
-
-      data: {"id":"202604110311391dc483e004db438c","created":1775848299,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" functions"}}]}
-
-      data: {"id":"202604110311391dc483e004db438c","created":1775848299,"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":131}}}
-
-      data: [DONE]
-
-    headers:
-      Content-Type:
-      - text/event-stream;charset=UTF-8
-    status: 200 OK
-    code: 200
-    duration: 590.892541ms
-- id: 1
-  request:
-    proto: HTTP/1.1
-    proto_major: 1
-    proto_minor: 1
-    content_length: 30816
+    content_length: 30665
     host: ""

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

@@ -24,25 +24,29 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"202604110310469c7b587666ea48f1","created":1775848246,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"202604110310469c7b587666ea48f1","created":1775848246,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Update"}}]}
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Update"}}]}
 
-      data: {"id":"202604110310469c7b587666ea48f1","created":1775848246,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" main"}}]}
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" main"}}]}
 
-      data: {"id":"202604110310469c7b587666ea48f1","created":1775848246,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":".go"}}]}
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":".go"}}]}
 
-      data: {"id":"202604110310469c7b587666ea48f1","created":1775848246,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]}
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" to"}}]}
 
-      data: {"id":"202604110310469c7b587666ea48f1","created":1775848246,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" print"}}]}
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" print"}}]}
 
-      data: {"id":"202604110310469c7b587666ea48f1","created":1775848246,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" hello"}}]}
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" \""}}]}
 
-      data: {"id":"202604110310469c7b587666ea48f1","created":1775848246,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" from"}}]}
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"hello"}}]}
 
-      data: {"id":"202604110310469c7b587666ea48f1","created":1775848246,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" crush"}}]}
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" from"}}]}
 
-      data: {"id":"202604110310469c7b587666ea48f1","created":1775848246,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":150,"completion_tokens":12,"total_tokens":162,"prompt_tokens_details":{"cached_tokens":130}}}
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" crush"}}]}
+
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"\""}}]}
+
+      data: {"id":"202604152102480d420eea3b86429c","created":1776258168,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":150,"completion_tokens":14,"total_tokens":164,"prompt_tokens_details":{"cached_tokens":130}}}
 
       data: [DONE]
 
@@ -51,15 +55,15 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 635.146167ms
+    duration: 751.116625ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30822
+    content_length: 30671
     host: ""

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

@@ -24,23 +24,23 @@ interactions:
     proto_minor: 0
     content_length: -1
     body: |+
-      data: {"id":"2026041103115445ebc15ea74549f3","created":1775848314,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
+      data: {"id":"202604152104150655e194791b4e90","created":1776258255,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","reasoning_content":"\n"}}]}
 
-      data: {"id":"2026041103115445ebc15ea74549f3","created":1775848314,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Creating"}}]}
+      data: {"id":"202604152104150655e194791b4e90","created":1776258255,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":"Create"}}]}
 
-      data: {"id":"2026041103115445ebc15ea74549f3","created":1775848314,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" config"}}]}
+      data: {"id":"202604152104150655e194791b4e90","created":1776258255,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" config"}}]}
 
-      data: {"id":"2026041103115445ebc15ea74549f3","created":1775848314,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":".json"}}]}
+      data: {"id":"202604152104150655e194791b4e90","created":1776258255,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":".json"}}]}
 
-      data: {"id":"2026041103115445ebc15ea74549f3","created":1775848314,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
+      data: {"id":"202604152104150655e194791b4e90","created":1776258255,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" file"}}]}
 
-      data: {"id":"2026041103115445ebc15ea74549f3","created":1775848314,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
+      data: {"id":"202604152104150655e194791b4e90","created":1776258255,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" with"}}]}
 
-      data: {"id":"2026041103115445ebc15ea74549f3","created":1775848314,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" version"}}]}
+      data: {"id":"202604152104150655e194791b4e90","created":1776258255,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" JSON"}}]}
 
-      data: {"id":"2026041103115445ebc15ea74549f3","created":1775848314,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" info"}}]}
+      data: {"id":"202604152104150655e194791b4e90","created":1776258255,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"delta":{"role":"assistant","content":" content"}}]}
 
-      data: {"id":"2026041103115445ebc15ea74549f3","created":1775848314,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":164,"completion_tokens":11,"total_tokens":175,"prompt_tokens_details":{"cached_tokens":131}}}
+      data: {"id":"202604152104150655e194791b4e90","created":1776258255,"object":"chat.completion.chunk","model":"glm-4.5-air","choices":[{"index":0,"finish_reason":"stop","delta":{"role":"assistant","content":""}}],"usage":{"prompt_tokens":164,"completion_tokens":11,"total_tokens":175,"prompt_tokens_details":{"cached_tokens":131}}}
 
       data: [DONE]
 
@@ -49,15 +49,15 @@ interactions:
       - text/event-stream;charset=UTF-8
     status: 200 OK
     code: 200
-    duration: 546.9515ms
+    duration: 675.648834ms
 - id: 1
   request:
     proto: HTTP/1.1
     proto_major: 1
     proto_minor: 1
-    content_length: 30859
+    content_length: 30708
     host: ""