Skip to content

[codex] allow image generation with provider auth - #29513

Merged
richardopenai merged 3 commits into
mainfrom
richardlee/cca-image-gen
Jun 23, 2026
Merged

[codex] allow image generation with provider auth#29513
richardopenai merged 3 commits into
mainfrom
richardlee/cca-image-gen

Conversation

@richardopenai

@richardopenai richardopenai commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • allow the native Responses API image_generation tool when the active provider carries CCA's non-empty x-openai-actor-authorization header
  • preserve the Codex-managed ChatGPT auth path, scoped to providers that actually require OpenAI auth
  • keep generic custom providers excluded, including when unrelated ChatGPT credentials are cached
  • retain the existing feature, provider-capability, and image-input-modality gates

Why

CCA authenticates its inference requests through the active provider's x-openai-actor-authorization and ChatGPT-Account-ID headers, so it does not have a Codex-managed login session. The previous gate therefore hid the native hosted image-generation tool despite an authenticated codex-backend path.

This change is intentionally limited to the native hosted tool. It adds no extension, MCP, plugin-service, session-source, token plumbing, or new provider configuration surface.

Tests

  • cargo test -p codex-core hosted_tools_follow_provider_auth_model_and_config_gates
  • cargo fmt --all -- --check
  • git diff --check origin/main

@richardopenai
richardopenai requested a review from a team as a code owner June 23, 2026 00:58
@richardopenai
richardopenai force-pushed the richardlee/cca-image-gen branch from 09c0bed to 6b033b8 Compare June 23, 2026 03:25

@won-openai won-openai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@richardopenai
richardopenai merged commit c660e2b into main Jun 23, 2026
31 checks passed
@richardopenai
richardopenai deleted the richardlee/cca-image-gen branch June 23, 2026 19:40
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants