mirror of
https://github.com/openai/codex.git
synced 2026-05-01 09:56:37 +00:00
[apps] Fix apps enablement condition. (#14011)
- [x] Fix apps enablement condition to check both the feature flag and that the user is not an API key user.
This commit is contained in:
@@ -4855,7 +4855,7 @@ impl CodexMessageProcessor {
|
||||
.set_enabled(Feature::Apps, thread.enabled(Feature::Apps));
|
||||
}
|
||||
|
||||
if !config.features.enabled(Feature::Apps) {
|
||||
if !config.features.apps_enabled(Some(&self.auth_manager)).await {
|
||||
self.outgoing
|
||||
.send_response(
|
||||
request_id,
|
||||
@@ -5418,7 +5418,7 @@ impl CodexMessageProcessor {
|
||||
};
|
||||
let plugin_apps = load_plugin_apps(result.installed_path.as_path());
|
||||
let apps_needing_auth = if plugin_apps.is_empty()
|
||||
|| !config.features.enabled(Feature::Apps)
|
||||
|| !config.features.apps_enabled(Some(&self.auth_manager)).await
|
||||
{
|
||||
Vec::new()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user