The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): list the manageable bundled lifecycle plugins in Capabilities → Plugins (#98861)
teknium1a033f8952df1
diff --git a/apps/desktop/src/store/agent-plugins.test.ts b/apps/desktop/src/store/agent-plugins.test.tsnew file mode 100644index 00000000000..5c6f4bdb7ef--- /dev/null+++ b/apps/desktop/src/store/agent-plugins.test.ts@@ -0,0 +1,20 @@+import { describe, expect, it } from 'vitest'++import { type AgentPluginRow, isDesktopRelevantPlugin } from './agent-plugins'++const row = (partial: Partial<AgentPluginRow>): AgentPluginRow =>+ ({ name: partial.key ?? 'x', status: 'enabled', ...partial }) as AgentPluginRow++describe('isDesktopRelevantPlugin (#98861)', () => {+ it('lists the manageable bundled lifecycle plugins and keeps every other built-in hidden', () => {+ expect(isDesktopRelevantPlugin(row({ key: 'disk-cleanup', source: 'bundled' }))).toBe(true)+ expect(isDesktopRelevantPlugin(row({ key: 'security-guidance', source: 'bundled' }))).toBe(true)++ for (const key of ['platforms/discord', 'model-providers/openai', 'web/firecrawl', 'browser/agent-browser', 'kanban']) {+ expect(isDesktopRelevantPlugin(row({ key, source: 'bundled' }))).toBe(false)+ }++ // User installs are unaffected either way.+ expect(isDesktopRelevantPlugin(row({ key: 'my-plugin', source: 'user' }))).toBe(true)+ })+})diff --git a/apps/desktop/src/store/agent-plugins.ts b/apps/desktop/src/store/agent-plugins.tsindex 4f474b7b61b..a86abaa3888 100644--- a/apps/desktop/src/store/agent-plugins.ts+++ b/apps/desktop/src/store/agent-plugins.ts@@ -59,15 +59,19 @@ export const $agentPluginsError = atom<string | null>(null)export const $agentPluginBusy = atom<string | null>(null)// Rows the Plugins page actually lists (and search should surface): plugins-// the USER installed. Repo-bundled built-ins ship enabled-by-default and are-// configured from their own surfaces, so they're pure noise here. The prefix+// the USER installed, plus the few repo-bundled lifecycle plugins that use the+// ordinary enable/disable contract and have no settings surface of their own+// (#98861). Every other built-in (providers, platforms, browser/web backends,+// dashboard auth, observability, unknown future keys) ships enabled-by-default+// and is configured from its own surface, so it's pure noise here. The prefix// list is the fallback for older backends whose rows predate a reliable// `source` field — same curation stance as desktop-slash-commands.ts.const HIDDEN_KEY_PREFIXES = ['dashboard_auth/', 'model-providers/', 'platforms/']+const MANAGEABLE_BUNDLED_KEYS = new Set(['disk-cleanup', 'security-guidance'])export const isDesktopRelevantPlugin = (row: AgentPluginRow): boolean => {if (row.source === 'bundled') {- return false+ return MANAGEABLE_BUNDLED_KEYS.has(row.key ?? row.name)}const key = row.key