fix: trying this approach to undo regressions for extension loading (#6568)

This commit is contained in:
Michael Neale
2026-01-19 11:55:09 +11:00
committed by GitHub
parent 21d63f4984
commit f3c2f8e803
2 changed files with 42 additions and 16 deletions
+15 -15
View File
@@ -54,22 +54,22 @@ fn get_extensions_map() -> IndexMap<String, ExtensionEntry> {
}
}
if !extensions_map.is_empty() {
for (name, def) in PLATFORM_EXTENSIONS.iter() {
if !extensions_map.contains_key(*name) {
extensions_map.insert(
name.to_string(),
ExtensionEntry {
config: ExtensionConfig::Platform {
name: def.name.to_string(),
description: def.description.to_string(),
bundled: Some(true),
available_tools: Vec::new(),
},
enabled: def.default_enabled,
// Always inject platform extensions (code_execution, todo, skills, etc.)
// These are internal agent extensions that should always be available
for (name, def) in PLATFORM_EXTENSIONS.iter() {
if !extensions_map.contains_key(*name) {
extensions_map.insert(
name.to_string(),
ExtensionEntry {
config: ExtensionConfig::Platform {
name: def.name.to_string(),
description: def.description.to_string(),
bundled: Some(true),
available_tools: Vec::new(),
},
);
}
enabled: def.default_enabled,
},
);
}
}
extensions_map