Files
magpie/internal/memdistill
yetone 6d8fcb93a7 memdistill: switched off, the background read asks no model
Keep called auto() before Run looked at the switch. auto is
gateway.AutoVision, which ranks every provider's models and loads the
whole models.dev catalog: 3.6 MB of a tray-only magpie's live heap
with real accounts, for a run that read nothing, five minutes after
start and every hour after. Memory reading is off by default.

Keep now reads distill.json first and skips the round when it is off;
a file it can't read goes on to Run as before, which reports it.

Run: go test ./internal/memdistill on mote, ok.
Broken by hand: skipping the check turns TestKeepOffAsksNoModel red
("switched off, it asked for a model"); the test then switches it on
and waits for the ask, so it can't pass on a loop that never runs.
2026-11-14 11:47:59 +08:00
..