Skip to content

Show pre-upgrade Experimental Chat UI users a one-time native chat upgrade tip - #26710

Merged
brennanb2025 merged 3 commits into
mainfrom
brennanb2025/native-chat-experimental-tip
Oct 9, 2026
Merged

brennanb2025 merged 3 commits into
mainfrom
brennanb2025/native-chat-experimental-tip

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • NEW · Native chat got an upgrade
  • "New chats with supported agents now open in the upgraded chat view. To move between chat and CLI, open Agent Session History in the right sidebar:"
    • Resume in New Native Chat opens a supported CLI conversation in native chat.
    • Resume in New CLI copies a Claude or Codex chat into a new CLI session. The original chat stays as it is.
  • "Manage Chat UI in Settings → Experimental." (the link closes the tip and opens that setting)
  • One Got it button. X, Escape and clicking outside also close it.

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:

  1. Who is in the audience (main process, decided once). When this release first loads a profile, it reads the profile exactly as the previous build saved it, before any defaults or migrations run. It then stores a permanent record, nativeChatUpgradeTipAudience, set to eligible or excluded:
    • Eligible only when the saved experimentalNativeChat is true and the saved settings still contain openAgentTabsInChatByDefault. 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.
    • Excluded for everything else: Chat UI off or never set, a brand-new profile, Chat UI on without that proof, or a damaged record.
    • Once a record exists it is kept as is and never recomputed from the live setting. If the record is ever missing on a later version, the proof key is already gone, so the profile is excluded. Unknown history always fails closed.
    • The record is not part of the default state. A new profile, a profile transfer or a reset therefore never gets an eligible record; only the loader writes one.
  2. How the app learns it. A read-only IPC call, 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".
  3. How the tip is shown. It is one more entry in the existing feature-tip list, placed first, and treated as already done for anyone outside the audience. The startup tip check waits for main's answer before choosing any tip. Opening the tip directly by its ID shows nothing outside the audience. Dismissal is the normal seen-tips list, marked when the tip is shown, so it never comes back after a restart or a Chat UI on/off toggle.
  4. Seen tips are now only ever added. Before this change, saving the seen-tips list replaced it. A paired browser tab or a renderer holding an older copy could then erase a dismissal and bring a tip back. The list is now merged on save, the same way the seen-tours list already is. This affects every tip, and only ever keeps tips dismissed.

Why

  • The audience is a historical fact. Once this release has run, no current setting can tell an original opt-in apart from someone who turned Chat UI on later. So the fact has to be captured on the first load of the release that ships Default experimental native chat to structured chat #22933, and then frozen. Working it out from the live switch, now or at the future graduation, would show the tip to new users. That is exactly what must never happen.
  • Showing it as a normal restart tip, rather than waiting for a chat to open, reuses the existing tip flow, ordering and dismissal with no new trigger. This is what was asked for.
  • This follows Orca's existing one-time cohort decisions made at profile load, such as the tab-switch shortcut seed and the telemetry cohort. Updating to a release and seeing a one-time "what's new" notice is the common pattern.
  • This replaces draft Show the native chat upgrade tip only to past experimental users #26540. That draft sat on top of the future settings graduation (Put Chat UI in the existing Chat settings section #22934), took its snapshot at that later point, and linked to Settings → Chat. Those choices were wrong for this release.

Release dependency

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.
Upgrade tip after updating from v1.4.223, dark

Light theme, and the illustration's other scene (the Codex CLI row with Resume in New Native Chat highlighted), in dark and light:
Upgrade tip, light
Second scene, dark
Second scene, 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"):
Popover close-up, dark

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

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

Opening the tip by its ID on an excluded profile shows nothing:
Forced tip-by-id on an excluded profile: nothing renders

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:
Narrow window, scrolled to Got it
Reduced motion holds the first menu

