What changed
- textcalls_relay.go: responsesTextCalls reads a Responses reply relayed as
it came — a Codex turn to a provider that speaks Responses itself. Text
from where a call is written into it is held from output_text.delta on;
the part's output_text.done, content_part.done and the message item's
output_item.done wait with it; at response.completed the held calls
become function_call items (added, arguments deltas, done) and the
completed output says them too. A reply that came whole is read over its
output's message items.
- geminiTextCalls does the same over candidates[].content.parts: text
parts held or trimmed as the chunks come, the held calls functionCall
parts at the candidate's finishReason; a whole generateContent reply
(Vertex AI) the same. A reply that made calls itself (native) goes as
textCallTidy lets a Chat one: only tags left in its text go.
- gateway.go: both wired into the relay funnel beside textCallTidy and
anthropicTextCalls; geminiToolNames reads a Gemini request's
functionDeclarations.
Run
- go test ./internal/gateway/ -run TestInvokeReported -count=1: the two new
passthrough cases red before, green after; the package's full run green.