Repository navigation
Commit 9d19b45
committed
fix(agent-loop): Stop spurious "fallback expired" toast at startup
`_last_resolved_model_alias` is initialized to `None`, so the first
call to `_resolve_model_with_fallback` saw `previous_alias=None` and
treated it as a transition from a non-primary model back to primary,
firing a "Fallback expired, back to <primary>" toast on every launch.
Treat `None` as "no previous resolution yet" and skip the restored
notification in that case.1 parent 06c110e commit 9d19b45
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| |||
328 | 331 | | |
329 | 332 | | |
330 | 333 | | |
331 | | - | |
| 334 | + | |
332 | 335 | | |
333 | 336 | | |
334 | 337 | | |
| |||
0 commit comments