fix(desktop): guide model selection when changing the default connection #5866
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 414 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.361
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5866"
general
weight: 0.35
hqhq1025
Summary
Fixes #5865
Setting a custom relay with no enabled chat model as default currently produces a generic error. The action now guides the user through choosing a model:
Production components/styles rendered in Chromium with a synthetic connection and stubbed bridge:
| Before | After |
| --- | --- |
| !Generic failure when no model is enabled | !Explicitly enable Model Beta and set the connection as default |
<details>
<summary>Empty model inventory</summary>
!Fetch models or add one manually
</details>
Verification
8223aeba7passed, including full Storybook smoke, Desktop e2e, Runtime Host tests, geometry checks, and CLI package validation.d6876d708:npm run build,npm run typecheck, affected Desktop/Host/storage suites (178 passed), renderer architecture and protocol-epoch checks passed.npm testrun was not fully green: the remaining Host implementation-child-patch timeout also reproduced on the unmodified baseline. Python eval tests passed under Python 3.12 (94 run, 13 skipped).Compatibility
Bump Runtime Host compatibility epoch 199 → 200 for atomic enable/default selection and discovery that preserves the enabled-model selection. Desktop and Runtime Host must be upgraded together.
AI use
Tool(s) and scope: Codex assisted with diagnosis, implementation, tests, visual verification, and this submission on behalf of @liuxiaocs7. The implementation commit includes
Generated-by: Codex; retain it when squashing.Checklist
Does this PR entail a change in behavior?