Testing

  • src/main/persistence-native-chat-upgrade-tip-audience.test.ts uses the real sqlite profile store. It covers:
    • Saved on → eligible. Saved off, never set, fresh profile → excluded.
    • Saved off, never set and fresh profiles that turn Chat UI on later stay excluded across three restarts.
    • A future build with Chat UI on by default keeps an excluded record excluded.
    • A missing record found by a later build fails closed, and so does a damaged record.
    • An original member stays in after turning Chat UI off.
    • The proof key is stripped on the first save.
    • Defaults never contain a record or the proof key.
    • Profile transfers carry a saved record and never invent one.
  • feature-tip-startup-gate.test.ts, feature-tip-modal-state.test.ts and src/shared/feature-tips.test.ts cover:
    • The tip opens first for the audience and never for anyone else.
    • Every tip waits for main's answer.
    • It is not shown again once seen.
    • It waits while the resume dialog is open.
    • Opening it directly by its ID is refused outside the audience.
  • profile-state-store-factory.test.ts runs the same audience rules through the real startup load path (the parsed startup snapshot).
  • A stale-client write to the seen-tips list keeps the tip dismissed.
  • NativeChatUpgradeTipDialog.test.tsx checks the exact copy, the single Got it button and both highlighted menu actions.
  • Copy fit: Japanese, Spanish and French copy was tightened so the tip fits the existing dialog frame. Measured in headless Chromium against the approved mock: ja/es/ko/zh fit at 1024–1440 px, fr is 20 px over (the same as English at 820 px). Got it takes focus without scrolling, so the title is always visible on open.
  • orca-ci-checks: 23/23 passed. These are the lint, code-quality, localization and typecheck checks that CI's static-analysis job runs.
  • I manually tested these changes locally. Real-app QA: hidden isolated dev builds on macOS, driven over CDP by a non-Claude agent, on head 80c26ea764d. Every case passed:
    • R1: the eligible profile sees the tip on its own at startup, light and dark, both scenes.
    • R2: Got it closes it and it doesn't come back on relaunch.
    • R3: X, Escape and clicking outside each close it, with no replay.
    • R4: the Settings → Experimental link works.
    • R5, R6, R7, R8: saved off, never set, fresh install and "on but unproven" profiles never see it, even after turning Chat UI on and relaunching twice.
    • R9: an eligible user toggling Chat UI off and on doesn't get it again.
    • R10: opening it by its ID is refused, and the renderer has no API that writes the audience.
    • R11: layout at 1280×800, 900×600 and 700×560, in both themes and with reduced motion.
    • R12: a real upgrade. A profile saved by the released v1.4.223 build sees the tip once on its first launch of this build.
    • The user also reviewed it in a visible build and approved the look.
  • Automated tests added/updated

Review

  • Two rounds of independent review plus a readiness pass. The areas covered:
    • audience, persistence and the remote wire;
    • gating, UI, translation and performance;
    • the architecture, including an independent design sketched from the issue alone.
  • None of them found a P0 or P1. The final comment lists what was fixed and what was deferred.

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

  • SSH / remote: the decision is local profile state in the desktop main process. Paired web clients never see the tip, and no remote call or settings projection carries the record. Mobile is not affected.
  • Cross-platform: no platform-specific code.
  • Compatibility: a new optional top-level profile field and a new read-only IPC call, with no changes to the paired-client wire.

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)
  • 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)

Author: @BrennanKB5

…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.
@brennanb2025
brennanb2025 marked this pull request as ready for review October 9, 2026 01:13
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

📝 Walkthrough

Walkthrough

The 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 80c26

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)

Check name Status Explanation Resolution
Docstring Coverage Warning 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:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check Passed The title clearly and concisely describes the primary change: a one-time native chat upgrade tip for users who enabled Experimental Chat UI before the upgrade.
Description check Passed The description is complete and directly matches the template. It explains the user impact, implementation, rationale, release dependency, linked issue exception, visual proof, testing, compatibility …
Full details: Docstring Coverage

Explanation

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.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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

Comment @coderabbitai help to get the list of available commands.

@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/feature-tips/feature-tip-startup-gate.test.ts (1)

369-374: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Rename the test to match its assertion.

The test name says "never opens", but the test expects an open decision for agent-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
📥 Commits

Reviewing files that changed from the base of the PR and between dec18a8 and 80c26ea.

