Files
CLIProxyAPI/internal/translator/codex/claude
Luis Pater 374056f28b fix(codex): preserve prompt cache prefix when loading deferred tools via ToolSearch
- Withhold defer_loading tools from top-level Codex tools[] and emit discovered definitions as additional_tools input items at the tool_result or tool_reference discovery point.
- Deduplicate repeated tool_reference declarations across turns and prioritize non-deferred tools in short-name mapping so newly inserted deferred tools never alter existing top-level tool names.
- Add regression tests covering ToolSearch discovery cache-prefix stability, repeated references, colliding >64-char MCP tool names, mixed tool_result content, and standalone reference ordering.

Closes: #7303
2026-11-07 03:24:41 +08:00
..