Skip to content

bug(platform): an automation’s model picker says "No models found" when the model roster fails to load #4765

Closed

Description

@yannickmonney

Problem

#4761 added a model picker to an automation's LLM step, and a Use another model in all steps dialog. Both read the organization's model roster through chat/composer:listComposerModels. When that read fails, nothing on the page says so:

  • Model picker: the step's Model picker opens on "No models found".
  • Use another model in all steps: the With picker shows "No models found", and Use this model stays disabled with no reason given.

An author can conclude that the organization serves no models and type an ID by hand, or give up. Neither surface offers Try again.

Cause

All paths below are at main d08251809, in services/platform/app/features/automations/.

  • hooks/use-llm-model-options.ts:28-48: useProjectHarnesses(organizationId) → toModelOptions(roster.data?.models ?? []). It returns { options, loaded: roster.data !== undefined } and drops isError, error and refetch.
  • components/llm-model-field.tsx:44-62: SearchableSelect with emptyText={tProjects('agents.modelSearchEmpty')} ("No models found"). The loaded guard correctly holds back the "not listed" description, but a failed read looks the same as an empty roster.
  • components/llm-model-swap-dialog.tsx:51-105: the same options and empty text, with no error state.

Expected

  • Picker: show the failure in the picker or field description, such as "The models didn't load." with Try again (refetch), and keep Type a model that is not listed available.
  • Swap dialog: show the same alert in place of the With list, and leave Use this model disabled with that reason.

Regression: component tests with a failing listComposerModels read (500) for both surfaces. Each must show the alert and Try again, never "No models found", and recover after a successful retry.

Severity and owner

Activity

  1. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Addendum at main 363c476b5 (Review A, TALE-358, 2026-10-12 12:15 Zurich occurrence; static reading).

    The same failed roster read also blocks creating a project agent, with no reason given. The project agents tab reads the roster with useProjectHarnesses and uses only rosterQuery.data (services/platform/app/features/projects/components/project-agents-tab.tsx:61, :91-104). It never reads the query's error and offers no refetch.

    When that read fails, New agent opens with:

    • an empty Agent runtime select (project-agent-dialog.tsx:316-320);
    • a Model picker that says "No models found" (:356-362, agents.modelSearchEmpty);
    • a disabled Create button (canSubmit needs both values, :156).

    Nothing on the page says the list of runtimes and models couldn't be loaded, and there is no Try again.

    Expected: the fix this issue asks for in use-llm-model-options.ts, applied to this second consumer too: show a load error with Try again instead of empty pickers.

  2. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Addendum 2 (Review A, TALE-358, 2026-10-13 00:15 Zurich occurrence): the same agent dialog shows secret-save refusals in English. main df7cd70f7.

    • services/platform/app/features/projects/components/agent-secrets-field.tsx:124-128: when saving an agent secret fails, the toast title is the server's error.data.message whenever there is one; the localized agents.secrets.saveError is only the fallback.
    • The server's messages are English sentences, for example "Description exceeds {N} characters." (backend/domains/agent_secrets/service.ts:72-78), the name and value validation reasons (:58-68) and the per-organization limit (AGENT_SECRET_LIMIT, :101-104).
    • German and French users get these English sentences as the toast title, and the toast never names the field.

    Expected: map the agent-secret refusal codes (invalid with its reason, AGENT_SECRET_LIMIT, AGENT_SECRET_NOT_FOUND) to localized sentences, or validate the same limits in the form before saving, with maxLength on the description. Keep failureDetail only as the description of a generic title.

    This is static reading, verified at the cited lines. I didn't run it.

  3. added
    agent-ready
    on Oct 29, 2026
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

    agent-readybugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions