mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Delegate readiness waits to tool runtimes (#36120)
## What changed - Add an optional `wait_until_ready` hook to `CoreToolRuntime` and invoke it before acquiring the tool execution gate. - Move MCP refresh and server-startup waiting into the MCP runtime's hook. - Forward readiness waits through tool exposure and namespace wrappers. - Test exact runtime selection for plain and namespaced tools, including exposure overrides and missing tools. GitOrigin-RevId: 8718589fa06f14d053a35a288186613f649d25ff
This commit is contained in:
1 parent
b293412c24
commit
9a46fd33a0
7 files changed
+156
-34
No files matched your search
@@ -135,8 +135,8 @@ impl ToolRouter {
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
pub(crate) fn mcp_server_name(&self, call: &ToolCall) -> Option<&str> {
|
||||
self.registry.mcp_server_name(&call.tool_name)
|
||||
pub(crate) fn tool_runtime(&self, call: &ToolCall) -> Option<Arc<dyn CoreToolRuntime>> {
|
||||
self.registry.tool(&call.tool_name)
|
||||
}
|
||||
|
||||
pub fn tool_waits_for_runtime_cancellation(&self, call: &ToolCall) -> bool {
|
||||
|
||||
Reference in new issue
Block a user