📒 Files selected for processing (36)
  • src/main/ipc/onboarding.ts
  • src/main/persistence-native-chat-upgrade-tip-audience.test.ts
  • src/main/persistence/applying-settings/ui-interaction-merge.ts
  • src/main/persistence/applying-settings/ui-state-update.ts
  • src/main/persistence/loading-store/loaded-cohort-migrations.ts
  • src/main/persistence/loading-store/loaded-state-parsing.ts
  • src/main/persistence/loading-store/profile-preferences.ts
  • src/main/persistence/profile-state/profile-state-store-factory.test.ts
  • src/main/startup/dev-education-suppression.test.ts
  • src/preload/api/onboarding-api.ts
  • src/preload/api/onboarding-bridge.ts
  • src/renderer/src/app-shell/use-onboarding-and-feature-tips.ts
  • src/renderer/src/components/feature-tips/FeatureTipsModal.tsx
  • src/renderer/src/components/feature-tips/NativeChatUpgradeFeatureTipVisual.tsx
  • src/renderer/src/components/feature-tips/NativeChatUpgradeTipDialog.test.tsx
  • src/renderer/src/components/feature-tips/NativeChatUpgradeTipDialog.tsx
  • src/renderer/src/components/feature-tips/SessionSearchFeatureTipVisual.tsx
  • src/renderer/src/components/feature-tips/feature-tip-modal-state.test.ts
  • src/renderer/src/components/feature-tips/feature-tip-modal-state.ts
  • src/renderer/src/components/feature-tips/feature-tip-session-panel-demo.tsx
  • src/renderer/src/components/feature-tips/feature-tip-startup-gate.test.ts
  • src/renderer/src/components/feature-tips/feature-tip-startup-gate.ts
  • src/renderer/src/components/ui/dialog.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/store/slices/ui/ui-slice-contract-contextual.ts
  • src/renderer/src/store/slices/ui/ui-slice-feature-actions.ts
  • src/renderer/src/web/preload-api/web-onboarding-api.ts
  • src/shared/feature-tips.test.ts
  • src/shared/feature-tips.ts
  • src/shared/native-chat-upgrade-tip-audience.ts
  • src/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.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Review and QA summary (head 80c26ea764d)

Problem. The next release makes Experimental Chat UI open new chats with supported agents in the upgraded native chat view (#22933). People who already had Chat UI on would see that change with no explanation.

User-facing change. Those people, and only those people, see one normal startup tip, "Native chat got an upgrade". It explains the change and how to move between chat and CLI from Agent Session History, and links to Settings → Experimental. It shows once. Got it, X, Escape, clicking outside and the Settings link all dismiss it for good.

The permanent rule. Who sees it is decided once, from the profile exactly as the previous build saved it, and stored. Nothing ever recomputes it from the live setting. People who had Chat UI off or never set, new installs, anyone who turns Chat UI on later, and the future move of Chat UI out of Experimental (even if it becomes on by default) can never become eligible. Missing or unprovable history counts as not eligible.

Release dependency.

Fixed during review

  • Japanese and French opened scrolled past the title. Got it now takes focus without scrolling, and the ja/es/fr copy was tightened to fit the existing frame.
  • The resume-dialog wait is gone. It only helped in one order and could hold every startup tip back for a whole session, so the tip now behaves exactly like the other tips.
  • In Chinese the upward menu was clipped at the top.
  • The French intro said "from chat to CLI"; it now says "between chat and CLI".
  • The seen-tips list is now added to, never replaced, so a stale paired client can't bring a dismissed tip back. This affects every tip.
  • New tests run the audience rules through the real startup load path and pin the saved reason.

Deferred (not blocking)

  • Someone with interrupted chats may see the "resume chats" prompt and this tip together on the first launch after updating. They close one at a time. Every startup tip already has this problem.
  • In the narrow stacked layout (under 768 px wide), Got it is reached by scrolling. That is the shared tip frame's existing behaviour.

Verified

  • Automated tests, using the real sqlite profile store, cover:
    • saved on → eligible; saved off, never set and fresh → excluded;
    • those excluded profiles turning Chat UI on and restarting three times;
    • a future build with Chat UI on by default, and a lost or damaged record;
    • the real startup load path, profile transfers, and defaults never carrying a record;
    • tip gating, the forced-by-ID refusal, the dialog copy, and the stale-client seen list.
  • orca-ci-checks passed 23/23 before every push.
  • CI on 80c26ea: every job passed. A Windows PTY test flaked once and passed on re-run; this PR touches no PTY code.
  • Real-app QA passed every case, R1 to R12, including a real upgrade from a profile saved by v1.4.223. Screenshots are in the PR body.
  • Brennan reviewed the tip in a visible build and approved the visuals.

Not verified

  • Windows and Linux real-app runs. The Linux run was unreliable, and there is no platform-specific code here.
  • A typecheck or test run on the release branch itself; only the trial cherry-pick was done there.

@brennanb2025
brennanb2025 merged commit 820277c into main Oct 9, 2026
85 of 104 checks passed
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