Skip to content

[codex] Clarify plugin load and runtime capability stages#28472

Merged
felixxia-oai merged 1 commit into
mainfrom
xl/api-plugin
Jun 16, 2026
Merged

[codex] Clarify plugin load and runtime capability stages#28472
felixxia-oai merged 1 commit into
mainfrom
xl/api-plugin

Conversation

@xl-openai

Copy link
Copy Markdown
Contributor

Summary

Plugin loading and auth projection both previously produced PluginLoadOutcome. That made an unfiltered load result look like runtime-ready capabilities and generated capability summaries before auth routing had run.

This change keeps loaded plugin records in the cache, applies the current auth policy in PluginsManager, and only then builds PluginLoadOutcome and its summaries. Auth changes still reuse the cached disk load and re-resolve apps and MCP servers without reloading plugins.

The updated tests cover cached auth changes and verify that capability summaries match the effective app/MCP surface.

Testing

  • just test -p codex-core-plugins
  • just test -p codex-plugin
  • just fix -p codex-core-plugins

@xl-openai
xl-openai requested a review from felixxia-oai June 16, 2026 06:48
@xl-openai
xl-openai marked this pull request as ready for review June 16, 2026 06:48

@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: c86d41dda6

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

vec![AppConnectorId("connector_sample".to_string())]
);
assert_eq!(
chatgpt_outcome.capability_summaries(),

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.

P2 Badge Add integration coverage for auth projection

Runtime plugin capability projection now changes after auth switches, but the only new check is a unit test. Repo guidance requires integration coverage for agent-logic changes, so please add a core integration test or explain why no user-facing behavior needs one. guidance

Useful? React with 👍 / 👎.

@felixxia-oai
felixxia-oai merged commit de1f77b into main Jun 16, 2026
31 checks passed
@felixxia-oai
felixxia-oai deleted the xl/api-plugin branch June 16, 2026 11:57
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 16, 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