mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Include call IDs in MCP requests and clarify metadata config (#37477)
## What changed - Add the tool call ID to `_meta.callId` for every MCP tool request. - Rename `features.tool_registry.include_tool_metadata` to `features.tool_registry.turn_metadata_includes_tool_info` to clarify that the setting controls authoritative tool information in per-turn metadata. - Update config parsing, schema generation, and session config locking for the renamed setting. ## Testing - Cover `callId` metadata for custom, plugin, and Codex Apps MCP calls. - Update strict-config, config-loading, feature-config, and config-lock tests for the renamed setting. GitOrigin-RevId: ac0e58c489b03bd9b55a356f545de86c8ecaf865
This commit is contained in:
1 parent
5729546839
commit
248d8c0e22
10 files changed
+37
-23
No files matched your search
@@ -247,6 +247,10 @@ async fn approved_mcp_tool_call_metadata_records_prior_user_input_request() -> R
|
||||
assert_eq!(mock.requests().len(), 2);
|
||||
let apps_tool_call = recorded_apps_tool_call_by_call_id(&server, call_id).await;
|
||||
|
||||
assert_eq!(
|
||||
apps_tool_call.pointer("/params/_meta/callId"),
|
||||
Some(&json!(call_id))
|
||||
);
|
||||
assert_eq!(
|
||||
apps_tool_call
|
||||
.pointer("/params/_meta/x-codex-turn-metadata/user_input_requested_during_turn"),
|
||||
|
||||
Reference in new issue
Block a user