Skip to content

Extract codex-extensions from codex-core#15028

Closed
aibrahim-oai wants to merge 5 commits intocodex/split-core-config-loaderfrom
codex/split-core-extensions
Closed

Extract codex-extensions from codex-core#15028
aibrahim-oai wants to merge 5 commits intocodex/split-core-config-loaderfrom
codex/split-core-extensions

Conversation

@aibrahim-oai
Copy link
Collaborator

Summary

  • extract plugin and skill types/rendering/storage modules into
  • slim plugin and skill surfaces down to reexports where possible
  • wire the new crate into the workspace and core dependencies

Testing

  • not run (PR-first lane; CI will validate)

@aibrahim-oai
Copy link
Collaborator Author

@codex review this

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Ok(plugin) => discoverable_plugins.push(plugin.plugin.into()),

P0 Badge Re-add conversion from plugin detail to capability summary

This .into() now has no matching From<PluginDetailSummary> for PluginCapabilitySummary implementation after extraction. cargo check -p codex-core fails with E0277 here, blocking compilation of plugin discovery.

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

let capability_summaries = plugins
.iter()
.filter_map(PluginCapabilitySummary::from_plugin)
.filter_map(plugin_capability_summary_from_loaded_plugin)
Copy link
Contributor

Choose a reason for hiding this comment

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

P0 Badge Restore missing capability-summary helper call target

PluginLoadOutcome::from_plugins still calls plugin_capability_summary_from_loaded_plugin, but that symbol is no longer defined/imported after the extraction. cargo check -p codex-core now fails with E0425 at this line, so the crate cannot build.

Useful? React with 👍 / 👎.

Comment on lines +265 to +271
let target = target_root.join(plugin_version);
let staging = target_root.join(format!(".{plugin_version}.tmp"));
remove_existing_target(staging.as_path())?;
remove_existing_target(target.as_path())?;

copy_dir_recursive(source, staging.as_path())?;
fs::rename(staging.as_path(), target.as_path())
Copy link
Contributor

Choose a reason for hiding this comment

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

P1 Badge Replace plugin cache root atomically, not only one version dir

The new install path only removes/replaces <target_root>/<plugin_version> and leaves other version directories in place. When an update installs a new version, multiple versions remain; active_plugin_version then returns None (it requires exactly one), so plugins can become effectively inactive after upgrade.

Useful? React with 👍 / 👎.

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