Skip to content

feat(shell): enable app rail by default for new users - #48442

Merged
AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/app-rail-default-new-users
Nov 24, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/app-rail-default-new-users

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Defaults experimentalAppRail to true for new desktop profiles (including telemetry-only secondary profiles) and new web browsers.
  • Preserves existing behavior for upgraded users: desktop profiles and web localStorage profiles saved before this change without an explicit boolean experimentalAppRail keep it false (and persist false on load); existing explicit opt-ins/opt-outs are preserved.
  • Sanitizes experimentalAppRail as a boolean at the store update boundary.
  • Extracts DEFAULT_EXPERIMENTAL_SETTINGS into src/shared/settings/default-experimental-settings.ts to keep default-global-settings.ts within the 300-line lint limit.

Testing

  • Added src/main/persistence/app-rail-default-cohort.test.ts covering new profile default + persistence across restart + opt-out, existing profile without a saved choice staying off, explicit opt-in preserved, and telemetry-only secondary profiles getting the new default.
  • Added src/renderer/src/web/preload-api/preferences/web-preferences-app-rail-default.test.ts covering new vs existing browser localStorage profiles.
  • Ran AppShellLeftColumn.test.tsx, SidebarToolbar.moved-hint.test.tsx, app-command-handlers.rail-page.test.ts, persistence-flush-and-save-scheduling.test.ts, pnpm tc, oxlint, oxfmt --check, and check-changed-code-quality.mjs.

Performance

None, because this only flips the default boolean for new profiles and performs one O(1) property check during profile/settings load.

@AmethystLiang
AmethystLiang merged commit d286347 into main Nov 24, 2026
5 of 6 checks passed
@AmethystLiang
AmethystLiang deleted the AmethystLiang/app-rail-default-new-users branch November 24, 2026 20:14
registered2nd pushed a commit to registered2nd/orca that referenced this pull request Nov 24, 2026
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