You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e631f87
Browse filesBrowse the repository at this point in the historyBrowse files
fix(responses): bridge routed tool_search through the Responses passthrough
Passthrough forwarded Codex's private {type:"tool_search"} unchanged to
third-party /v1/responses gateways, which only understand public function tools.
The model never saw a callable tool_search and emitted zero tool_search_call
items, so deferred tool discovery silently did nothing on every routed provider.
Lower the private tool to a public function on noncanonical forward targets,
rewrite tool_choice and replayed history to match, then restore the private
tool_search_call lifecycle on the way back so Codex sees what it can execute.
Canonical ChatGPT forward is untouched.
Carries @Ingwannu's #2040 implementation and tests, with two corrections for
findings that were still open on it:
History-only replay. A turn may replay tool_search history without re-declaring
the tool. The history was lowered either way, but restoration was armed only
when a declaration was present, so the client got back a public function_call
for what it had issued as a private search call.
SSE overflow was not atomic. Both overflow branches cleared routedItemIds along
with the pending buffer, so an item already restored to tool_search_call started
emitting function_call_arguments frames again and the client saw a mixed
private/public lifecycle for one call. Overflow now stops buffering unknown
frames without forgetting what was already classified.
Closes#1950
0 commit comments