feat: custom provider support with persistent storage and scrolling UI - #19
Open
deyoyk wants to merge 1 commit into
Open
feat: custom provider support with persistent storage and scrolling UI#19deyoyk wants to merge 1 commit into
deyoyk wants to merge 1 commit into
Conversation
- Add CustomProvider schema (name, base_url, api_key) to config, persisted in config.json - Add '+ Add custom provider...' option in /provider picker with interactive name/URL/key prompts - Saved custom providers appear in /provider list and can be switched like built-in providers - Default URL: https://opencode.ai/zen/v1, default key: public - Remove MODEL_PICKER_CAP (12 model limit) — all models now shown - Add viewport-based scrolling to AskModal (12 visible items, up/down navigation) - SecretInputModal supports masked=false for plain text and defaultValue for pre-fill
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Custom provider support + scrolling UI
What changed
/providernow has a+ Add custom provider...option at the bottom of the listhttps://opencode.ai/zen/v1andpublic(just hit Enter to accept)/providerlist by name and persist across restarts in~/.pentesterflow/config.jsonWhy
The old openai-compat flow required manually editing
config.jsonor passing CLI flags. Now it works like every other provider — pick it, enter your details, done.Files changed
src/config/config.ts—CustomProviderschema,custom_providersarray in configsrc/ui/App.tsx— rewrote provider picker, removed model capsrc/ui/AskModal.tsx— scrolling for long listssrc/ui/SecretInputModal.tsx—maskedanddefaultValueoptionssrc/cli/index.ts— wired custom providers into config read/savesrc/ui/App.commands.test.tsx— updated test mocks