Commit Graph
2 Commits
Author SHA1 Message Date
yetone f7173c79a3 codexcat: another magpie's ChatGPT model is Codex's own, given this Codex's entry for it
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.
2026-11-20 00:12:59 +08:00
yetone c3836b4eeb remote magpie: Codex is handed the entries that magpie gives its own Codex (Darkf1ames on X)
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.
2026-11-20 00:12:59 +08:00