mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
chore: alias max_concurrent_threads_per_session (#19354)
This commit is contained in:
committed by
GitHub
Unverified
parent
120aa07d81
commit
9eadff9713
@@ -8,11 +8,18 @@ struct ConfigKeyAlias {
|
||||
canonical_key: &'static str,
|
||||
}
|
||||
|
||||
const CONFIG_KEY_ALIASES: &[ConfigKeyAlias] = &[ConfigKeyAlias {
|
||||
table_path: &["memories"],
|
||||
legacy_key: "no_memories_if_mcp_or_web_search",
|
||||
canonical_key: "disable_on_external_context",
|
||||
}];
|
||||
const CONFIG_KEY_ALIASES: &[ConfigKeyAlias] = &[
|
||||
ConfigKeyAlias {
|
||||
table_path: &["memories"],
|
||||
legacy_key: "no_memories_if_mcp_or_web_search",
|
||||
canonical_key: "disable_on_external_context",
|
||||
},
|
||||
ConfigKeyAlias {
|
||||
table_path: &["agents"],
|
||||
legacy_key: "max_concurrent_threads_per_session",
|
||||
canonical_key: "max_threads",
|
||||
},
|
||||
];
|
||||
|
||||
pub(crate) fn normalize_key_aliases(path: &[String], table: &mut TomlMap<String, TomlValue>) {
|
||||
for alias in CONFIG_KEY_ALIASES {
|
||||
|
||||
Reference in New Issue
Block a user