Skip to content

feat(app): add edit provider button to manage models dialog#16295

Open
Finkyky wants to merge 5 commits intoanomalyco:devfrom
Finkyky:dev
Open

feat(app): add edit provider button to manage models dialog#16295
Finkyky wants to merge 5 commits intoanomalyco:devfrom
Finkyky:dev

Conversation

@Finkyky
Copy link

@Finkyky Finkyky commented Mar 6, 2026

Issue for this PR

Closes #16292

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The Manage Models dialog had no way to edit a provider after it was initially configured. Users had to delete and re-add the provider from scratch to change things like the base URL, API key, or model list.

This PR adds a pencil icon button next to providers that are editable. A provider is considered editable if it is a custom provider (configured via @ai-sdk/openai-compatible in config) or an API-key-based provider. Clicking the button opens the existing configuration dialog pre-filled with the current values. For custom providers the provider ID field is disabled to prevent breaking the config reference.

i18n keys were added for the edit dialog title and success toast messages across all supported locales.

How did you verify your code works?

  1. Added a custom provider via "Add Provider" — confirmed the edit button appears next to it in Manage Models
  2. Clicked edit — confirmed the form opens pre-filled with the correct name, base URL, models, and headers
  3. Changed a field and saved — confirmed the change persisted and the success toast showed the updated provider name
  4. Verified the provider ID field is disabled when editing (cannot be changed)
  5. Tested an API-key provider (e.g. Anthropic) — confirmed the edit button appears and opens the connect dialog
  6. Verified providers without an editable source (e.g. env) show no edit button

Screenshots / recordings

  1. before:
image 2. editor: image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@Finkyky Finkyky requested a review from adamdotdevin as a code owner March 6, 2026 06:39
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Mar 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: edit provider button to manage models dialog

1 participant