chore: alias max_concurrent_threads_per_session (#19354)

This commit is contained in:
jif-oai
2026-04-24 14:33:03 +02:00
committed by GitHub
Unverified
parent 120aa07d81
commit 9eadff9713
+12 -5
View File
@@ -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 {