Make /model provider switch activate selected tier in minimal TUI

This commit is contained in:
William Valentin
2026-02-15 19:53:42 -08:00
parent d44bfc300b
commit 8b1ed2f689
3 changed files with 76 additions and 1 deletions
+3 -1
View File
@@ -287,12 +287,14 @@ export class MinimalTui {
});
router.setClient(tier, client, providerModel);
router.setTierStrict(tier, true);
router.setTier(tier);
if (this.config.agent && tier === router.getTier()) {
if (this.config.agent) {
this.config.agent.setModelTier(tier);
}
console.log(`${colors.gray}Set ${tier} to:${colors.reset} ${providerModel}`);
console.log(`${colors.gray}Switched to model:${colors.reset} ${tier}`);
console.log(`${colors.gray}Fallbacks for ${tier} disabled (strict tier mode).${colors.reset}\n`);
} catch (error) {
const message = error instanceof Error ? error.message : String(error);