A remote with no Codex cache of its own (a server) builds its entry from
the bundled instructions, so office/codex/gpt-6-astra still lacked the
backend's model_messages and fields. OwnSlug takes an id ending in the
entry's codex/<slug> as Codex's own: entriesAt gives it this computer's
models_cache.json entry, as a local account's codex/<slug> gets, and
OwnIn keeps it in the Codex app's first list (gateway catalog too). A
relay's plain gpt-6-astra is not taken.
Run (mote-run, rebased head): TestRemoteChatGPTModelIsCodexOwn red with
OwnSlug turned off (description "GPT-6-Astra via magpie", OwnIn false),
green now; the codexcat, provider, gateway and gui runs, gofmt and the
three vets in the commit before. e2e with a models_cache.json in the
local CODEX_HOME: description "Frontier intelligence for the most
demanding work." and model_messages present, codex exec FAKE-OK.
Not run: the full suite (next, at the pushed head); a real ChatGPT
account behind a real remote.
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.