You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(desktop): setting a custom relay as default fails without model selection guidance #5865
Switching the default connection from custom relay A to custom relay B fails when B has no enabled chat model. Desktop only shows “设为默认失败 / 出现错误,请稍后重试。” (failed to set default / please try again), without explaining that a model must be selected. Retrying cannot resolve this configuration state.
Expected: setting a connection as default should guide the user to a usable model. A single enabled chat model can switch directly; multiple enabled models should prompt for a choice; when none are enabled, offer a model selection and an explicit “Enable and set as default” action. An empty inventory should offer model discovery or manual entry. Cancellation or a rejected save should retain the original default connection.
How to reproduce
Configure custom OpenAI Responses-compatible relays A and B in Desktop.
Set A as the current default with an enabled chat model.
Leave B with no enabled models (an empty inventory also reproduces this).
Open B’s connection settings and click “Set as default”.
Observe the generic error toast. Repeating the action produces the same error.
Environment
Maka: 0.2.0, dev build 28cc4e647
Surface: Desktop
OS: macOS / Darwin 24.6.0, arm64
Electron: 43.4.1
Node.js: 24.18.1
Locale: zh-CN
Runtime Host: ready; no process exits recorded
Logs, screenshots, or additional context
Error occurred in handler for 'connections:setDefault':
Error: Connection has no enabled model: openai-responses-compatible-2
at defaultTargetForConnection (.../apps/desktop/dist/main/main.js:19570:23)
The current action reaches defaultTargetForConnection without a usable model. The UI turns this expected configuration condition into a generic failure. Model discovery during this flow should not silently enable the first returned model; enabling the selected model and changing the default should be one atomic operation.
Activity
liuxiaocs7 commentedon Sep 30, 2026
take
fix(desktop): guide model selection when changing the default connect…