A model disabled for every request (#1867) still drew in its provider's
editor as an ordinary chip, ticked or served, so it read as one agents
get while the gateway refused it. /api/providers now gives each model
the pattern that turns it off (provider.DisabledPattern, the list read
once per provider), and its chip is dimmed with a "disabled" badge and a
title naming the pattern and where it is set. Every language.
Paid for in the core budget by moving six trailing comments onto lines
of their own (whole-line comments aren't counted), no raise.
Run (mote, at this tree):
- go test ./internal/gui -run 'TestProviderInfoSaysADisabledModel|TestCoreScriptBudget|TestI18n|TestCSS': ok
- go test ./internal/provider -run TestDisabled: ok
- disabled-model-chips.test.cjs, Chromium and WebKit, en zh zh-TW ja de: 12 pass
Broken by hand, each red, then put back:
- providers.go not setting Disabled: TestProviderInfoSaysADisabledModel red.
- the chip not reading m.disabled: disabled-model-chips 12 of 12 red.
Not tried: the real app window; the rest of the GUI suite.