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(platform): an automation’s model picker says "No models found" when the model roster fails to load #4765
#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 maind08251809, 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
Severity: low. The free-text model ID still works, and no data is lost.
Found by: Review A (TALE-358), 2026-10-11 04:15 Zurich occurrence, by static reading. Not observed live, because the stack is blocked by the missing reservation.
Addendum at main363c476b5 (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.
Addendum 2 (Review A, TALE-358, 2026-10-13 00:15 Zurich occurrence): the same agent dialog shows secret-save refusals in English. maindf7cd70f7.
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.
Activity
yannickmonney commentedon Oct 12, 2026
Addendum at
main363c476b5(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
useProjectHarnessesand uses onlyrosterQuery.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:
project-agent-dialog.tsx:316-320);:356-362,agents.modelSearchEmpty);canSubmitneeds 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.yannickmonney commentedon Oct 12, 2026
Addendum 2 (Review A, TALE-358, 2026-10-13 00:15 Zurich occurrence): the same agent dialog shows secret-save refusals in English.
maindf7cd70f7.services/platform/app/features/projects/components/agent-secrets-field.tsx:124-128: when saving an agent secret fails, the toast title is the server'serror.data.messagewhenever there is one; the localizedagents.secrets.saveErroris only the fallback.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).Expected: map the agent-secret refusal codes (
invalidwith its reason,AGENT_SECRET_LIMIT,AGENT_SECRET_NOT_FOUND) to localized sentences, or validate the same limits in the form before saving, withmaxLengthon the description. KeepfailureDetailonly as the description of a generic title.This is static reading, verified at the cited lines. I didn't run it.
fix(platform): say when an automation's models fail to load
fix(platform): say when an automation's models fail to load