Skip to content

respect workspace option for disabling plugins#18907

Merged
zamoshchin-openai merged 8 commits into
mainfrom
dev/alexz/option-for-disabling-plugins
Apr 24, 2026
Merged

respect workspace option for disabling plugins#18907
zamoshchin-openai merged 8 commits into
mainfrom
dev/alexz/option-for-disabling-plugins

Conversation

@zamoshchin-openai

@zamoshchin-openai zamoshchin-openai commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Respects the workspace setting for plugins in Codex

Plugins menu disappears
Plugins do not load
Plugins do not load in composer

no plugins loaded
Screenshot 2026-04-23 at 3 20 45 PM

no plugins in menu
Screenshot 2026-04-23 at 3 20 35 PM

@zamoshchin-openai zamoshchin-openai requested review from Copilot, mzeng-openai and xl-openai and removed request for Copilot and mzeng-openai April 21, 2026 23:49
@github-actions

github-actions Bot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@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

async fn plugin_install(&self, request_id: ConnectionRequestId, params: PluginInstallParams) {

P1 Badge Enforce workspace plugin policy in plugin/install

plugin/install does not check workspace_codex_plugins_enabled, so a client can still install plugins when workspace settings disable plugins (by calling with a known marketplacePath/pluginName). This bypasses the new policy enforcement added to plugin/list, skills/list, and app listing, and can still activate plugin MCP/app behavior.

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

…disabling-plugins

# Conflicts:
#	codex-rs/app-server/src/codex_message_processor.rs
@zamoshchin-openai

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Apr 23, 2026
@zamoshchin-openai zamoshchin-openai changed the title option for disabling plugins respect workspace option for disabling plugins Apr 23, 2026
@shijie-oai shijie-oai requested a review from a team April 23, 2026 22:53

let settings: WorkspaceSettingsResponse = chatgpt_get_request_with_timeout(
config,
format!("/accounts/{account_id}/settings"),

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.

Do we have to sanitize or sanity check account_id or does token_data take care of that for us?

@bolinfest bolinfest 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.

seems reasonable? but @xli-oai should have final say

@xli-oai

xli-oai commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

seems reasonable? but @xli-oai should have final say

Guess you mean @xl-openai?
But this LGTM, and later maybe we can skip this BG if there is no configured plugins

@xl-openai

Copy link
Copy Markdown
Collaborator

So add a remote API call for most plugin API calls? My major concern is performance. Should we cache the result?

@zamoshchin-openai

Copy link
Copy Markdown
Contributor Author

added a 24 hour workspace settings cache

use crate::chatgpt_client::chatgpt_get_request_with_timeout;

const WORKSPACE_SETTINGS_TIMEOUT: Duration = Duration::from_secs(10);
const WORKSPACE_SETTINGS_CACHE_TTL: Duration = Duration::from_secs(24 * 60 * 60);

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.

I think 15 mins is good enough.

@zamoshchin-openai zamoshchin-openai enabled auto-merge (squash) April 24, 2026 17:18
@zamoshchin-openai zamoshchin-openai merged commit bcc1caa into main Apr 24, 2026
31 of 33 checks passed
@zamoshchin-openai zamoshchin-openai deleted the dev/alexz/option-for-disabling-plugins branch April 24, 2026 17:38
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 24, 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.

5 participants