mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3330
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/1241
Author: @BGonnermann
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:serve/responses-additional-tools-782📝 Commits (2)
b02abc3serve: the Responses API reads Codex's additional_tools input items as tools (#782)75d3c31Merge branch 'main' into serve/responses-additional-tools-782📊 Changes
3 files changed (+86 additions, -178 deletions)
View changed files
📝
docs/DETAILS.md(+2 -2)📝
serve/responses.py(+24 -8)📝
serve/test_responses.py(+60 -168)📄 Description
Fixes #782.
The problem
Codex (0.160.0 in the report, and Xcode's bundled Codex agent in the comment) can send its tools inside
input:input_messages()refused the item with a 400 (input items of type 'additional_tools' are not supported), so therequest never ran and the client fell back to shell commands.
What the item is
The issue has only a second-hand description, so I read it in openai/codex:
codex-rs/app-server-protocol/schema/typescript/ResponseItem.ts:{ "type": "additional_tools", id?, role: string, tools: unknown[] }.codex-rs/core/tests/suite/responses_lite.rs: in this mode the request has notoolsand noinstructions;input[0]is theadditional_toolsitem and itstoolsare compared with whattoolsholds in the standard mode(the same format:
function,namespace, hosted tools).codex-rs/core/tests/suite/scenarios_incremental_tools.rs: when the tools change, another item is appended. Itsnamespace's
descriptionis the text "This is an incremental namespace update. Previously declared tools remainavailable ... If a tool is redefined here, its latest definition replaces the earlier one." A removed tool is
announced by a developer message, not by an item.
The change
input_messages()additional_toolsitem makes no message. Without atoolsarray it is a 400 naminginput[i].tools.request_tools()tools, then those of theadditional_toolsitems, in order. So the same tools give the same prompt as the old request form. Errors nameinput[i].tools[j].request_tools()request_tools()docs/DETAILS.mdThings to know
tools. Before, both definitions went into theprompt. Say so if you want that left as it was.
again instead of continuing from the conversation cache. I did not measure how often Codex does that.
Tests
python -m unittest serve.test_responses: 23 pass (21 before, 2 new), Windows 11, Python 3.14.7, mock engine.test_additional_tools_items: the item is not a message; its tools equal the onestoolswould give; an updateitem replaces one member and adds a tool; the namespace description is kept;
toolscome first;tool_choice: none;three malformed items.
AdditionalTools.test_a_request_with_its_tools_in_the_input: Codex's request form over HTTP, plain and streamed:200, a
function_callcomes back, and the prompt the engine got holds the tool and the developer text.Not tested with a real Codex or a real model: I do not have the setup of the report. @Anivie and @hys17, a run on your
side would settle it.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.