mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
Gate plugin recommendation cache warming on feature flags (#60721)
## Why Background plugin cache refreshes fetched recommendations even when plugin recommendations were disabled. ## What changed Pass the effective recommendation feature state into `PluginsConfigInput` and skip recommendation cache warming unless apps, plugins, and either `tool_suggest` or `recommended_plugins` are enabled. Installed-plugin cache refreshes continue independently. Disable `tool_suggest` and `recommended_plugins` by default in core and app-server test helpers, with explicit overrides for recommendation tests. ## Testing Update cache-warming and external-login recommendation tests to opt in explicitly. Update config RPC assertions to verify the test helpers' session flag overrides. GitOrigin-RevId: dc04e2847c94e2b15842fcd95cc0cf1f104e1fac
This commit is contained in:
@@ -6151,7 +6151,9 @@ plugins = true
|
||||
.mount(&server)
|
||||
.await;
|
||||
|
||||
let mut config = load_config(tmp.path(), tmp.path()).await;
|
||||
let mut config = load_config(tmp.path(), tmp.path())
|
||||
.await
|
||||
.with_plugin_recommendations_enabled(/*enabled*/ true);
|
||||
config.chatgpt_base_url = server.uri();
|
||||
let manager = std::sync::Arc::new(test_plugins_manager(tmp.path().to_path_buf()));
|
||||
let auth = CodexAuth::create_dummy_chatgpt_auth_for_testing();
|
||||
|
||||
Reference in New Issue
Block a user