Skip to content

fix(opencode): honor OpenAI baseURL for Codex OAuth#31929

Open
vanisoul wants to merge 1 commit into
anomalyco:devfrom
vanisoul:codex-base-url
Open

fix(opencode): honor OpenAI baseURL for Codex OAuth#31929
vanisoul wants to merge 1 commit into
anomalyco:devfrom
vanisoul:codex-base-url

Conversation

@vanisoul

@vanisoul vanisoul commented Jun 11, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #31926

Type of change

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

What does this PR do?

This fixes OpenAI ChatGPT subscription / Codex OAuth requests so they honor provider.openai.options.baseURL.

When baseURL is configured, the Codex response endpoint is derived from it. A base URL ending in /v1 is normalized to /v1/responses, while an explicit /v1/responses endpoint is preserved. If no valid baseURL is configured, the existing default ChatGPT Codex endpoint is still used.

This matches the existing OpenAI provider configuration behavior without adding a separate Codex-specific config key.

How did you verify your code works?

  • bun test test/plugin/codex.test.ts
  • bun typecheck
  • git diff --check

Screenshots / recordings

Not applicable; this is not a UI change.

Checklist

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

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

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.

OpenAI ChatGPT subscription auth does not honor configured baseURL

1 participant