mirror of
https://github.com/openai/codex.git
synced 2026-11-25 15:24:26 +00:00
Preserve executor context for MCP stop hooks (#40012)
## What changed - Scope executor-provided stop-hook calls to the MCP server environment that registered the hook, and reject calls when that environment does not match. - Forward turn metadata with executor stop-hook requests while retaining the hook call's `threadId` metadata. ## Testing - Cover environment matching for MCP tool calls and verify executor stop hooks receive their environment ID and request metadata. GitOrigin-RevId: b544ea3a6ca1f61389fb4597978ed7aac27d529a
This commit is contained in:
1 parent
8b5beea5c0
commit
ab8768306f
14 files changed
+157
-6
No files matched your search
@@ -9,6 +9,8 @@ use serde_json::Value;
|
||||
pub struct HookMcpCall {
|
||||
pub server: String,
|
||||
pub tool: String,
|
||||
pub environment_id: Option<String>,
|
||||
pub metadata: Option<Map<String, Value>>,
|
||||
pub input: Map<String, Value>,
|
||||
pub timeout: Duration,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user