Skip to content

Preselect a model in the blank automation wizard #5214

Open

Description

@tale-review-bot

Part 2 of #5013 (creating an automation is more complicated than it should be), split off by the Lead's decision on #5013.

Where it is complicated

The Blank automation wizard's Model field starts empty (services/platform/app/features/automations/components/blank-automation-dialog.tsx:130) and is required (:228-229, together with name and instructions). Next stays disabled until a model is picked, even though it is the one field a new author is least able to answer. Checked at df6105cef08a78084439c029d5917611c4adcf54.

Change

Preselect the model the organization offers by default, the one the chat's model picker starts with, and keep it editable. With no usable model, the field stays empty and the dialog says how to get one, the same way the chat does after #5212.

Done when

  • A unit test in blank-automation-dialog.test.tsx proves the preselection: with models on offer, name and instructions alone enable Next.
  • The same test proves that with no model on offer, Next stays disabled and the hint shows.

Line: feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyimprovement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions