Has anyone observed this interaction between hosted Tool Search and inline compaction in the Responses API? I am trying to establish whether the empty results are expected already-loaded deduplication, and how a model should recover after compaction.
This was observed on Azure OpenAI Responses, with the response reporting model gpt-6-luna. I have not reproduced it against the direct OpenAI endpoint. This is hosted/server tool search, not client-executed search or Foundry Toolbox Search.
Observed sequence
In a long previous_response_id chain:
- Hosted tool search loaded five application function tools earlier in the task.
- A later single response contained a native compaction item, followed by seven hosted tool-search call/output pairs.
- Six searches returned an empty tools array. One multi-tool search returned only a different tool that had not previously been loaded.
- The assistant concluded that its required tools were unavailable and stopped. It did not attempt the relevant function calls in that response.
The first post-compaction search used paths without a query. The following excerpt anonymizes tool names and removes item/response IDs:
[
{
"type": "tool_search_call",
"execution": "server",
"call_id": null,
"status": "completed",
"arguments": {
"paths": ["data_tool", "mail_tool"]
}
},
{
"type": "tool_search_output",
"execution": "server",
"call_id": null,
"status": "completed",
"tools": []
}
]
Other searches without a query were also empty for previously loaded tools. The response completed with error and incomplete_details both null.
What we checked, and what remains unknown
- Retrieving the preceding and affected stored responses still shows 32 top-level tool entries. The five previously loaded tools appear as namespaces containing same-named functions with parameter schemas; their parameter-schema hashes are unchanged across the two stored responses.
- This is the server’s effective stored tool view, not a capture of the original outgoing POST. Its presence does not prove those schemas remained visible/callable to the model after compaction.
- In a separate earlier turn, an empty hosted search was followed by a direct read-only function call. That is not a same-state post-compaction control for the affected response.
- We have one correlated incident, not seven independent reproductions or a deterministic minimal repro.
- The tool implementations are application-executed functions, including a function wrapper around an email MCP; this is not a hosted MCP connection/authentication error observed during execution.
Questions
- Does hosted tool search intentionally omit definitions already loaded in the response chain, even after inline compaction?
- If so, should those definitions remain callable after compaction? How should a model distinguish “already loaded” from “no matching tool” when both return tools: ?
- Is there a known case where the server’s loaded-tool registry survives compaction but the model-visible definitions do not?
- What is the supported recovery path if the model repeatedly searches an already-loaded tool and concludes it is unavailable?
I found the related Agents SDK issue #1855 and fix #1856. The fix notes that hosted search may omit definitions already loaded in the response chain. That issue concerns a fresh Runner continuation, however, so I am not claiming it establishes the cause of this inline-compaction incident.
I am also not assuming that an empty search result is itself a protocol bug, or requesting all deferred tools be eagerly loaded. I would appreciate clarification of the intended lifecycle and any similar observations. Correlation IDs and further sanitized evidence can be shared through a private support channel if needed.