#18550 · @neversaywanan · opened Mar 21, 2026 at 6:31 PM UTC · last updated Mar 21, 2026 at 6:40 PM UTC
feat: manage custom providers within model settings
Score breakdown
Impact
Clarity
Urgency
Ease Of Review
Guidelines
Readiness
Size
Trust
Traction
Summary
This PR introduces an edit flow for custom providers within model settings, addressing a requested feature to improve usability by allowing modifications without recreating providers. Verification includes unit tests and manual steps to cover specific configuration updates and model blacklisting. A video asset is provided, but the screenshot section still contains a 'TODO' marker.
Description
Issue for this PR
Closes #18224
Type of change
- [ ] Bug fix
- [x] 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.tsfrompackages/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
https://github.com/user-attachments/assets/bdc16ea3-0068-4690-af26-0e3f7a43b416
Checklist
- [x] I have tested my changes locally
- [x] I have not included unrelated changes in this PR
Linked Issues
#18224 [FEATURE]:allow editing custom providers from model settings
View issueComments
PR comments
neversaywanan
@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.
Changed Files
packages/app/src/components/dialog-custom-provider.tsx
+22−7packages/app/src/components/dialog-select-model.tsx
+21−1packages/app/src/components/settings-models.tsx
+12−1packages/app/src/components/settings-providers.tsx
+16−3packages/opencode/src/config/config.ts
+38−15packages/opencode/test/config/config.test.ts
+104−0