mirror of
https://github.com/openai/codex.git
synced 2026-11-22 15:15:18 +00:00
Add tool namespace metadata configuration (#37389)
## What changed - Add `features.tool_registry.include_tool_namespaces_info` to the TOML model, generated schema, and resolved runtime configuration. The setting defaults to `false` and controls whether per-turn request metadata includes the resolved tool namespace inventory. - Preserve the resolved setting in session configuration locks. - Cover top-level and profile-scoped strict configuration, deserialization, resolution, and lock-file persistence. GitOrigin-RevId: 74124086c0d7de30094b411001f0ec0af490935d
This commit is contained in:
1 parent
0bdce9f424
commit
4ee41929ea
7 files changed
+43
-6
No files matched your search
@@ -574,11 +574,17 @@ 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) in [
|
||||
("", false),
|
||||
for (config_toml, error_on_tool_collisions, include_tool_namespaces_info) in [
|
||||
("", false, false),
|
||||
(
|
||||
"[features.tool_registry]\nerror_on_tool_collisions = true\n",
|
||||
true,
|
||||
false,
|
||||
),
|
||||
(
|
||||
"[features.tool_registry]\ninclude_tool_namespaces_info = true\n",
|
||||
false,
|
||||
true,
|
||||
),
|
||||
] {
|
||||
let config_toml: ConfigToml =
|
||||
@@ -594,6 +600,10 @@ async fn load_config_resolves_tool_registry_config() -> std::io::Result<()> {
|
||||
config.tool_registry.error_on_tool_collisions,
|
||||
error_on_tool_collisions
|
||||
);
|
||||
assert_eq!(
|
||||
config.tool_registry.include_tool_namespaces_info,
|
||||
include_tool_namespaces_info
|
||||
);
|
||||
assert!(!config.features.enabled(Feature::CodeMode));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user