Skip to content

feat(cli): add TUI custom provider setup#25112

Open
yanzhanglee wants to merge 4 commits intoanomalyco:devfrom
yanzhanglee:codex/tui-custom-endpoint
Open

feat(cli): add TUI custom provider setup#25112
yanzhanglee wants to merge 4 commits intoanomalyco:devfrom
yanzhanglee:codex/tui-custom-endpoint

Conversation

@yanzhanglee
Copy link
Copy Markdown

@yanzhanglee yanzhanglee commented Apr 30, 2026

Issue for this PR

Closes #

Type of change

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

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 30000
  • npx --yes [email protected] run --cwd packages/opencode typecheck

Screenshots / recordings

Not included. This is a TUI dialog flow and was verified with unit coverage for the generated provider config plus typecheck.

Checklist

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

@github-actions
Copy link
Copy Markdown
Contributor

Hey! Your PR title [codex] Add TUI custom provider setup doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

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"
#18550

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.

@yanzhanglee yanzhanglee marked this pull request as ready for review April 30, 2026 13:47
@yanzhanglee yanzhanglee changed the title [codex] Add TUI custom provider setup fix(cli): add TUI custom provider setup Apr 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@yanzhanglee yanzhanglee changed the title fix(cli): add TUI custom provider setup feat(cli): add TUI custom provider setup Apr 30, 2026
@github-actions github-actions Bot removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Apr 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request Apr 30, 2026
…, 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)
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.

1 participant