Repository navigation
fix(gateway): streamed tool calls silently omit assistant commentary - #128353
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 23, 2026 20:28
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an issue where applications streaming Gateway
/v1/responsestool calls would receive no assistant commentary delta when the model returned its explanation only in the final payload. The completed response contained the text, but live stream consumers saw nothing before the function call.Why This Change Was Made
Remove an incorrect condition that limited pending-tool commentary emission to explicitly required or pinned tools. Every successful tool-call response now flushes its existing commentary exactly once when it has not already streamed, matching the sibling chat-completions endpoint.
User Impact
Responses API clients now receive live assistant text such as “Let me check that.” before the corresponding function-call events when tools are selected automatically. Required/pinned tool enforcement, already-streamed text, empty commentary, and final event ordering remain unchanged.
Evidence
response.output_text.deltais absent.