feat(cli): add TUI custom provider setup#25112
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)
98a1fa8 to
f4f1809
Compare
609aa09 to
9885af5
Compare
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
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 bun@1.3.13 --cwd packages/opencode test src/cli/cmd/tui/component/dialog-custom-provider-form.test.ts --timeout 30000npx --yes bun@1.3.13 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