Skip to content

Surface admin-disabled remote plugin status#20298

Merged
xli-oai merged 5 commits into
mainfrom
xli-codex/remote-plugin-admin-status
May 1, 2026
Merged

Surface admin-disabled remote plugin status#20298
xli-oai merged 5 commits into
mainfrom
xli-codex/remote-plugin-admin-status

Conversation

@xli-oai

@xli-oai xli-oai commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Remote plugin-service returns plugin availability separately from a user's installed/enabled state. This adds PluginAvailabilityStatus to the app-server protocol, propagates remote catalog status into PluginSummary, and rejects install attempts for remote plugins marked DISABLED_BY_ADMIN before downloading or caching the bundle.

This is the openai/codex half of the change. The companion openai/openai webview PR is https://github.com/openai/openai/pull/873269.

Validation

  • cargo run -p codex-app-server-protocol --bin write_schema_fixtures
  • cargo test -p codex-app-server --test all plugin_list_marks_remote_plugin_disabled_by_admin
  • cargo test -p codex-app-server --test all plugin_list_includes_remote_marketplaces_when_remote_plugin_enabled
  • cargo test -p codex-app-server --test all plugin_install_rejects_remote_plugin_disabled_by_admin_before_download
  • cargo test -p codex-app-server-protocol schema_fixtures

@xli-oai xli-oai force-pushed the xli-codex/remote-plugin-admin-status branch from af02002 to 90cbfda Compare April 30, 2026 23:08
@xli-oai

xli-oai commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ 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 May 1, 2026 00:26
/// Remote-only availability status. Local plugins leave this unset.
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub status: Option<PluginAvailabilityStatus>,

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.

Let’s call it “availability” / “visibility” instead — “status” feels too generic.

#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
#[ts(export_to = "v2/")]
pub enum PluginAvailabilityStatus {
#[serde(rename = "AVAILABLE", alias = "ENABLED")]

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.

Why do you have an alias here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this enun server 2 sides, this is the tranlsation of the GPT API and the one we sent to desktop

@xli-oai

xli-oai commented May 1, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Breezy!

ℹ️ 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 merged commit bb60b78 into main May 1, 2026
25 checks passed
@xli-oai xli-oai deleted the xli-codex/remote-plugin-admin-status branch May 1, 2026 03:00
@github-actions github-actions Bot locked and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants