Skip to content

Use the image generation extension by default - #31596

Merged
won-openai merged 5 commits into
mainfrom
won-imagegenext-default
Jul 9, 2026
Merged

Use the image generation extension by default#31596
won-openai merged 5 commits into
mainfrom
won-imagegenext-default

Conversation

@won-openai

Copy link
Copy Markdown
Contributor

Why

Image generation should have one implementation path. This cutover makes the image generation extension the default everywhere while preserving the existing stable feature toggle and compatibility alias.

What changed

  • Make Feature::ImageGeneration exclusively gate extension-backed image generation and keep imagegenext as a legacy alias.
  • Stop advertising the hosted image generation tool for new turns.
  • Install the image generation extension in the MCP server and core API sample hosts.
  • Preserve support for OpenAI, actor-authorized, and custom requires_openai_auth providers.
  • Leave the now-unreachable built-in implementation in place for the stacked cleanup PR.

Validation

  • just test -p codex-features
  • just test -p codex-core image_generation
  • just test -p codex-mcp-server image_generation_extension_is_enabled_by_default
  • cargo check -p codex-core-api -p codex-thread-manager-sample
  • Scoped Clippy fixes for the changed crates

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6547da9b41

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/features/src/legacy.rs
Comment thread codex-rs/core/src/tools/spec_plan.rs
Comment thread codex-rs/core/src/tools/spec_plan.rs
@won-openai
won-openai force-pushed the won-imagegenext-default branch from 9f34d5a to 5bf5947 Compare July 8, 2026 17:34

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5bf5947975

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/mcp-server/Cargo.toml
Comment thread codex-rs/rollout-trace/src/tool_dispatch.rs
@won-openai
won-openai force-pushed the won-imagegenext-default branch from 5bf5947 to dbd765f Compare July 8, 2026 17:43
Comment thread codex-rs/mcp-server/tests/suite/codex_tool.rs Outdated
Comment thread codex-rs/core/src/tools/hosted_spec.rs Outdated
Comment thread codex-rs/core/src/tools/spec_plan_tests.rs Outdated
## Why

After #31596 routes all new image generation through the extension, the
built-in hosted pipeline is unreachable and can be removed
independently.

## What changed

- Remove the hosted image generation tool spec and its
code-mode/tool-search handling.
- Remove live hosted image-generation stream persistence and the
generated-image instruction injection it required.
- Delete tests that only covered the removed live pipeline.
- Keep protocol/history support for existing `ImageGenerationCall`
rollout items, including replay, rollback, and renderable history
behavior.

## Validation

- `just test -p codex-core stream_events_utils`
- `just test -p codex-core generated_image`
- `just test -p codex-core
image_generation_publication_preserves_extension_saved_path`
- `just test -p codex-image-generation-extension`
- `just test -p codex-tools`
- Scoped Clippy fixes for `codex-core` and `codex-tools`
@won-openai
won-openai merged commit a7c72ae into main Jul 9, 2026
35 checks passed
@won-openai
won-openai deleted the won-imagegenext-default branch July 9, 2026 03:25
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants