Skip to content

bug(desktop): setting a custom relay as default fails without model selection guidance #5865

Closed

Description

@liuxiaocs7

What happened

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

  1. Configure custom OpenAI Responses-compatible relays A and B in Desktop.
  2. Set A as the current default with an enabled chat model.
  3. Leave B with no enabled models (an empty inventory also reproduces this).
  4. Open B’s connection settings and click “Set as default”.
  5. 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.

Prepared with Codex on behalf of @liuxiaocs7.

Activity

  1. added
    bug
    on Sep 30, 2026
  2. liuxiaocs7 commented on Sep 30, 2026

    @liuxiaocs7
    MemberAuthor

    take

  3. added a commit that references this issue on Oct 5, 2026
    3597abe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions