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
bug(runtime): Code Mode on OpenAI Responses advertises maka_tool_search, which exec does not bind #5664
In Code Mode, with a connection routed through the OpenAI Responses adapter, the model cannot load any deferred tool. Its first exec call fails before any tool runs:
Because discovery fails, ScheduledTask (and every other deferred tool) is unreachable in that session. The user's request ("create a scheduled task for 10:00 today") ended with no task created.
Root cause. OpenAI Responses reserves tool_search, so #3958 renames the provider-bound tool to maka_tool_search (model-adapter.ts, startStream) and also rewrites every \btool_search\b in the system prompt via remapProviderToolNamesInText. In Code Mode the provider only sees exec; tool_search is nested inside it and bound in the QuickJS cell as tools.tool_search (code-mode.ts / nestableToolSnapshot). The prose rewrite still reaches the Code Mode catalog prompt (renderCodeModeCatalogPrompt, "After tool_search, …" plus the JSON catalog), so the model is told to call a name the cell never binds.
The existing Code Mode backend test (code-mode-backend.test.ts) does not use a Responses runtime, so it does not cover this combination.
Activity