Stop prefetching plugin discovery at app-server startup (#59768)

## What changed

- Remove startup prefetching of remote catalogs, featured plugins, and recommendations while retaining installed-plugin refreshes and bundle downloads.
- Fetch featured plugin IDs on demand, concurrently with marketplace fetching when listing the remote global catalog, and reuse the cached results.
- Retire `plugin_discovery_prefetch` as an ignored compatibility flag and remove forced background catalog refreshes.

## Testing

Update app-server tests to verify that startup downloads installed bundles without discovery requests and that two `plugin/list` calls share one featured-plugin fetch.

GitOrigin-RevId: aa10474f3429102d624c83472e81ec85e3b470ae
This commit is contained in:
Alex Zamoshchin
2026-11-06 00:23:38 +00:00
committed by copyberry
parent 9df200a068
commit 08e4f43c9a
10 changed files with 64 additions and 408 deletions
+4 -5
View File
@@ -378,8 +378,7 @@ pub enum Feature {
ComputerUse,
/// Enable the PS-backed remote plugin catalog.
RemotePlugin,
/// Prefetch the plugin directory, featured plugins, and recommendations at app-server startup.
/// Inventory-only hosts can disable this. Legacy suggestions read the cached directory.
/// Removed compatibility flag for plugin discovery prefetch.
PluginDiscoveryPrefetch,
/// Enable remote plugin sharing flows.
PluginSharing,
@@ -770,7 +769,7 @@ impl Features {
"image_detail_original" | "resize_all_images" | "item_ids" => {
continue;
}
"personality" | "plugin_hooks" => {
"personality" | "plugin_discovery_prefetch" | "plugin_hooks" => {
continue;
}
"skill_env_var_dependency_prompt" => {
@@ -1952,8 +1951,8 @@ pub const FEATURES: &[FeatureSpec] = &[
FeatureSpec {
id: Feature::PluginDiscoveryPrefetch,
key: "plugin_discovery_prefetch",
stage: Stage::Stable,
default_enabled: true,
stage: Stage::Removed,
default_enabled: false,
},
FeatureSpec {
id: Feature::PluginSharing,