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', () => {