Skip to content

fix(settings): stop offering Agent Dashboard and Terminal attention to new users - #49474

Merged
AmethystLiang merged 3 commits into
mainfrom
AmethystLiang/tiamat-2
Nov 26, 2026
Merged

AmethystLiang merged 3 commits into
mainfrom
AmethystLiang/tiamat-2

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

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)

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed 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.

Share

Recent 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: aa87aa78-2cd5-460a-84d9-9785dc278bd8
Commits

Reviewing files that changed from the base of the PR and between 6fa479e and b2dd724.

Files selected for processing: 1

  • src/renderer/src/components/settings/navigation/useSettingsNavigationMetadata.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick comments: 1

src/renderer/src/components/settings/advanced/ExperimentalPane.test.tsx: 1

28-28: Trivial · Maintainability & Code Quality · Quick win

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.

Files selected for processing: 7

  • src/renderer/src/components/settings/advanced/ExperimentalPane.fixture.tsx
  • src/renderer/src/components/settings/advanced/ExperimentalPane.test.tsx
  • src/renderer/src/components/settings/advanced/ExperimentalPane.tsx
  • src/renderer/src/components/settings/advanced/experimental-search.ts
  • src/renderer/src/components/settings/navigation/settings-navigation-build-options.ts
  • src/renderer/src/components/settings/navigation/settings-navigation-remote-sections.ts
  • src/renderer/src/components/settings/navigation/useSettingsNavigationMetadata.ts

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.
Repo rules keep UI behavior and wiring out of unit tests; the component
fixtures show both states instead.
@AmethystLiang

Copy link
Copy Markdown
Contributor Author

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.

@AmethystLiang
AmethystLiang merged commit afcbcf4 into main Nov 26, 2026
55 of 56 checks passed
AmethystLiang added a commit that referenced this pull request Nov 28, 2026
…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.
AmethystLiang added a commit that referenced this pull request Nov 29, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant