chord: refactor tool route (#3732)

This commit is contained in:
Lifei Zhou
2025-07-31 08:39:00 +10:00
committed by GitHub
parent ed3217ceca
commit e20a88516d
5 changed files with 232 additions and 178 deletions
+1
View File
@@ -346,6 +346,7 @@ pub async fn build_session(session_config: SessionBuilderConfig) -> Session {
// Extensions need to be added after the session is created because we change directory when resuming a session
// If we get extensions_override, only run those extensions and none other
let extensions_to_run: Vec<_> = if let Some(extensions) = session_config.extensions_override {
agent.disable_router_for_recipe().await;
extensions.into_iter().collect()
} else {
ExtensionConfigManager::get_all()