Skip to content

Settings: adding a Custom provider saves and closes the form before its key can be entered #748

Backlog

Description

@nlossing

Priority

P2 · Planned: limited in scope, has a way around it, or a missing feature

Evidence

On main at 320889f:

  • Leaving Name shows "Enter the provider name and its base URL." before Base can be filled.
  • Leaving Base saves the provider and reloads the page, without clicking Done.
  • The form closes before Key can be filled. The provider is saved without a key ("Endpoint saved").

Cause: autosave.js saves on every field change. Once Name and Base are filled, the save of a new provider reloads the page.

Way around: click Edit on the new provider, then enter the key.

Reproduction

  1. Settings → Model providers → Add → Custom.
  2. Name: type Test, press Tab.
  3. Base: type http://localhost:9/v1, press Tab.

Expected

The form stays open until Done, which saves Name, Base and the optional Key together.

Acceptance

  • Leaving Name, Base or Key in a new Custom provider saves nothing and does not reload the page
  • Leaving Name while Base is empty shows no error
  • Done saves Name, Base and Key together
  • Done without a key still saves the provider
  • Done with Name or Base empty shows the error and keeps what was typed
  • A UI test fills all three fields with Tab, clicks Done and finds the key saved

Related

#148

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions