Skip to content

Move plugin out of core.#20348

Merged
xl-openai merged 3 commits into
mainfrom
xl/plugins
Apr 30, 2026
Merged

Move plugin out of core.#20348
xl-openai merged 3 commits into
mainfrom
xl/plugins

Conversation

@xl-openai

Copy link
Copy Markdown
Collaborator

No description provided.

@xl-openai

Copy link
Copy Markdown
Collaborator Author

@codex review this PR with a focus on migration feature parity. Please verify that the behavior after the move is exactly the same as before, and flag any regressions, missing paths, or subtle API/behavior differences introduced by the migration.

@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

pub mod legacy_core {

P2 Badge Keep legacy_core::plugins compatibility re-export

app-server-client removed legacy_core::plugins::PluginsManager, which was the transitional API for consumers still using embedded-core plugin paths. This is a migration parity regression: existing callers compiling against the shim now fail and must refactor dependencies during what should be a move-only change.

ℹ️ 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/config/src/plugin_edit.rs Outdated
Comment on lines +63 to +64
fs::create_dir_all(codex_home)?;
fs::write(config_path, doc.to_string())

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.

P1 Badge Restore atomic writes when persisting plugin config edits

apply_user_plugin_config_edits_blocking now persists config.toml with plain fs::write, which truncates and rewrites in place. The previous path (ConfigEditsBuilder) used atomic replacement, so failures (e.g., ENOSPC/crash) could not leave a partially written config. This migration introduces a config-corruption window and weaker durability guarantees.

Useful? React with 👍 / 👎.

Comment thread codex-rs/core/src/lib.rs
Comment thread codex-rs/core-api/src/lib.rs
Comment thread codex-rs/config/src/plugin_edit.rs Outdated
Comment thread codex-rs/config/src/plugin_edit.rs Outdated
@xl-openai

Copy link
Copy Markdown
Collaborator Author

Re app-server-client::legacy_core::plugins: this removal is intentional; the legacy shim should not continue exposing plugin manager APIs after the migration, and callers should depend on codex-core-plugins directly.

@xl-openai

Copy link
Copy Markdown
Collaborator Author

@codex review this PR for behavioral parity only. Treat the removed codex_core::plugins, core-api, and app-server-client::legacy_core::plugins re-exports as intentional and out of scope. Do not flag issues already present on origin/main; only flag behavior changed by this PR.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ 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".

@xli-oai xli-oai marked this pull request as ready for review April 30, 2026 09:20
@xli-oai xli-oai requested a review from a team as a code owner April 30, 2026 09:20
Comment thread codex-rs/core-plugins/src/lib.rs Outdated
Comment thread codex-rs/core/src/plugins/mod.rs Outdated
Comment thread codex-rs/core-plugins/src/manager.rs

@sayan-oai sayan-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks for cleaning this up 🙏

please test very thoroughly!

@xl-openai xl-openai merged commit 7b3de63 into main Apr 30, 2026
25 checks passed
@xl-openai xl-openai deleted the xl/plugins branch April 30, 2026 21:26
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 30, 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