mirror of
https://github.com/openai/codex.git
synced 2026-11-22 15:15:18 +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
@@ -574,7 +574,7 @@ disable_in_process_fallback = true
|
||||
async fn load_config_resolves_tool_registry_config() -> std::io::Result<()> {
|
||||
let codex_home = tempdir()?;
|
||||
|
||||
for (config_toml, error_on_tool_collisions, include_tool_metadata) in [
|
||||
for (config_toml, error_on_tool_collisions, turn_metadata_includes_tool_info) in [
|
||||
("", false, false),
|
||||
(
|
||||
"[features.tool_registry]\nerror_on_tool_collisions = true\n",
|
||||
@@ -582,7 +582,7 @@ async fn load_config_resolves_tool_registry_config() -> std::io::Result<()> {
|
||||
false,
|
||||
),
|
||||
(
|
||||
"[features.tool_registry]\ninclude_tool_metadata = true\n",
|
||||
"[features.tool_registry]\nturn_metadata_includes_tool_info = true\n",
|
||||
false,
|
||||
true,
|
||||
),
|
||||
@@ -601,8 +601,8 @@ async fn load_config_resolves_tool_registry_config() -> std::io::Result<()> {
|
||||
error_on_tool_collisions
|
||||
);
|
||||
assert_eq!(
|
||||
config.tool_registry.include_tool_metadata,
|
||||
include_tool_metadata
|
||||
config.tool_registry.turn_metadata_includes_tool_info,
|
||||
turn_metadata_includes_tool_info
|
||||
);
|
||||
assert!(!config.features.enabled(Feature::CodeMode));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user