Skip to content

fix(opencode): send Codex-compatible OAuth request identity headers#36314

Open
Chlorek wants to merge 1 commit into
anomalyco:devfrom
Chlorek:codex-oauth-fix
Open

fix(opencode): send Codex-compatible OAuth request identity headers#36314
Chlorek wants to merge 1 commit into
anomalyco:devfrom
Chlorek:codex-oauth-fix

Conversation

@Chlorek

@Chlorek Chlorek commented Jul 10, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #36140

Type of change

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

What does this PR do?

Codex OAuth requests were identifying themselves as OpenCode instead of the Codex CLI. This could cause Codex requests to be rejected or unavailable.

This changes the request headers to use the Codex-compatible identity:

  • originator: codex_cli_rs
  • User-Agent: codex_cli_rs/0.0.0 (OpenCode/<version>)

It also adds a regression test covering these headers.

How did you verify your code works?

  • Ran the plugin doing the same change as PoC successfully.
  • Added automatic test.

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

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.

GPT-5.6 Luna returns model not found with ChatGPT OAuth

1 participant