Repository navigation
Show pre-upgrade Experimental Chat UI users a one-time native chat upgrade tip - #26710
Conversation
…Chat UI users Show the new native chat upgrade tip through the normal startup feature-tip flow, only to profiles whose saved Experimental Chat UI setting was on before this release. Main records that audience once, from the profile as saved by the previous build, and never re-derives it from the live setting, so later opt-ins, new installs and the future graduation stay excluded.
Focus Got it without scrolling and tighten the ja/es/fr copy so the title is visible on open. Show the tip exactly like other startup tips (no resume-dialog wait), keep the illustration's upward menu unclipped, and merge seen tip ids on save so a stale client cannot bring a dismissed tip back.
…dience basis in tests
📝 WalkthroughWalkthroughThe change records native-chat upgrade-tip audience membership from the saved profile and exposes that status to renderer feature-tip selection. Profiles outside the audience do not receive the tip, and unresolved audience status pauses app-open selection. The change adds a localized tip dialog, settings navigation, and animated demo visuals. Persistence updates also merge feature-tip seen IDs instead of replacing them. Priority: ⬆️ High Merge Risk: ⚪ Minimal · up to This adds a one-time native chat upgrade tip for eligible pre-upgrade users and prevents stale clients from undoing a dismissal. No merge-blocking issue was found. Ship it in the same release as the related proof-key removal change, as the PR notes. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)Full details: Docstring CoverageExplanation Docstring coverage is 23.08% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 39 functions across 30 files. (6 skipped: 6 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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.
🧹 Nitpick comments (1)
src/renderer/src/components/feature-tips/feature-tip-startup-gate.test.ts (1)
369-374: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueRename the test to match its assertion.
The test name says "never opens", but the test expects an
opendecision foragent-session-search. Rename the test to state that the tip is skipped and the next tip opens.
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
0571cdab-a8cd-42cf-a8e4-3169aab18016
📒 Files selected for processing (36)
src/main/ipc/onboarding.tssrc/main/persistence-native-chat-upgrade-tip-audience.test.tssrc/main/persistence/applying-settings/ui-interaction-merge.tssrc/main/persistence/applying-settings/ui-state-update.tssrc/main/persistence/loading-store/loaded-cohort-migrations.tssrc/main/persistence/loading-store/loaded-state-parsing.tssrc/main/persistence/loading-store/profile-preferences.tssrc/main/persistence/profile-state/profile-state-store-factory.test.tssrc/main/startup/dev-education-suppression.test.tssrc/preload/api/onboarding-api.tssrc/preload/api/onboarding-bridge.tssrc/renderer/src/app-shell/use-onboarding-and-feature-tips.tssrc/renderer/src/components/feature-tips/FeatureTipsModal.tsxsrc/renderer/src/components/feature-tips/NativeChatUpgradeFeatureTipVisual.tsxsrc/renderer/src/components/feature-tips/NativeChatUpgradeTipDialog.test.tsxsrc/renderer/src/components/feature-tips/NativeChatUpgradeTipDialog.tsxsrc/renderer/src/components/feature-tips/SessionSearchFeatureTipVisual.tsxsrc/renderer/src/components/feature-tips/feature-tip-modal-state.test.tssrc/renderer/src/components/feature-tips/feature-tip-modal-state.tssrc/renderer/src/components/feature-tips/feature-tip-session-panel-demo.tsxsrc/renderer/src/components/feature-tips/feature-tip-startup-gate.test.tssrc/renderer/src/components/feature-tips/feature-tip-startup-gate.tssrc/renderer/src/components/ui/dialog.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/store/slices/ui/ui-slice-contract-contextual.tssrc/renderer/src/store/slices/ui/ui-slice-feature-actions.tssrc/renderer/src/web/preload-api/web-onboarding-api.tssrc/shared/feature-tips.test.tssrc/shared/feature-tips.tssrc/shared/native-chat-upgrade-tip-audience.tssrc/shared/persisted-state-types.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Review and QA summary (head
|
ELI5
The next release turns the Experimental Chat UI setting into the upgraded native chat: new chats with supported agents open in the new chat view (that change is already merged as #22933). People who had already switched Chat UI on will notice the difference without warning. This PR shows those people, and only those people, one normal startup tip explaining what changed and how to move between chat and CLI.
The permanent rule: the tip is shown only to profiles whose saved Experimental Chat UI setting was on before this release. That fact is recorded once, the first time this release opens the profile, and never re-decided. Turning Chat UI on later, new installs, and the future move of Chat UI out of Experimental (even if it becomes on by default) can never make anyone eligible.
What Changed
Before: after updating, people who had Experimental Chat UI on found new chats opening in the upgraded view with no explanation.
After: on their next restart, those people see one tip, through the same startup flow, ordering and dismissal as every other Orca tip:
The right side shows the real Agent Session History panel. It alternates between the ⋯ menu on a native chat row (with Resume in New CLI highlighted) and on a CLI row (with Resume in New Native Chat highlighted). The menu is drawn lighter than the sidebar, with a ring on the highlighted action, so it stands out in dark mode. With reduced motion turned on it stays on the first menu. Everyone else sees nothing new.
How it works:
nativeChatUpgradeTipAudience, set toeligibleorexcluded:experimentalNativeChatistrueand the saved settings still containopenAgentTabsInChatByDefault. Every released build up to v1.4.223 saves that key, and Default experimental native chat to structured chat #22933 strips it on load and on every save. So its presence proves the profile was last written by a build from before the upgrade.onboarding:isInNativeChatUpgradeTipAudience, returns whether the record says eligible. The renderer cannot write the record, and no settings update, UI update or remote-client call touches it. The browser (web) client always gets "no".Why
Release dependency
5272afe), still has the old Chat UI switches and still savesopenAgentTabsInChatByDefault. This PR must ship in the same release that first ships Default experimental native chat to structured chat #22933. If Default experimental native chat to structured chat #22933 ships alone, the people who had opted in before that release can't be identified afterwards. They would then be excluded, never wrongly included.Linked Issue
N/A (maintainer change; release ticket STA-9865).
Visual Proof
All screenshots are from the real app: an isolated, hidden dev build of head
80c26ea764d, captured over CDP. None are from the mock. Before there is no tip: the upgraded chat view just appears.After: a profile saved by the released v1.4.223 with Chat UI on, opened by this build. The tip opens by itself on that first launch. Dark theme; the Claude row's ⋯ menu has Resume in New CLI highlighted.

Light theme, and the illustration's other scene (the Codex CLI row with Resume in New Native Chat highlighted), in dark and light:



Close-up of the menu popover in dark mode. It is lighter than the sidebar, with a ring on the highlighted action (follow-up to "too black on black"):

The "Settings → Experimental" link closes the tip and opens the Chat UI switch:

Excluded profiles see no tip. First, saved Chat UI off; second, a fresh install after turning Chat UI on and restarting:


Opening the tip by its ID on an excluded profile shows nothing:

A narrow 700×560 window, where the layout stacks and Got it is reached by scrolling; and the reduced-motion version, which holds one menu:


Testing
src/main/persistence-native-chat-upgrade-tip-audience.test.tsuses the real sqlite profile store. It covers:feature-tip-startup-gate.test.ts,feature-tip-modal-state.test.tsandsrc/shared/feature-tips.test.tscover:profile-state-store-factory.test.tsruns the same audience rules through the real startup load path (the parsed startup snapshot).NativeChatUpgradeTipDialog.test.tsxchecks the exact copy, the single Got it button and both highlighted menu actions.orca-ci-checks: 23/23 passed. These are the lint, code-quality, localization and typecheck checks that CI's static-analysis job runs.80c26ea764d. Every case passed:Review
Agent skill upstream boundary
Notes
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Author: @BrennanKB5