Jeremy.Zhou asked that the free-models plugin's dropped models go and new
ones come by themselves. A plugin's list was read on start, sign-in, a
plugin change or Refresh, never again while magpie ran; and Refetch skipped
dropGonePicks for plugin providers, so a dropped model stayed picked.
- KeepPluginsListed, started beside KeepRetiringMoved in the gateway's
ListenAndServe, asks the plugins again a minute after start and then
hourly (plugin.Providers, 2 min timeout). A failed ask logs and keeps the
lists. A list that fell back (vendor unreadable) drops nothing, and the
last read list stays the comparison for the next ask (keptListed).
- dropGonePluginPicks drops a pick the old list had and the new one lacks;
a pick neither listed (typed by hand) stays. Refetch uses it for plugin
providers too.
Run: TestPluginsListedAgainWhileRunning -race -count=5 green; red with the
drop removed, and red with keptListed replaced by before = now. internal/
plugin ok; gofmt -l clean; GOOS=linux and GOOS=windows go vet -tags nogui
./internal/provider ./internal/gateway ok. The full gateway package hit
the 10 min test timeout at load average ~150 (stacks in mcpauth sleeps), not
rerun before disk fell under 10G.