fix: show only fallback model when failover is active

This commit is contained in:
Eyejoker
2026-04-01 05:04:04 +09:00
parent 5a109e3717
commit f4410be779

View File

@@ -604,11 +604,12 @@ function buildModelConfigSection(): string {
// Show fallback status for claude-code roles when global failover is active // Show fallback status for claude-code roles when global failover is active
const isFallback = failover.active && type === 'claude-code'; const isFallback = failover.active && type === 'claude-code';
const fallbackModel = process.env.CODEX_MODEL || 'codex'; if (isFallback) {
const modelDisplay = isFallback const fallbackModel = process.env.CODEX_MODEL || 'codex';
? `\`${model}\` (fallback → \`${fallbackModel}\`)` lines.push(` **${role.label}** — codex \`${fallbackModel}\` (fallback)`);
: `\`${model}\``; } else {
lines.push(` **${role.label}** — ${type} ${modelDisplay}`); lines.push(` **${role.label}** — ${type} \`${model}\``);
}
} }
// MoA status // MoA status