+A Responses stream that ends with `response.incomplete` because of `max_output_tokens` or `content_filter` now finishes with `RUN_FINISHED` carrying the response's usage and `finishReason``'length'` or `'content_filter'`, and includes text that arrived only on that event. `response.failed`, an incomplete response with another or no reason, and a structured output that cannot be parsed still end in `RUN_ERROR`.
2 additions and 1 deletion+2-1docs/adapters/openrouter-advanced.mdModified
-- `openRouterText` and `openRouterResponsesText` put the usage and cost that they got on the `RUN_ERROR` event. This covers parse failures, cut-off responses, empty responses, and SDK errors.
+- `openRouterText` and `openRouterResponsesText` put the usage and cost that they got on the `RUN_ERROR` event. This covers parse failures, empty responses, and SDK errors. An incomplete Responses result with another or no reason is also a `RUN_ERROR`.
+- A Responses stream that ends because of `max_output_tokens` or `content_filter` finishes with `RUN_FINISHED` (`finishReason``'length'` or `'content_filter'`), keeps the partial text, and puts usage on that event. A structured output that cannot be parsed still ends in `RUN_ERROR`.