Files
magpie/internal/gui
yetone f1f34d624f gui: a model's key tag is drawn from keyrates.js, back under the core budget
92e760f3d put keysTag in app.js and took the core's scripts to 1,269,382
bytes of code, 421 over coreScriptBudget (1,268,961), so
TestCoreScriptBudget was red on main from it. The full suite at that
head on mica found it; the targeted run before the push did not include
the budget test.

The server sends a model's keys only for a provider with two or more keys
on, which is when keyrates.js is loaded already. keysTag moves there,
unchanged, and renderModels imports the file for a chip that has keys,
appending the tag when it arrives. The core is 1,268,954 now, 7 under,
with no raise.

Run (mica, at this tree on 8ce32d700):
- go test -tags nogui -run 'TestCoreScriptBudget|TestAppScriptBudget|
  TestModelSaysItsKeys|TestModelKeysCapped' ./internal/gui: ok
- GUI model-key-tag, model-same-name-tell, i18n-keys, key-price-rate,
  provider-price-rate, old-webkit (both engines, every language, 420px):
  74 of 76; the two reds are old-webkit's headerpresets.js list (#6030)
  and app.css :has() (#5919), both on main before this.
- gofmt -l: clean.

Not tried: the real app with a relay that lists models per key.
2026-11-14 10:07:21 +08:00
..
…
…
…