feat(cli): add TUI custom provider setup#25112
feat(cli): add TUI custom provider setup#25112yanzhanglee wants to merge 4 commits intoanomalyco:devfrom
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found a potentially related PR: PR #18550: "feat: manage custom providers within model settings" This PR appears to be related as it also deals with managing custom providers. However, the current PR (25112) specifically focuses on adding a TUI (terminal UI) custom provider setup dialog for configuring OpenAI-compatible endpoints, which seems to be a more recent/specific implementation compared to the earlier PR. All other results are related to provider support in general but don't appear to be duplicates of the specific TUI custom provider form feature being added in PR #25112. |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
…, sandbox cleanup - anomalyco/opencode#25112: TUI custom provider setup — validator + UI prepend (merge-after-nits) - openai/codex#20447: MCP status/list lifecycle leak fix via in-future await (merge-as-is) - openai/codex#20446: drop dead sandbox_policy field from Op::UserTurn (merge-as-is)
Issue for this PR
Closes #
Type of change
What does this PR do?
Adds custom provider setup to the TUI provider picker. The new flow configures an OpenAI-compatible endpoint by collecting a provider ID, display name, base URL, optional API key or env var reference, models, and optional headers.
The saved config uses the same provider shape as the WebUI custom provider flow, then refreshes provider state and opens model selection for the new provider.
How did you verify your code works?
npx --yes [email protected] --cwd packages/opencode test src/cli/cmd/tui/component/dialog-custom-provider-form.test.ts --timeout 30000npx --yes [email protected] run --cwd packages/opencode typecheckScreenshots / recordings
Not included. This is a TUI dialog flow and was verified with unit coverage for the generated provider config plus typecheck.
Checklist