diff --git a/src/renderer/src/components/settings/AgentsPane.test.tsx b/src/renderer/src/components/settings/AgentsPane.test.tsx index f05910d85..ac7f452d5 100644 --- a/src/renderer/src/components/settings/AgentsPane.test.tsx +++ b/src/renderer/src/components/settings/AgentsPane.test.tsx @@ -273,7 +273,7 @@ describe('AgentsPane', () => { expect(matchesSettingsSearch('cursor-agent', AGENTS_PANE_SEARCH_ENTRIES)).toBe(true) }) - it('renders per-agent availability as labeled status choices with explicit row copy', () => { + it('renders per-agent availability as labeled status choices without row explanation copy', () => { const markup = renderPane({ ...getDefaultSettings('/tmp'), disabledTuiAgents: ['claude'] @@ -282,7 +282,9 @@ describe('AgentsPane', () => { expect(markup).toContain('aria-label="Claude availability"') expect(markup).toContain('Enabled') expect(markup).toContain('Disabled') - expect(markup).toContain('Hidden from launch and default choices.') + expect(markup).not.toContain('Shown in launch and default choices.') + expect(markup).not.toContain('Install to use in launch and default choices.') + expect(markup).not.toContain('Hidden from launch and default choices.') expect(markup).not.toContain('aria-label="Enable Claude"') expect(markup).not.toContain('aria-label="Disable Claude"') }) diff --git a/src/renderer/src/components/settings/AgentsPane.tsx b/src/renderer/src/components/settings/AgentsPane.tsx index 9800ac895..b60102495 100644 --- a/src/renderer/src/components/settings/AgentsPane.tsx +++ b/src/renderer/src/components/settings/AgentsPane.tsx @@ -212,13 +212,6 @@ function AgentRow({ onSaveOverride }: AgentRowProps): React.JSX.Element { const [cmdOpen, setCmdOpen] = useState(Boolean(cmdOverride)) - const availabilityDescription = isEnabled - ? isDetected - ? 'Shown in launch and default choices.' - : 'Install to use in launch and default choices.' - : isDetected - ? 'Hidden from launch and default choices.' - : 'Hidden from launch and default choices if installed.' return (
@@ -247,46 +240,49 @@ function AgentRow({ defaultCmd )}
-
{availabilityDescription}
-
+
- {isDetected && isEnabled && ( - - )} +
+ {isDetected && isEnabled && ( + + )} +
- {isDetected && ( - - )} +
+ {isDetected && ( + + )} +
- {isDetected && ( - - )} +
+ {isDetected && ( + + )} +