Skip to content

UI allows message submission before LLM providers are loaded, causing failuresΒ #1744

@tomkis

Description

@tomkis

Pre-requisities

  • I am using the newest version of the platform (agentstack version shows that CLI and platform are the same version, and there is no newer version available)

Describe the bug
When the agent run page takes longer to load, specifically when fetching the list of LLM providers takes time, users can still submit messages before the LLM providers are fully loaded. This results in a failure because the fulfillments are incomplete (missing LLM provider selections).

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to an agent run page
  2. If the LLM provider list is still loading (slow network or slow API response)
  3. Submit a message before the LLM list finishes loading
  4. The message submission fails due to incomplete fulfillments

Expected behavior
The UI should prevent message submission until all required fulfillments (including LLM provider selections) are ready. The submit button should remain disabled until the LLM provider list has finished loading.

Additional context
The issue occurs in the agent run page UI where the isReady status doesn't account for the async LLM provider fetching. The form submission is enabled based on isReady which only checks for contextId and agentClient existence, but doesn't wait for matchedLLMProviders to be available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingui

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions