Skip to content

Bug: BYO "Provider model id" typed but not added is silently discarded — Save commits an empty model list #2679

Closed

Description

@yannickmonney

Problem

On the agent Credentials form (Bring your own credentials → Models), a model id typed into "Provider model id" but not explicitly committed (Enter or + Add model) is silently thrown away: typing alone never dirties the form, and when Save is enabled by an unrelated pending change, saving commits an empty model list — no error, no warning. The manual guide's own F19 steps ("fill Provider model id → Save") lose the value.

Current behaviour

Verified live (2026-07-12, main @ 5605bf5):

  1. Switch an external/coding agent's Credentials to BYO.
  2. Type claude-opus-4-20250514 into Provider model id; do not press Enter.
  3. Click Save (enabled by the credentials-mode change) → config persists with no models; the typed text vanishes. Committing via Enter/+ Add model works and persists correctly.

Code pointers

  • Agent editor Instructions/Credentials form — the BYO models list input (free-text + "+ Add model") under services/platform/app/features/agents/ (the pending input value is not treated as part of the form state)

Proposed change

Standard combobox hygiene: commit the pending text on blur/Save (or block Save with an inline "press Add model" hint while uncommitted text is present). Silently dropping typed input is the one wrong option.

Acceptance criteria

  • Typed-but-uncommitted model id is either auto-committed on Save/blur or Save is blocked with an inline message
  • Guide F19's literal steps (type → Save) persist the model after reload

Related: #2427 (closed — BYO model resolution).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions