Over SSH the TUI is where magpie is set up, and OpenCode Zen's or Kilo's
free models change often. m on the providers list already asked the
vendor again, but the models view the reporter looks at (providers ›
<provider> › models) had no way to: its keys go to the filter. ctrl+r
there now runs the same refetch (refetchCmd, the app editor's Fetch
models), the footer names it, and the list open is drawn again from what
came (a flash now relists an open models picker, modelsChanged). The
view doesn't fetch by itself on entry: a fetch can drop picks gone from
the vendor's list, which looking at the list shouldn't do.
Run:
- go test -tags nogui ./internal/tui: ok. TestTUIFetchesAProvidersModels
now opens the models view, grows the fake vendor's list, presses ctrl+r
and checks the new model is listed and a typed key still filters.
Fails without the change: with pages.go reverted, "the models view
doesn't offer ctrl+r"; with the flash not relisting, "the models view
doesn't list what ctrl+r fetched".
- gofmt -l, go vet (darwin), GOOS=linux go vet -tags nogui, GOOS=windows
go vet on ./internal/tui: clean.
- Real use: the built nogui binary under a sandbox HOME, a custom
provider at a local fake /v1/models, magpie tui in tmux: Enter on the
provider, the list grown on the fake, ctrl+r: "Free Relay: 3 models
from its list · 3 for agents" and the third model listed.
Not tried: OpenCode Zen or Kilo themselves (the refetch path is the
existing m key's, unchanged).