mirror of
https://github.com/openai/codex.git
synced 2026-11-13 06:45:07 +00:00
Route hook MCP calls through current connections (#39331)
## What changed - Execute hook-triggered MCP calls through the runtime's latest connection set instead of preparing a separate catalog-bound call. - Keep hook calls from waiting for server startup or reconnecting, and reject disconnected servers immediately. - Apply the shorter of the hook-requested timeout and the server's configured tool timeout. ## Testing - Update connection manager tests to cover non-waiting calls and disabled tool filters. GitOrigin-RevId: 3166b2d1e26d9ae2b8b3a648b4d0897cc260eb93
This commit is contained in:
1 parent
67ed4e717a
commit
d35e5495f9
8 files changed
+84
-269
No files matched your search
@@ -3594,6 +3594,8 @@ impl Session {
|
||||
Some(serde_json::json!({
|
||||
"threadId": self.thread_id().to_string(),
|
||||
})),
|
||||
/*requested_timeout*/ None,
|
||||
/*wait_for_server*/ true,
|
||||
)
|
||||
.await
|
||||
.ok()
|
||||
|
||||
Reference in new issue
Block a user