mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1918] [CLOSED] serve: run Codex's client-side tool_search #3756
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3756
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1918
Author: @msola-ht
Created: 10/11/2026
Status: ❌ Closed
Base:
main← Head:codex-tool-search📝 Commits (3)
719d9c6feat(responses): 支持 Codex 客户端的 tool_search27c2f3drefactor(responses): tool_search 保留上游对重复声明的处理a8bbfa7fix(responses): tool_search 不对重复声明报错📊 Changes
2 files changed (+60 additions, -8 deletions)
View changed files
📝
docs/DETAILS.md(+2 -2)📝
serve/responses.py(+58 -6)📄 Description
Fixes #1917.
Codex (CLI and Desktop, Responses wire API) declares its deferred tool discovery as
{"type": "tool_search", "execution": "client"}with noname.serve/responses.pylistedtool_searchinHOSTED_TOOLS, so the declaration was dropped and the model never saw it: a Responses client could not reach thetools it keeps in reserve, and the search that same client runs itself had no way to start.
What this changes
tool_searchis declared to the model as the ordinary functiontool_search. The model can only call it, theclient runs the search and answers, and the call goes back as a
tool_search_callitem (execution: "client",argumentsas an object, noname, no argument deltas,incompleteif the turn runs out of tokens).tool_search_callandtool_search_outputare read back frominput: the call is replayed as thetool_searchcall it was, and the tools the search found are declared for that prompt the same way an
additional_toolsitem isread (#782) - a
namespaceof found tools included.tool_searcha client marks for some other host to run is still left out, like the other hosted tools.What it leaves alone
Web search and the other hosted tools are still left out (this server cannot run them) and
tool_choicestill cannotforce a tool. Nothing changes for a request that does not declare
tool_search: no new config key and no newdefault - the client's own declaration is the opt-in, as it is for
additional_tools(#782) and thenamespace__namemapping (#812).How I checked
python -m unittest serve.test_responses: 40 tests, 1 skipped, no failures.is then called,
execution: "server"still dropped, and a request with a repeated tool declaration unchanged.tool_search_call->tool_search_output-> the modelcalling a tool that only the search had returned.
Not covered: the suite has no test for
tool_search, and the wire shapes come from measured Codex traffic ratherthan a published specification.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.