A remote magpie's models reached Codex as entries this magpie made up for
a third party's model (its description "· Remote magpie via magpie",
no model_messages, no service tiers), so a ChatGPT subscription the remote
holds wasn't the Codex it is when the account is local. codexEntries
skipped every preset provider, the remote magpie included. It now asks
the remote's /v1/codex/models (#1281) with Codex's client_version and the
remote's key, and listedEntry says " via magpie" once.
Run (mote-run, at the rebased head on f288cc61a):
- TestRemoteMagpieHandsOnItsCodexEntries, TestRemoteMagpieEntry: red on
the old codex_entries.go/codexcat.go ("asked 0 times", "via magpie via
magpie"), green now.
- go test ./internal/codexcat; -run 'Remote|Codex|Budget' over
internal/provider, internal/gateway, internal/gui: ok.
- gofmt -l clean; go vet, GOOS=linux -tags nogui and GOOS=windows vet of
the three packages: ok.
- e2e on mote, two sandbox HOMEs (remote :3592, local :3593) and a fake
ChatGPT backend :3591: `magpie codex office/codex/gpt-6-astra` then
`codex exec`; old binary wrote the made-up entry, new one the remote's,
both answered FAKE-OK.
Not run yet: the full suite (mote and mica were busy with other
sessions' suites); it runs at the pushed head next.