Skip to content

feat: manage custom providers within model settings#18550

Open
neversaywanan wants to merge 2 commits intoanomalyco:devfrom
neversaywanan:dev
Open

feat: manage custom providers within model settings#18550
neversaywanan wants to merge 2 commits intoanomalyco:devfrom
neversaywanan:dev

Conversation

@neversaywanan
Copy link

Issue for this PR

Closes #18224

Type of change

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

What does this PR do?

Adds an edit flow for custom providers from the model settings page.

Custom providers now show an Edit action in Settings > Models, which opens the existing custom provider dialog in edit mode. The form is prefilled from the current provider config, keeps the provider ID locked while editing, and updates the saved config without failing duplicate ID validation for the provider being edited.

When models are removed during editing, they are moved into the provider blacklist so hidden models stay hidden instead of reappearing when the provider is saved again.

How did you verify your code works?

  • Ran bun test --preload ./happydom.ts ./src/components/dialog-custom-provider.test.ts from packages/app
  • Verified editing an existing provider does not fail duplicate ID validation
  • Verified removed models are added to the blacklist during edit saves
  • Verified blacklisted models stay hidden when the edit form is seeded
  • Manually tested the custom provider flow locally from the model settings page

Screenshots / recordings

TODO: add before/after screenshots or a short recording of editing a custom provider from Settings > Models

2026-03-22.02.30.07.mov

Checklist

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

Replace patched provider configs instead of deep-merging stale model keys, and refresh model/settings dialogs from the latest backend state. Add regression tests for both json and jsonc global config updates to ensure deleted custom models stay deleted.
@neversaywanan
Copy link
Author

@adamdotdevin Hi! The CI shows “This workflow requires approval from a maintainer” (3 workflows awaiting approval). Could you please click Approve and run for this PR? I don’t have the permissions.

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]:allow editing custom providers from model settings

1 participant