From 99d2f03ca7decddfd1434c45e47a17e8c0bf097f Mon Sep 17 00:00:00 2001
From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com>
Date: Thu, 6 Aug 2026 13:28:16 -0700
Subject: [PATCH] fix: scope idle agent setting to dashboard (#12941)
---
.../AgentDashboardExperimentalSetting.tsx | 17 -----------
.../settings/ExperimentalPane.test.tsx | 28 +++++--------------
2 files changed, 7 insertions(+), 38 deletions(-)
diff --git a/src/renderer/src/components/settings/AgentDashboardExperimentalSetting.tsx b/src/renderer/src/components/settings/AgentDashboardExperimentalSetting.tsx
index b2ffd824e..9c5f495b8 100644
--- a/src/renderer/src/components/settings/AgentDashboardExperimentalSetting.tsx
+++ b/src/renderer/src/components/settings/AgentDashboardExperimentalSetting.tsx
@@ -16,7 +16,6 @@ export function AgentDashboardExperimentalSetting({
}: AgentDashboardExperimentalSettingProps): React.JSX.Element {
const enabled = settings.experimentalAgentDashboardPopout === true
const mode = settings.experimentalAgentDashboardMode ?? 'in-window'
- const showIdle = settings.experimentalAgentDashboardShowIdle === true
return (
-
-
-
{translate('dashboardPopout.settings.showIdle', 'Show idle agents')}
-
- {translate(
- 'dashboardPopout.settings.showIdleCopy',
- 'Include agents that have gone quiet for 30 minutes without reporting completion. Hidden by default.'
- )}
-
-
-
updateSettings({ experimentalAgentDashboardShowIdle: !showIdle })}
- ariaLabel={translate('dashboardPopout.settings.showIdle', 'Show idle agents')}
- />
-
) : null}
diff --git a/src/renderer/src/components/settings/ExperimentalPane.test.tsx b/src/renderer/src/components/settings/ExperimentalPane.test.tsx
index 5a767f830..e230ba7b6 100644
--- a/src/renderer/src/components/settings/ExperimentalPane.test.tsx
+++ b/src/renderer/src/components/settings/ExperimentalPane.test.tsx
@@ -164,29 +164,15 @@ describe('ExperimentalPane', () => {
root.unmount()
})
- it('exposes idle-agent visibility for pop-out dashboards', async () => {
- const updateSettings = vi.fn()
- const settings = {
- ...getDefaultSettings('/tmp'),
- experimentalAgentDashboardPopout: true
- }
- const { root, container } = await renderExperimentalPane({
- settings,
- updateSettings
- })
- const idleSwitch = container.querySelector(
- '#experimental-agent-dashboard button[role="switch"][aria-label="Show idle agents"]'
+ it('keeps idle-agent visibility out of global settings', () => {
+ const markup = renderToStaticMarkup(
+
)
- if (!idleSwitch) {
- throw new Error('Idle-agent visibility switch was not rendered')
- }
- await act(async () => {
- idleSwitch.dispatchEvent(new MouseEvent('click', { bubbles: true }))
- })
-
- expect(updateSettings).toHaveBeenCalledWith({ experimentalAgentDashboardShowIdle: true })
- root.unmount()
+ expect(markup).not.toContain('Show idle agents')
})
it('renders Cloud VM as an off-by-default experimental subsection', () => {