When a provider family exposes both an active personal Coding Plan and an active
Start Plan, the settings UI persists the user's explicit connection choice in
modelProviderFamilySelectedKeys. The runtime provider registry must project
that same choice. A model label alone is not sufficient because both
connections can expose GLM-5.3-Flash while requiring different provider ids
and credentials.
The broken sequence was:
User selects Start Plan
|
v
settings selectedKey = coding-plan:<start-plan-provider>
|
+--------------------> UI/session reconciliation targets Start Plan
|
`--------------------> registry resolver prefers Coding Plan by API key
|
v
switchModelConfig provider.notInRegistry
|
v
first send is rejected
coding-plan:builtin:zai-start-plan selects builtin:zai-start-plan.coding-plan:builtin:zai-coding-plan selects builtin:zai-coding-plan.coding-plan:builtin:bigmodel-start-plan selects
builtin:bigmodel-start-plan.coding-plan:builtin:bigmodel-coding-plan selects
builtin:bigmodel-coding-plan.provider.notInRegistry send failure becoming a visible
runtime-model-unavailable composer error.