Files
magpie/internal/gui
yetone efcf8d9c0c routing: a key's row is named by its provider, the key after it (iamleehom on X)
iamleehom on X: "为什么路由中不显示供应商名称了?" Two OpenAI-compatible
providers, each with unnamed keys, showed only "sk-4…ab10" and
"sk-a…eb0c" on the Routing stage, with nothing saying which provider
each belongs to.

Cause: 83545a5d8's twin rule added the provider's name only when two
providers' keys had the same name. A masked key always differs from
every other one, so the rule never fired for unnamed keys, and a named
key unique across providers lost its provider too.

Change (plugins/routing/client.js, routing.css):
- A key's stage row is headed by a new span.prov with its provider's
  name. The key's name follows in span.who, muted, and gives up room
  first (flex-shrink stays on .who). .who keeps the key's name, so every
  test and lookup that finds a row by it is unchanged.
- The twin rule's sub-line is no longer needed for key rows; the plan
  name stays there.
- The answered card says "Provider · key" (where()).
- Rows inside a provider's fold are unchanged: the fold heading already
  names the provider once.

Not changed, filed: the request list rows and the decision lines still
name an unnamed key by its masked key alone (#6982).

Tests:
- routing-key-provider.test.cjs (new): the reporter's case, two
  providers with unnamed keys. Rows read [Relay East, sk-4…ab10] and
  [Relay West, sk-a…eb0c], the provider's name is not cut at 1100px,
  the card reads "Relay East · sk-4…ab10" from a live long-poll, and a
  fold's rows keep only the key under a heading naming the provider.
  Every language, both engines, 1100px and 440px.
- routing-twin-keys.test.cjs: re-derived to [prov, who, sub].

Run:
- Broken by hand: routing-key-provider at base 3f4372cc9's client.js on
  Windows, chromium: every non-fold subtest red (null .prov; the card
  read "sk-4…ab10"). On mica at the first design: 42 red, 20 (folds)
  green.
- Screenshots (zh 1100px chromium, en 440px webkit, de 440px chromium)
  checked by eye: "Relay East sk-4…ab10" on each row, nothing overlaps.
- Windows (xiaomi-gpu, win-run, Node 22, Playwright 1.62.0, Chromium +
  WebKit), at 90aa5bc23 (this change on 3f4372cc9): the 324 GUI files
  the change can reach (every routing-*, i18n-keys, and every file that
  opens view=routing or uses .rt- or plugins/routing): 5911 tests, 5737
  pass, 173 fail, 1 cancelled, ~59 min, beside another session's Go
  builds. The 39 red files run again side by side at base 3f4372cc9 and
  at the change (concurrency 4): 155 vs 161 fail of 774. The ones red
  on only one side are on both sides (WebKit timing, Usage,
  rest-try-now, Codex subagent); none reads a key row except
  routing-many-keys, which alone 3 times is red 1 of 3 at base (#5543)
  and green 3 of 3 with the change.
- After rebasing on origin/main 8e1534f5f, on Windows: routing-key-
  provider, routing-twin-keys, group-member-line, group-member-free,
  i18n-keys, routing-answered-still, routing-agents-apart,
  routing-keys-fold, routing-many-keys, routing-model-chip-whole: 296
  tests, 292 pass, 4 fail. Each red is red the same at origin/main
  3126b0bac on the same box: i18n-keys "a plugin's words are its own"
  (#6877), routing-many-keys chromium en (#5543), and
  routing-model-chip-whole en 1600px live in both engines (#6981, filed
  now).
- mica: go test ./internal/gui/ -run 'Budget|Compress|Revalidate|Plugin'
  ok.

Not run: the whole GUI suite at the pushed head (mote and mica were
busy, and the earlier whole-suite run on Windows was stopped because
its tree was stale); the real app; the reporter's own providers.

Reported-by: iamleehom (X)
2026-11-17 21:15:47 +08:00
..
…
…
…