Repository navigation
Remove idle agent toggle from global settings - #12941
Conversation
📝 WalkthroughWalkthroughRemoved the experimental Agent Dashboard “Show idle agents” setting and toggle. The dashboard mode selector remains unchanged. Updated the related test to verify that the “Show idle agents” control is absent when the dashboard is enabled. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 33e7f9f9-9a29-48f7-bb15-7472fe038b5d
📒 Files selected for processing (2)
src/renderer/src/components/settings/AgentDashboardExperimentalSetting.tsxsrc/renderer/src/components/settings/ExperimentalPane.test.tsx
💤 Files with no reviewable changes (1)
- src/renderer/src/components/settings/AgentDashboardExperimentalSetting.tsx
| it('keeps idle-agent visibility out of global settings', () => { | ||
| const markup = renderToStaticMarkup( | ||
| <ExperimentalPane | ||
| settings={{ ...getDefaultSettings('/tmp'), experimentalAgentDashboardPopout: true }} |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Use a platform-neutral test path.
'/tmp' assumes a POSIX filesystem. Use tmpdir() with join() or the repository’s existing temporary-home helper.
As per path instructions, use path.join or Electron/Node path utilities for file paths and do not assume / or \.
Proposed fix
+import { tmpdir } from 'node:os'
+import { join } from 'node:path'
+
- settings={{ ...getDefaultSettings('/tmp'), experimentalAgentDashboardPopout: true }}
+ settings={{
+ ...getDefaultSettings(join(tmpdir(), 'orca-test-home')),
+ experimentalAgentDashboardPopout: true
+ }}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| settings={{ ...getDefaultSettings('/tmp'), experimentalAgentDashboardPopout: true }} | |
| import { tmpdir } from 'node:os' | |
| import { join } from 'node:path' | |
| settings={{ | |
| ...getDefaultSettings(join(tmpdir(), 'orca-test-home')), | |
| experimentalAgentDashboardPopout: true | |
| }} |
Source: Coding guidelines
Summary
Remove the Show idle agents toggle from global Experimental Settings. The setting remains available in the in-window Agent Dashboard settings popover, keeping the control scoped to the surface it affects.
Screenshots
Global Experimental Settings with the duplicate toggle removed:
In-window Agent Dashboard popover retaining the toggle:
Testing
Electron CDP validation confirmed the toggle is absent from global Experimental Settings and present in the in-window dashboard popover.
AI Review Report
Reviewed the ownership boundary between global settings and AgentDashboardSettingsMenu, confirmed the persisted setting and dashboard filtering behavior remain unchanged, and verified the existing popover test still covers setting updates. No issues were flagged after targeted lint, formatting, tests, typecheck, and Electron UI inspection.
Cross-platform compatibility was explicitly checked for macOS, Linux, and Windows. This change removes renderer markup only and does not touch shortcuts, labels, paths, shell behavior, native APIs, or Electron platform branches.
Security Audit
No security-sensitive behavior changed. The diff does not add or alter input handling, command execution, path handling, authentication, secrets, dependencies, IPC, RPC, or remote wire data.
Notes
No platform-specific behavior or follow-up work identified.