You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(settings): stop offering Agent Dashboard and Terminal attention to new users - #49474
New users no longer see the Agent Dashboard and Terminal attention switches in Settings > Experimental. People who already turned either one on keep it.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
6
$\color{#1a7f37}{\Huge{\mathbf{+}}}$96
$\color{#cf222e}{\Huge{\mathbf{−}}}$13
$\color{#1a7f37}{\Huge{\mathbf{+}}}$83
What Changed
Before: every user saw both rows in Settings > Experimental and could find them by searching Settings or the Cmd+J palette.
After:
For a new user (setting off), both rows are gone from Settings > Experimental. Settings search and the Cmd+J palette don't find them either.
A user who has either one on still sees that row, including the "Open as" control, and can find it in search.
Switching one off keeps its row on screen while the user stays in the Experimental section, so the switch doesn't vanish under the cursor. The next time they open the section, the row is gone, as it is for a new user.
Option-clicking the Experimental title (the existing hidden-experiments unlock) still shows both rows.
Mechanism:
ExperimentalPane shows each row only when one of these is true:
hidden experiments are unlocked;
the setting was on when the pane mounted (kept in useState);
the setting is on now.
getExperimentalPaneSearchEntries now takes the on/off state of the two settings and leaves out their entries when they're off. useSettingsNavigationMetadata passes the current settings, so the Settings page and the Cmd+J palette agree.
Nothing else needed to change. The sidebar entry, the dashboard shortcut and its row in Shortcuts, the dashboard pop-out, and terminal attention itself all already require the setting to be on. Defaults and stored settings are unchanged, and nothing is migrated.
Why
The two experiments are no longer offered to new users. Removing the switches outright would silently take a feature away from people using it. A stored "has seen it" flag would add new saved data for a visibility rule. The latch avoids a switch that disappears as the user clicks it. Checked against how comparable products handle this.
Linked Issue
Internal request (maintainer).
Visual Proof
Component fixtures (seeded settings, not a real profile).
New user, before
New user, after
Already opted in, after
Testing
Unit tests: none. Repo rules keep UI behavior and wiring out of unit tests. The component fixtures cover both states instead: ExperimentalPane:newUserHidesOptInOnlyExperiments and ExperimentalPane:optedInKeepsOptInOnlyExperiments (see Visual Proof). The Before image is the same new-user fixture rendered against the base branch's pane.
Ran pnpm lint (49 steps) and the renderer (web) typecheck locally. Both pass.
Platform: macOS, component fixtures. The change is renderer-only and the same on every platform, SSH and web client.
Automated tests added/updated, or explained why not below
Performance
None, because this only runs when Settings or the Cmd+J palette renders. The pane does one extra useState and reads two booleans. The navigation memo gains two boolean dependencies, so it recomputes only when one of those two settings changes. The Experimental search list is now filtered on each navigation rebuild instead of being cached per locale. The cached catalog is reused, so that's a small array filter plus one property check.
Risk
Level: Low.
The risk is hiding a switch from someone who uses it. The rows stay visible whenever the stored setting is true, and the test covers that. Someone who turns a feature off can only get the switch back through Option-click. A plain revert restores the old behavior, and no stored data changes.
Review
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
No new strings. Renderer-only.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
No actionable comments were generated in the recent review.
Walkthrough
The change adds opt-in visibility flags for Agent Dashboard and Terminal Attention. Settings navigation uses these flags to filter search entries. The Experimental pane records visibility when it opens and uses that snapshot, current visibility, hidden-experiment unlock status, and the search query to decide whether to show each row. Two fixtures describe default and opted-in settings.
Merge Risk: Minimal · up to b2dd7
This change hides the Agent Dashboard and Terminal attention settings, along with their search entries, from users whose settings are off. No concrete defect was found, and the risk of merging is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: new users stop being offered the Agent Dashboard and Terminal attention settings. It is a single, specific sentence with a conventional fix(settings) prefix. It matche…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description follows the repository template closely. It covers the ELI5, What Changed (before and after), Why, Visual Proof with fixture-based before/after images, Testing, Performance, Risk with …
Full details: Title check
Explanation
The title names the main change: new users stop being offered the Agent Dashboard and Terminal attention settings. It is a single, specific sentence with a conventional fix(settings) prefix. It matches the changeset summary and the PR objectives, which describe hiding these rows and their search entries from users whose settings are off.
Full details: Description check
Explanation
The description follows the repository template closely. It covers the ELI5, What Changed (before and after), Why, Visual Proof with fixture-based before/after images, Testing, Performance, Risk with a Low level, the Agent skill upstream boundary checkbox, and the checklist. The Linked Issue section is weak. It reads "Internal request (maintainer)" and has no "Fixes #" reference, which the template says should always be present for outside contributors. The author is presumably a maintainer, so this is acceptable under the special case, but the section does not name an existing issue. The Why section is also thin on alternatives: it names the rejected options (removing switches, a stored seen flag) but says "Checked against how comparable products handle this" without naming those products. The Testing section says there are no unit tests and cites fixtures instead, which is consistent with the repository rules quoted in the objectives. The objectives mention a ExperimentalPane.test.tsx run that the final description no longer claims, so the testing claims are partly out of step with the PR objectives. The AI Disclosure section is blank, which is acceptable for an internal contributor. The Notes section is short but fills its purpose. Overall the description is mostly complete, with a few gaps that are not critical.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Use the fixtures instead of adding UI and wiring unit tests.
This suite checks switch presence, accessible names, component rerendering, and search-entry wiring. It adds a second maintenance surface for behavior already represented by the component fixtures. Remove this suite and validate the interaction in the app.
Based on learnings, the repository rule says: “Never test UI behavior … wiring/IPC glue … copy, constants, or timing.”
Source: Learnings
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 870f0696-cb8e-405e-a9c9-40ec8205c080
Commits
Reviewing files that changed from the base of the PR and between 27300a1 and 6fa479e.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
…o new users
Both experiments now appear in Settings > Experimental and in Settings
search only for people who already turned them on, or when hidden
experiments are unlocked with Option-click. Turning one off keeps its row
on screen until Settings is reopened. Defaults and stored settings are
unchanged.
Re the CodeRabbit nitpick on ExperimentalPane.test.tsx: agreed, AGENTS.md keeps UI behavior and wiring out of unit tests. Removed the suite in b2dd724; the two component fixtures (newUserHidesOptInOnlyExperiments, optedInKeepsOptInOnlyExperiments) cover both states.
…iming keys
A saved Toggle Agent Dashboard chord kept being swallowed after the
experiment was turned off, and it blocked giving that chord to another
action from a row that is hidden while the dashboard is off. The binding
stays stored and works again when the dashboard is turned back on.
Follows up #49474.
…iming keys
A saved Toggle Agent Dashboard chord kept being swallowed after the
experiment was turned off, and it blocked giving that chord to another
action from a row that is hidden while the dashboard is off. The binding
stays stored and works again when the dashboard is turned back on.
Follows up #49474.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
New users no longer see the Agent Dashboard and Terminal attention switches in Settings > Experimental. People who already turned either one on keep it.
What Changed
Before: every user saw both rows in Settings > Experimental and could find them by searching Settings or the Cmd+J palette.
After:
Mechanism:
ExperimentalPaneshows each row only when one of these is true:useState);getExperimentalPaneSearchEntriesnow takes the on/off state of the two settings and leaves out their entries when they're off.useSettingsNavigationMetadatapasses the current settings, so the Settings page and the Cmd+J palette agree.Why
The two experiments are no longer offered to new users. Removing the switches outright would silently take a feature away from people using it. A stored "has seen it" flag would add new saved data for a visibility rule. The latch avoids a switch that disappears as the user clicks it. Checked against how comparable products handle this.
Linked Issue
Internal request (maintainer).
Visual Proof
Component fixtures (seeded settings, not a real profile).
Testing
Unit tests: none. Repo rules keep UI behavior and wiring out of unit tests. The component fixtures cover both states instead:
ExperimentalPane:newUserHidesOptInOnlyExperimentsandExperimentalPane:optedInKeepsOptInOnlyExperiments(see Visual Proof). The Before image is the same new-user fixture rendered against the base branch's pane.Ran
pnpm lint(49 steps) and the renderer (web) typecheck locally. Both pass.Platform: macOS, component fixtures. The change is renderer-only and the same on every platform, SSH and web client.
Automated tests added/updated, or explained why not below
Performance
None, because this only runs when Settings or the Cmd+J palette renders. The pane does one extra
useStateand reads two booleans. The navigation memo gains two boolean dependencies, so it recomputes only when one of those two settings changes. The Experimental search list is now filtered on each navigation rebuild instead of being cached per locale. The cached catalog is reused, so that's a small array filter plus one property check.Risk
Level: Low.
The risk is hiding a switch from someone who uses it. The rows stay visible whenever the stored setting is true, and the test covers that. Someone who turns a feature off can only get the switch back through Option-click. A plain revert restores the old behavior, and no stored data changes.
Review
Agent skill upstream boundary
Notes
No new strings. Renderer-only.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)