mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
Remove the workspace settings gate for apps and plugins (#38994)
## What changed - Stop fetching the ChatGPT workspace `enable_plugins` setting. - Let the effective Codex feature configuration control app and plugin APIs, plugin-provided skills and hooks, and experimental feature reporting. GitOrigin-RevId: 46aebf0f07cd47e093e48663e41207cdf9a38c9f
This commit is contained in:
committed by
copyberry
parent
ea10ae7d0f
commit
3666a46ea3
@@ -52,16 +52,10 @@ impl AppsRequestProcessor {
|
||||
.load_apps_config(params.thread_id.as_deref())
|
||||
.await?;
|
||||
let auth = self.auth_manager.auth().await;
|
||||
let apps_enabled = config
|
||||
let runtime_enabled = config
|
||||
.features
|
||||
.apps_enabled_for_auth(auth.as_ref().is_some_and(CodexAuth::uses_codex_backend));
|
||||
|
||||
let workspace_enabled = apps_enabled
|
||||
&& self
|
||||
.workspace_codex_plugins_enabled(&config, auth.as_ref())
|
||||
.await;
|
||||
let runtime_enabled = apps_enabled && workspace_enabled;
|
||||
|
||||
let mcp_manager = self.thread_manager.mcp_manager();
|
||||
let mut mcp_config = mcp_manager.runtime_config(&config).await;
|
||||
// Installed-app discovery has no active turn or reviewer.
|
||||
@@ -153,11 +147,7 @@ impl AppsRequestProcessor {
|
||||
}
|
||||
} else {
|
||||
if force_refresh {
|
||||
refresh_disposition = if !apps_enabled {
|
||||
"skipped_apps_disabled"
|
||||
} else {
|
||||
"skipped_workspace_disabled"
|
||||
};
|
||||
refresh_disposition = "skipped_apps_disabled";
|
||||
retained_previous_snapshot = previous_snapshot.is_some();
|
||||
}
|
||||
previous_snapshot
|
||||
|
||||
@@ -31,9 +31,6 @@ impl AppsRequestProcessor {
|
||||
if !config
|
||||
.features
|
||||
.apps_enabled_for_auth(auth.as_ref().is_some_and(CodexAuth::uses_codex_backend))
|
||||
|| !self
|
||||
.workspace_codex_plugins_enabled(&config, auth.as_ref())
|
||||
.await
|
||||
{
|
||||
let response = AppsReadResponse {
|
||||
apps: Vec::new(),
|
||||
|
||||
Reference in New Issue
Block a user