Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.
codex: a subagent named a model goes on it with "Same as the lead" (mengxiao on Discord)
yetone67c8f562cd42
diff --git a/docs/subsystems/gateway-routing.md b/docs/subsystems/gateway-routing.mdindex 1c7c29855..61f3cd546 100644--- a/docs/subsystems/gateway-routing.md+++ b/docs/subsystems/gateway-routing.md@@ -150,7 +150,7 @@ recorded as a prediction failure (`noPrediction`).- A model the user disabled (#1867) gets a 403 for every caller (`idOff`), before anything is sent; see [Disabled models](#disabled-models).- Sealed tasks (#619) are checked here. A Codex subagent's task its lead's `spawn_agent` sealed goes only to a ChatGPT account, or back to the Responses provider that answered the lead (`leadProvider`, a relay of the ChatGPT backend such as Sub2API, #1109), relayed as it came even when web search is offered. A lead's turn carrying its subagent's sealed reply (`send_message`) goes back to the Responses provider that answered the lead's own conversation (`leadProvider` of the request's `conversationID`, #1237); otherwise it is refused before anyone is asked (`sealedReader`, `sealedTaskError`). A sealed message (`Message Type: MESSAGE`, not a task) that nobody asked can open is left out instead, an `input_text` note naming its sender in its place (`withoutSealedMessages`, #1613): a lead on a chat provider whose subagent is on one of Codex's own models goes on, as the subagent's final result still reaches it as text. Only a sealed task (`NEW_TASK`, or an item with neither header) is refused. Who answered is first what affinity remembers; when affinity has let it go (a day since, a restart past the 512 conversations `affinity.json` keeps, or the lead's last reply broken off, `unanswered`), the usage log's answers to the lead's thread and the request's own conversation in the last 30 days count too (`loggedAnswers`, #1367), and `leadFirst` reads the lead's key or account from them. A refused or failed call and a title answer nothing, and Codex's own sign-in is told of as the ChatGPT backend. The refusal names who sealed the task when it is known, and says how to go on with it. It also says what is sealed (`sealedTaskItself`, #1855): the task itself, `spawn_agent`'s `message`, which the backend returns sealed (`encrypted_function_args`) and Codex hands the subagent as it came, so `fork_turns="none"`, which only leaves the lead's turns out, doesn't help; nothing in it can be left out for the subagent to go on.- A model set for Codex's subagents (`settings.CodexSubagentModel`, the Agents page's Codex "subagent model", willz on Discord) is put on a Codex subagent's request (`x-openai-subagent` read as `kind:collab_spawn`) before this check, whatever model its lead's `spawn_agent` asked for (`codexSubagentPick` in [`codex_subagent.go`](../../internal/gateway/codex_subagent.go)): in `codexBackend` for one of Codex's own bare models, which then goes through `serveAgent`, and in `serve` for any other. Any model magpie serves can be set (`provider.SetCodexSubagentModel`, #1633): a task handed as text (a lead magpie served on a chat provider, or multi-agent V1) is read by any model. A request carrying a task the ChatGPT backend sealed (`sealedTaskIn`: a sealed agent message that isn't a `MESSAGE`, which `withoutSealedMessages` leaves out) is put only on a ChatGPT account's model; set to another, the subagent stays on the model asked for, which the sealed gate below handles as with nothing set. When magpie doesn't serve the model set now, or a gateway key held to some models may not use it, the subagent goes on the model asked for too. The route trace keeps both models and the reason it stayed (`Route.Subagent`), and the Routing page's `kindWhy` says it. The lead's turns, titles and every other kind are never moved.- - With no model set for them, in magpie or in Codex's config (`[agents] default_subagent_model`, `[memories] extract_model`/`consolidation_model`, read by `agent.CodexSideSet`; a config it can't read counts as set), a Codex subagent or memory call on one of Codex's own bare models, made in a conversation whose own turns go on one of magpie's models, follows that model instead of going to the ChatGPT sign-in (`codexFollowTo` in [`codex_follow.go`](../../internal/gateway/codex_follow.go), cybercaius on Discord). The model is the parent thread's last own turn (`x-codex-parent-thread-id` or the turn metadata's parent), else its own thread's, else the last one by the gateway key (`codexLeads`, at most 512 threads), else, before any turn has come through magpie (Codex consolidates its memories as it starts), Codex's config `model` when it is one of magpie's (`codexSessionOf`, `TestCodexMemoriesBeforeAnyTurnFollowTheConfig`). A memory call is read after the turn it was started with (`codexMemorySession`, above). A sealed task, a model magpie can't resolve now or one a gateway key may not use leaves the call as it came; a subagent's trace keeps both models in `Route.Subagent`. Codex's auto-review follows the session only when `settings.CodexAutoReview` is `session` (`settings.CodexAutoReviewSession`): `codexcat` then has each of magpie's entries name itself as `auto_review_model_override`, and Codex's own entries keep OpenAI's, since codex-auto-review is free on a paid ChatGPT sign-in (#1593). On a Free plan it isn't (cybercaius measured it on Discord), so with the setting unset and Codex's live sign-in on the `free` plan (`codexcat.AutoReviewModel`, the plan from `provider.CodexSignInPlan`), it counts as `session` (`TestCodexAutoReviewOnAFreePlan`).+ - With no model set for them in Codex's config (`[memories] extract_model`/`consolidation_model`, read by `agent.CodexSideSet`; a config it can't read counts as set), a Codex memory call on one of Codex's own bare models, made in a conversation whose own turns go on one of magpie's models, follows that model instead of going to the ChatGPT sign-in (`codexFollowTo` in [`codex_follow.go`](../../internal/gateway/codex_follow.go), cybercaius on Discord). The model is the parent thread's last own turn (`x-codex-parent-thread-id` or the turn metadata's parent), else its own thread's, else the last one by the gateway key (`codexLeads`, at most 512 threads), else, before any turn has come through magpie (Codex consolidates its memories as it starts), Codex's config `model` when it is one of magpie's (`servedSession`, `TestCodexMemoriesBeforeAnyTurnFollowTheConfig`). A memory call is read after the turn it was started with (`codexMemorySession`, above). A model magpie can't resolve now or one a gateway key may not use leaves the call as it came. A subagent never follows: Codex starts a spawn that names no model on its lead's (codex-rs `child_config.rs`), so a bare model in a subagent's request under a lead on magpie's was named (spawn_agent's `model`, `[agents] default_subagent_model` or a role's config), and with no model set for Codex's subagents in magpie it goes on that model (`TestCodexSubagentKeepsTheModelItWasNamed`, mengxiao on Discord); only `settings.CodexSubagentModel` moves it (`codexSubagentPick`). Codex's auto-review follows the session only when `settings.CodexAutoReview` is `session` (`settings.CodexAutoReviewSession`): `codexcat` then has each of magpie's entries name itself as `auto_review_model_override`, and Codex's own entries keep OpenAI's, since codex-auto-review is free on a paid ChatGPT sign-in (#1593). On a Free plan it isn't (cybercaius measured it on Discord), so with the setting unset and Codex's live sign-in on the `free` plan (`codexcat.AutoReviewModel`, the plan from `provider.CodexSignInPlan`), it counts as `session` (`TestCodexAutoReviewOnAFreePlan`).- A model set for Claude Desktop's subagents (`settings.DesktopSubagentModel`, the Agents page's Claude Desktop "subagent model") is put on a subagent's turn in Desktop's Code tab or Cowork after `desktopTurn`, the tiers and the groups, whatever model its lead or its tier asked for (`desktopSubagentPick` in [`desktop_subagent.go`](../../internal/gateway/desktop_subagent.go)). Desktop runs its Claude Code with `CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1`, under which Claude Code ignores the `CLAUDE_CODE_SUBAGENT_MODEL` magpie writes into its settings (see [agent wiring](agent-wiring.md)). A subagent's request is one with `x-claude-code-agent-id` (`subagentOf`) from `claude-desktop`, and only one that offers tools is its turn: Claude Code's tool-less helper calls inside a subagent, on the haiku tier's model, stay where they are, and so do the lead's turns, terminal Claude Code's and every other agent's. The model set must be served by its exact id (`provider.DesktopSubagentUnserved`: `Resolve` takes any model name under a provider that is on), enabled, and allowed to a gateway key held to some models (`groupAllowed` for a group); otherwise the subagent goes on the model asked for and the route trace says why (`Route.Subagent`, said on the Routing page by `subagentWhy`, its `Kind` staying empty). `Route.Model` and the ledger's `Requested` keep the model the subagent asked for. `count_tokens` counts on the model set the same way (`countTokens`). The setting is read on each request, so a change needs no restart of Desktop, and a provider renamed since it was set is read by its new id (`RenamedRef`). A Desktop on another computer that reaches magpie with a named gateway key is read as Claude Code (`agentOf`), so none of Desktop's routing, this included, applies to it. A subagent's turn, moved or not, is never kept as the session's model in `claude-desktop.model` (`desktopTurn`'s `bySubagent`): a subagent on the opus tier's model took the session's place until the lead's next turn, and Desktop's titles asked for meanwhile went to it.- Desktop's subagent effort (`settings.DesktopSubagentEffort`, `desktopSubagentEffort` in [`desktop_subagent.go`](../../internal/gateway/desktop_subagent.go)) applies to the same subagent tool turns, independently of model replacement. Empty leaves requests unchanged. Set, it takes the place of a request model's effort suffix before the existing attempt-level effort fitting: a member fixed at an effort wins, then this pick fitted within group/model levels, then the turn's or request's effort. `withFixedEffort` can enable reasoning when it was disabled, or disable it with `none` on a model that supports that level; a reasonless model is still sent no reasoning fields. `countTokens` applies the pick after restoring any unmasked body. `Route.Effort` keeps the incoming effort, `Route.SubagentEffort` the configured pick, and each try and usage record the level actually sent; the Routing story explains the configured pick even when no model was replaced. A nonempty model pick already classifies the turn, so the effort check reuses it; empty effort costs only a held-settings read. The next request takes a changed or cleared effort without a Desktop restart.- Every Claude Code subagent's turn, Desktop's or a terminal's, moved or not, keeps its `x-claude-code-agent-id` in `Route.SubagentID` (`subagentTurnOf` in [`desktop_subagent.go`](../../internal/gateway/desktop_subagent.go)): a request with the id that offers tools and names no kind, the turn the two settings above take. Claude Code 2.1.295 sends the id from any agent context but the main one; its `x-claude-code-request-class` and `x-claude-code-agent-type` hints go only to a first-party base URL or with `CLAUDE_CODE_GATEWAY_HINT_HEADERS`, so magpie doesn't get them. A Desktop pick or effort that found the turn is trusted, so the body isn't decoded again, and a request without the id isn't decoded at all. The Routing page tags it as Codex's subagents are (`tagKind` in [`routing.js`](../../internal/gui/assets/routing.js)): in the request list, the story, the replay and the tray panel, with the reason `kindWhy` gives Codex's. `Kind` stays empty, so its purpose stays unmarked in the Purpose filter, as in the ledger and on the Usage page. The ledger's `Subagent` keeps the same id, and also marks a subagent's tool-less helper calls, which aren't tagged. A route recorded before this has no id and no tag.diff --git a/internal/agent/codex.go b/internal/agent/codex.goindex 4be12e0b2..4f101d5ec 100644--- a/internal/agent/codex.go+++ b/internal/agent/codex.go@@ -2298,8 +2298,8 @@ func CodexSideModel() string {}// CodexSideSet says whether this machine's Codex config names the model-// for a side call itself: "subagent" for [agents] default_subagent_model,-// "memories" for [memories] extract_model or consolidation_model. A config+// for a side call itself: "memories" for [memories] extract_model or+// consolidation_model. A config// that can't be read counts as set, so the gateway leaves the call as Codex// sent it (gateway.CodexSideSet).func CodexSideSet(which string) bool {@@ -2309,9 +2309,6 @@ func CodexSideSet(which string) bool {}path := filepath.Join(here(home).codexHome(), "config.toml")switch which {- case "subagent":- t, err := edit.GetTOMLTable(path, "agents")- return err != nil || t["default_subagent_model"] != ""case "memories":t, err := edit.GetTOMLTable(path, "memories")return err != nil || t["extract_model"] != "" || t["consolidation_model"] != ""diff --git a/internal/agent/codex_side_test.go b/internal/agent/codex_side_test.goindex 71bc44fd2..b40743a27 100644--- a/internal/agent/codex_side_test.go+++ b/internal/agent/codex_side_test.go@@ -40,20 +40,21 @@ func TestCodexSideModel(t *testing.T) {}// CodexSideSet says whether Codex's config names the model for its-// subagents or its memories itself, the gateway then leaving those calls-// as Codex sent them; a config it can't read counts as naming one.+// memories itself, the gateway then leaving those calls as Codex sent+// them; a config it can't read counts as naming one. Its subagents' model+// isn't asked: the gateway leaves a subagent on the model it was named.func TestCodexSideSet(t *testing.T) {home, _ := codexHome(t, `{}`, "model = \"gpt-a\"\n")- if CodexSideSet("subagent") || CodexSideSet("memories") {+ if CodexSideSet("memories") {t.Fatal("nothing set")}config := filepath.Join(home, ".codex", "config.toml")os.WriteFile(config, []byte("[agents]\ndefault_subagent_model = \"gpt-b\"\n[memories]\nextract_model = \"gpt-c\"\n"), 0o644)- if !CodexSideSet("subagent") || !CodexSideSet("memories") {- t.Fatal("both set")+ if !CodexSideSet("memories") {+ t.Fatal("set")}os.WriteFile(config, []byte("[agents]\ndefault_subagent_model = \"gpt-b\"\n"), 0o644)- if !CodexSideSet("subagent") || CodexSideSet("memories") {+ if CodexSideSet("memories") {t.Fatal("the subagents' alone")}os.WriteFile(config, []byte("[agents\n"), 0o644)diff --git a/internal/gateway/codex_backend.go b/internal/gateway/codex_backend.goindex 7e05e55ee..dce76d177 100644--- a/internal/gateway/codex_backend.go+++ b/internal/gateway/codex_backend.go@@ -130,18 +130,15 @@ func (s *Server) codexBackend(w http.ResponseWriter, r *http.Request) {// a subagent on one of Codex's own models, put on the model// set for Codex's subagents, a ChatGPT account's in magpie;// the request on the model asked for when it can't be, the- // trace saying why (codexUpstreamOn, serve). One with nothing- // set for it, a subagent's or a memory call,- // on the model its conversation is on when that is one of- // magpie's, not on the ChatGPT sign-in (codexFollowTo)+ // trace saying why (codexUpstreamOn, serve). With none set,+ // it stays on the model it was named (codexFollowTo). A+ // memory call with nothing set for it goes on the model its+ // conversation is on when that is one of magpie's, not on+ // the ChatGPT sign-in (codexFollowTo)if !strings.Contains(model, "/") {pick := codexSubagentPick(r, agentOf(r), kind, model, body)- if to := s.codexFollowTo(r, agentOf(r), kind, model, body); to != "" && pick == nil {- if usage.PurposeOf(kind) == "kind:collab_spawn" {- pick = &SubagentPick{Asked: model, To: to}- } else {- body, model = withModel(body, to), to- }+ if to := s.codexFollowTo(r, agentOf(r), kind, model, body); to != "" {+ body, model = withModel(body, to), to}r = withSubagentPick(r, pick)if pick.Moved() {diff --git a/internal/gateway/codex_follow.go b/internal/gateway/codex_follow.goindex 605617291..31bbc5f7a 100644--- a/internal/gateway/codex_follow.go+++ b/internal/gateway/codex_follow.go@@ -8,28 +8,25 @@ import ("github.com/yetone/magpie/internal/access""github.com/yetone/magpie/internal/provider"- "github.com/yetone/magpie/internal/usage")// Codex's side calls ask for one of Codex's own models by its bare name,-// whatever the conversation is on: a subagent goes on the model its lead-// names in spawn_agent (Codex lists its own first), its memories are-// written on gpt-5.6-luna and gpt-5.6-terra, its auto-review runs on+// whatever the conversation is on: its memories are written on+// gpt-5.6-luna and gpt-5.6-terra, its auto-review runs on// codex-auto-review. With the conversation on one of magpie's models// beside Codex's ChatGPT sign-in, each of those went to that ChatGPT// account rather than where the user had routed Codex (cybercaius on-// Discord). With nothing set for them, a subagent and the memories follow-// the session: they go on the model the conversation's own turns go on,-// when that is one of magpie's (codexSessionOf; a memory call, started-// with a turn, after that turn: codexMemorySession), as the app's titles,+// Discord). With nothing set for them, the memories follow the session:+// they go on the model the conversation's own turns go on, when that is+// one of magpie's (servedSession; started with a turn, after that turn:+// codexMemorySession), as the app's titles,// descriptions, summaries and composer predictions do (codexSideTo). The auto-review follows it when set to// (settings.CodexAutoReviewSession, which codexcat writes into each of// magpie's entries); left to Codex it stays on codex-auto-review, which a// ChatGPT sign-in runs free (#1593).// CodexSideSet says whether Codex's own config names the model for a side-// call ("subagent": [agents] default_subagent_model; "memories": [memories]-// extract_model or consolidation_model), true when the config can't be+// call ("memories": [memories] extract_model or consolidation_model), true when the config can't be// read; nil leaves every such call as Codex sent it (agent.CodexSideSet).var CodexSideSet func(which string) bool@@ -85,17 +82,12 @@ func (l *codexLeads) saw(r *http.Request, kind, model string) {l.thread[thread] = codexLead{model: model, at: time.Now()}}-// of is the model the conversation a side call was made for is on: its-// parent thread's (a subagent's lead, a review's conversation), the-// thread it was forked from (a composer prediction), else its own-// thread's, else the one this key's Codex last had a turn on.-func (l *codexLeads) of(r *http.Request, body []byte) string {- model, _, _ := l.lookup(r, body)- return model-}--// lookup is of, with whether the call's conversation was one magpie has-// seen a turn of, and when this key's last turn came when it wasn't.+// lookup is the model the conversation a side call was made for is on:+// its parent thread's (a review's conversation), the thread it was forked+// from (a composer prediction), else its own thread's, else the one this+// key's Codex last had a turn on; with whether the call's conversation was+// one magpie has seen a turn of, and when this key's last turn came when+// it wasn't.func (l *codexLeads) lookup(r *http.Request, body []byte) (model string, tied bool, at time.Time) {meta := requestSessionMetadata(r.Header, body)parent := meta.Parent@@ -173,66 +165,53 @@ func (s *Server) codexFollowTo(r *http.Request, agent, kind, asked string, bodyif agent != "codex" && !fromCodex(r.Header) || asked == "" || strings.Contains(asked, "/") {return ""}- which := ""- switch {- case usage.PurposeOf(kind) == "kind:collab_spawn":- // a task the ChatGPT backend sealed opens only on a ChatGPT- // account (codexSubagentPick)- if provider.CodexSubagentModel() != "" || sealedTaskIn(body) {- return ""- }- which = "subagent"- case isMemoryKind(kind):- which = "memories"- default:+ // A subagent isn't one of them (mengxiao on Discord): Codex starts a+ // spawn that names no model on its lead's (codex-rs core/src/agent/+ // child_config.rs, build_agent_spawn_config), so one of Codex's bare+ // models in a subagent's request under a lead on magpie's was named,+ // in spawn_agent's model, in [agents] default_subagent_model or in a+ // role's config. Moving it onto the lead's model overrode the user's+ // own pick ("use GPT-6.1 Terra for the subagent"); only the model set+ // for Codex's subagents in magpie moves one (codexSubagentPick).+ if !isMemoryKind(kind) {return ""}// the user's own pick in Codex's config is kept; read before the// session, which a memory call may wait on- if CodexSideSet == nil || CodexSideSet(which) {+ if CodexSideSet == nil || CodexSideSet("memories") {return ""}- var to string- if which == "memories" {- // started with a turn, maybe the first after a switch- to = s.codexMemorySession(r, body)- } else {- to = s.codexSessionOf(r, body)- }+ // started with a turn, maybe the first after a switch+ to := s.codexMemorySession(r, body)if to == "" || to == asked {return ""}return to}-// codexSessionOf is the model of magpie's a Codex side call with nothing-// set for it follows: the one its conversation's own turns go on-// (codexLeads), else, before any turn of Codex's has come through magpie-// (Codex consolidates its memories as it starts), the model Codex's config-// is set to when it is one of magpie's (CodexSideModel). cybercaius on-// Discord: with the model picked in the Codex app, not its config, the-// memories went to ChatGPT, and so did the titles, descriptions and-// composer predictions, which followed the config alone. "" when the-// conversation is on one of Codex's own models, or magpie can't serve its-// model now (turned off, gone, or one the caller's key is held from).-func (s *Server) codexSessionOf(r *http.Request, body []byte) string {- return s.servedSession(r, s.codexLeads.of(r, body))-}--// codexSideSession is codexSessionOf for the Codex app's own side turns,-// read after the turn they were started beside (codexLeads.sideOf).+// codexSideSession is the model of magpie's the Codex app's own side+// turns follow, read after the turn they were started beside+// (codexLeads.sideOf, servedSession).func (s *Server) codexSideSession(r *http.Request, body []byte) string {return s.servedSession(r, s.codexLeads.sideOf(r, body, false))}-// codexMemorySession is codexSessionOf for Codex's memory calls, read+// codexMemorySession is codexSideSession for Codex's memory calls, read// after the turn they were started with (codexLeads.sideOf, beside).func (s *Server) codexMemorySession(r *http.Request, body []byte) string {return s.servedSession(r, s.codexLeads.sideOf(r, body, true))}-// servedSession is to, else the model in Codex's config, when magpie can-// serve it to this caller now; "" otherwise.+// servedSession is to, the model a Codex side call's conversation's own+// turns go on (codexLeads), else, before any turn of Codex's has come+// through magpie (Codex consolidates its memories as it starts), the model+// Codex's config is set to (CodexSideModel), when magpie can serve it to+// this caller now. cybercaius on Discord: with the model picked in the+// Codex app, not its config, the memories went to ChatGPT, and so did the+// titles, descriptions and composer predictions, which followed the config+// alone. "" when the conversation is on one of Codex's own models, or+// magpie can't serve its model now (turned off, gone, or one the caller's+// key is held from).func (s *Server) servedSession(r *http.Request, to string) string {if to == "" && CodexSideModel != nil {to = CodexSideModel()diff --git a/internal/gateway/codex_follow_test.go b/internal/gateway/codex_follow_test.goindex b5d7a3ed5..7131b2d41 100644--- a/internal/gateway/codex_follow_test.go+++ b/internal/gateway/codex_follow_test.go@@ -32,22 +32,22 @@ func codexSide(t *testing.T, s *Server, kind, input string) {}}-// cybercaius on Discord: with Codex on a model routed through magpie, a-// subagent its lead put on one of Codex's own models, with no model set-// for subagents, went to the ChatGPT account. It follows the session now,-// and the trace says what it asked for.-func TestCodexSubagentFollowsTheSession(t *testing.T) {+// mengxiao on Discord: Codex's subagent model left "Same as the lead" in+// magpie, the user asked the lead for a subagent on GPT-6.1 Terra, and+// magpie put it on the lead's model all the same. Codex starts a spawn+// that names no model on its lead's, so a subagent asking for one of+// Codex's own models under a lead on magpie's was named that model: it+// goes on it, through the ChatGPT sign-in, and the trace marks no move.+func TestCodexSubagentKeepsTheModelItWasNamed(t *testing.T) {up, relay, s := codexFollowSetup(t, false)codexSide(t, s, "collab_spawn", plainTask)- if got := up.asked(); len(got) != 0 {+ if got := up.asked(); len(got) != 1 || got[0] != "gpt-5.5" {t.Fatalf("ChatGPT was asked for %v", got)}- reqs := relay.requests()- if len(reqs) != 2 || modelOf([]byte(reqs[1])) != "gpt-6-astra" {+ if reqs := relay.requests(); len(reqs) != 1 {t.Fatalf("the relay got %d requests: %v", len(reqs), reqs)}- r := lastRoute(s)- if r.Subagent == nil || *r.Subagent != (SubagentPick{Asked: "gpt-5.5", To: "third/gpt-6-astra"}) {+ if r := lastRoute(s); r.Subagent != nil {t.Fatalf("trace: model %q subagent %+v", r.Model, r.Subagent)}}@@ -122,7 +122,7 @@ func codexAppSide(t *testing.T, s *Server, source, session string) {// cybercaius on Discord: with the conversation put on one of magpie's// models in the Codex app, and nothing in Codex's config, the app's thread// titles, descriptions and composer predictions still went to ChatGPT on-// its own models. They follow the session now, as the subagents do.+// its own models. They follow the session now, as the memories do.func TestCodexAppSideTurnsFollowTheSession(t *testing.T) {up, relay, s := codexFollowSetup(t, false)was := CodexSideModeldiff --git a/internal/gateway/codex_titles.go b/internal/gateway/codex_titles.goindex b117da48d..492972786 100644--- a/internal/gateway/codex_titles.go+++ b/internal/gateway/codex_titles.go@@ -52,7 +52,7 @@ var CodexSideModel func() string// models picked beside the ChatGPT sign-in every one of them went to// ChatGPT and spent its allowance, and failed with it once it was used up// (atom_Ray on X: an hour on a third-party model took 2% of the 5-hour-// window). Those go on the session's model (session: Server.codexSessionOf),+// window). Those go on the session's model (session: Server.codexSideSession),// as the conversation's turns do; on Codex's own, as Codex sent them.func codexSideTo(body []byte, ours bool, session func() string) string {m := modelOf(body)