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:
parent
23c38807ac
commit
d25a7d6fb7
1 changed files with 7 additions and 5 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue