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
@@ -1119,8 +1119,8 @@ pub struct Config {
|
||||
pub struct ToolRegistryConfig {
|
||||
/// Fail the turn when multiple tools share the same effective name.
|
||||
pub error_on_tool_collisions: bool,
|
||||
/// Include authoritative tool information in request metadata.
|
||||
pub include_tool_metadata: bool,
|
||||
/// Include authoritative tool information in per-turn request metadata.
|
||||
pub turn_metadata_includes_tool_info: bool,
|
||||
}
|
||||
|
||||
const DEFAULT_CODE_MODE_EXEC_YIELD_TIME_MS: u64 = 30_000;
|
||||
@@ -3731,11 +3731,11 @@ impl Config {
|
||||
.and_then(|features| features.tool_registry.as_ref())
|
||||
.and_then(|config| config.error_on_tool_collisions)
|
||||
.unwrap_or_default(),
|
||||
include_tool_metadata: cfg
|
||||
turn_metadata_includes_tool_info: cfg
|
||||
.features
|
||||
.as_ref()
|
||||
.and_then(|features| features.tool_registry.as_ref())
|
||||
.and_then(|config| config.include_tool_metadata)
|
||||
.and_then(|config| config.turn_metadata_includes_tool_info)
|
||||
.unwrap_or_default(),
|
||||
};
|
||||
let code_mode = resolve_code_mode_config(&cfg);
|
||||
|
||||
Reference in new issue
Block a user