[codex] enable parallel standalone web search calls (#25702)

## Summary
- opt the extension-backed standalone `web.run` tool into parallel tool
execution
- update the existing extension registration test to assert that the
tool advertises parallel-call support

## Why
The standalone web-search API endpoint now supports parallel requests.
The extension executor still inherited the shared serial default,
causing multiple `web.run` calls to acquire the exclusive runtime lock.

## Impact
Models that emit multiple standalone web-search calls can now execute
them concurrently when model-level parallel tool calls are enabled.

## Validation
- `just fmt`
- `just test -p codex-web-search-extension`
- `git diff --check origin/main...HEAD`
This commit is contained in:
sayan-oai authored and GitHub committed 2026-06-01 15:04:11 -07:00
1 parent 6536841d89
commit b3c4157034
2 files changed
+6 -2

No files matched your search

+4
View File
@@ -70,6 +70,10 @@ impl ToolExecutor<ToolCall> for WebSearchTool {
ToolExposure::DirectModelOnly
}
fn supports_parallel_tool_calls(&self) -> bool {
true
}
async fn handle(&self, call: ToolCall) -> Result<Box<dyn ToolOutput>, FunctionCallError> {
let commands = parse_commands(&call)?;
let command_action = command_action(&commands);