Commit Graph
1 Commits
Author SHA1 Message Date
yetone 1e15a7a3b9 agents: Codex's memories and subagent model rows name the provider, as the rows beside them do (nb5p)
nb5p on Discord: in Codex's sheet, "Codex composer predictions" and
"Codex auto-review model" showed "GPT-6 Luna · MyGateway" while "Codex
memories model" showed "GPT-6 Luna" alone.

Cause: the sheet's rows draw from two sources. Predictions, titles,
descriptions and auto-review pick from Settings' titleModels and say
`${name} · ${providerName}` (namedIn). Memories and the subagent model are
Codex's own agent fields; their rows said the option's label only
(opt?.label in renderCodexMemories, codexSubSaid's name in
renderCodexSubagentModel), and an option keeps its provider in `group`,
not in the label. The API already sends it (internal/agent route.go
viaMagpie and codex.go's subagent options set Group: e.Provider.Name);
nothing was missing server side.

Fix: optNamed(opt, value) says an agent field's pick as "Label · Group",
a routing group (Group "Routing groups") by its name alone, and a value
no option has as it is. Both field rows use it. The card's subagent
square tooltip keeps its wording (its pinned text in
codex-subagent-model is unchanged); the memories square was removed
earlier. Codex's own models say "· OpenAI" (their group).

app.js stays in its budget, no raise: the helper is one line and
renderCodexMemories' comment was cut to two lines (1,316,414 bytes at
5d955a4d4, budget 1,316,781).

Test: internal/gui/tests/codex-sheet-providers.test.cjs, Chromium and
WebKit, en/zh/zh-TW/ja/de, 440px and 1100px: all four model rows in
Codex's sheet read "GPT-6 Luna · MyGateway" and fit; a routing group
reads "cheap", a value with no option reads as is.

Run, at 5d955a4d4 plus this change:
- Chromium (mote-run, BROWSER=chromium): codex-sheet-providers,
  codex-memories-settings, codex-memories, codex-subagent-model,
  codex-auto-review, codex-subagents-lead, desktop-subagent-model,
  codex-start-model-field, agent-prefs, codex-predictions, i18n-keys:
  91 tests, 90 pass, 1 fail: i18n-keys "a plugin's words are its own"
  ("Unmarked" in search_calls_test.go), red on main, #4524.
- WebKit (wsl-run, magpie-desktop; WebKit launch times out on mote): the
  same files, 91 tests, 83 pass, 8 fail, all red on an unmodified main
  b1a1b950f too: agent-prefs en 440 "fullContextRow not in Settings"
  (filed #4552), codex-predictions "picking a model scrolled the page"
  (#2624, #4120), i18n-keys (#4524). codex-sheet-providers 11 of 11.
- Earlier, at d0a61b856, also gui-zh-tw, gui-ja, gui-de in Chromium:
  green (their WebKit cases timed out launching on mote).
- go test -run TestCoreScriptBudget ./internal/gui (mote): ok.
- node --check app.js: ok.

Broken by hand: with app.js at main, codex-sheet-providers is red 10 of
11 in Chromium (codexMemoriesPick: 'GPT-6 Luna' !== 'GPT-6 Luna ·
MyGateway'); with only the subagent row put back, 10 of 11 red on
codexSubagentModelPick the same way. The routing-group case passes on
both, as it should.

Not run: the whole GUI suite (no new API, selector or breakpoint),
go vet / go test ./... (no Go change). Not tried in the real app with
nb5p's MyGateway provider.
2026-10-31 17:18:44 +08:00