timonwong (#3911, also on Discord #feedback): with a group of a/x and
b/x, unchecking x in provider a's model list struck a/x on the Routing
page, but group/<id> still sent requests to a. membersOff resolved each
member through resolveIn, whose provider/model step takes any model of
a provider that is on, so that a request can name a model its list
lacks.
membersOff now skips a member whose provider has picks and whose served
models lack it (unpicked), as timonwong's fork did (38615ca9). A
provider with no picks still routes a model its list lacks (#2642), a
decision model (never in the catalog) is still a decision group's, and
a request naming a/x itself still reaches a. Every route mode goes
through membersOff (ordered, weighted, rotate, manual, nested groups,
found groups, count_tokens' group lookup), so all of them get it. The
entries map is built only when a member's provider has picks.
The Routing card's memberInfo (gui/groups.go) used Resolve too, so a
manual group's pick row showed an unchecked member as ready; it now
asks provider.ResolveRoute, the same check, and the group is not ready
when its picked member was unchecked.
Tests: group_model_pick_test.go (ordered, weight, rotate; nested; a/x
named directly still served; checked again comes back; a decision
group keeps a picked decider) and gui's
TestGroupMemberUncheckedInItsProvider.
Run (mote, at this tree plus the next commit):
- Red on c30e2a645 with only the tests: the three route modes, the
nested case and the GUI test fail ("from ka"); direct and checked
again pass, as they should.
- Broken by hand: without len(p.Models) > 0, seven gateway tests go
red (TestNativeCompactionWriterThroughAGroupWhoseListLacksTheModel,
TestCodexSpentMovesToNextGroupMember, TestWeightedGroupGivesALowGroupItsShare,
TestVideoGroupMovesOnToTheNextMember, TestPolicyRefusalMovesToNextGroupMember,
TestCodexSealedAgentHandoffGoesToGroupsChatGPTAccount,
TestClaudeClientCacheGroupKeyKeepsMarks); without !DecidesModel,
TestDecisionGroupKeepsAPickedDecider goes red.
- go vet (darwin, GOOS=linux, GOOS=windows) on provider, gateway, gui:
clean; gofmt -l clean.
- go test -tags nogui -timeout 45m ./...: 76 packages ok; one red,
internal/plugin TestGatewayHookMixedPiPackage "starting plugins:
context deadline exceeded" at load ~134 (#2865, filed); it passes
alone on the same tree (26s).
Not tried: the real GUI app with a real provider; no GUI JS changed,
so the Playwright suite was not run.
Co-authored-by: timonwong <timon86.wang@gmail.com>