mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-18 15:48:39 +08:00
- 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