fix(gsd): suppress model change notification in auto-mode unless verbose

The Model [phase] [tier] notification fired on every unit dispatch during
auto-mode, cluttering the notification widget. The dashboard header already
displays the active model, making this redundant. Gate behind verbose flag
consistent with all other model routing notifications in the same function.
This commit is contained in:
Jeremy 2026-04-07 10:09:58 -05:00
parent 23c38807ac
commit d25a7d6fb7

View file

@ -246,11 +246,13 @@ export async function selectAndApplyModel(
const ok = await pi.setModel(model, { persist: false });
if (ok) {
appliedModel = model;
const fallbackNote = modelId === effectiveModelConfig.primary
? ""
: ` (fallback from ${effectiveModelConfig.primary})`;
const phase = unitPhaseLabel(unitType);
ctx.ui.notify(`Model [${phase}]${routingTierLabel}: ${model.provider}/${model.id}${fallbackNote}`, "info");
if (verbose) {
const fallbackNote = modelId === effectiveModelConfig.primary
? ""
: ` (fallback from ${effectiveModelConfig.primary})`;
const phase = unitPhaseLabel(unitType);
ctx.ui.notify(`Model [${phase}]${routingTierLabel}: ${model.provider}/${model.id}${fallbackNote}`, "info");
}
break;
} else {
const nextModel = modelsToTry[modelsToTry.indexOf(modelId) + 1];