mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
Delegate installed plugin recommendation filtering to the endpoint (#61374)
## What changed Request plugin suggestions with `includeInstalled=false` and use the endpoint results without filtering against loaded plugins or the local installed-plugin cache. Retain disabled-tool and client eligibility filtering, and remove plugin loading that was only needed for recommendation filtering. ## Testing Update tests to verify the query parameter and confirm that endpoint recommendations survive local installed-cache filtering while disabled tools remain excluded. GitOrigin-RevId: a1b199f9ac8da7dae40abe46b6ccfaf1d8230a5c
This commit is contained in:
committed by
copyberry
parent
7194b21776
commit
a46c5be77e
@@ -1156,7 +1156,9 @@ pub async fn fetch_recommended_plugins(
|
||||
let base_url = config.chatgpt_base_url.trim_end_matches('/');
|
||||
let mut url = Url::parse(&format!("{base_url}/ps/plugins/suggested/codex"))
|
||||
.map_err(RemotePluginCatalogError::InvalidBaseUrl)?;
|
||||
url.query_pairs_mut().append_pair("scope", "GLOBAL");
|
||||
url.query_pairs_mut()
|
||||
.append_pair("scope", "GLOBAL")
|
||||
.append_pair("includeInstalled", "false");
|
||||
let url = url.to_string();
|
||||
let request = authenticated_request(config, Method::GET, &url, auth)
|
||||
.await?
|
||||
|
||||
Reference in New Issue
Block a user