Skip to content

refactor(core): contain Codex in OpenAI plugin - #39734

Merged
rekram1-node merged 5 commits into
v2from
codex-tweaks
Jul 31, 2026
Merged

refactor(core): contain Codex in OpenAI plugin#39734
rekram1-node merged 5 commits into
v2from
codex-tweaks

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • move ChatGPT/Codex routing and catalog behavior entirely into the OpenAI plugin
  • route all @ai-sdk/openai catalog models through the native provider instead of AI SDK hooks
  • remove Codex-specific behavior from the generic model resolver
  • apply Codex model eligibility, subscription cost, and context-limit overrides under ChatGPT OAuth
  • add OAuth-scoped originator and session-id headers through session.request

Validation

  • bun typecheck in packages/core
  • bun test test/plugin/provider-openai.test.ts test/model-resolver.test.ts in packages/core

@rekram1-node
rekram1-node merged commit 671e164 into v2 Jul 31, 2026
6 of 7 checks passed
@rekram1-node
rekram1-node deleted the codex-tweaks branch July 31, 2026 02:43
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