Repository navigation
Show the native chat upgrade tip only to past experimental users - #26540
brennanb2025 wants to merge 10 commits into
Conversation
Capture once, from the saved profile before defaults apply, whether experimental native chat was on when Chat UI graduates. The marker is write-once (updates cannot set or clear it), never projected to paired clients, and fails closed. Feature tips gain an audience gate applied to startup, rotation and explicit ids. Adds a feature-tip variant to the dialog title/description primitives.
The tip's text was taller than the dialog, and focusing "Got it" on open scrolled the badge and title out of view. Focus now keeps the column at the top, the copy is shorter (it names the right sidebar and says Resume in New CLI is for Claude and Codex chats), and the footer gap is smaller. The badge, title, description and button now go through translations in every locale, and the illustration's menu sizes to its labels so they are no longer cut off. Also fixes the dev education test that hard-coded the tip list, and adds a test that the cohort comes from the saved file rather than from defaults filled in on load.
When the tip's text is taller than the dialog (a short window or a longer language), the text now scrolls on its own while Got it stays pinned below it, so the title is visible on open and so is the focused button. Also adds the missing JSX type import in the dialog test.
…y overflows English now fits the tip's frame at normal window sizes. When a longer translation or a narrow window still overflows, the copy area shows an always-visible scrollbar instead of silently cutting text off. The Got it button stays outside the scrolling area.
The tip goes to people who used native chat before, and some of them may have turned Chat UI off since, so promising it stays on could be wrong. The tip now just says chats talk to the agent directly. Updated in every language.
…w windows In windows narrower than 768 px the tip's scrolling copy area could grow past its box and sit on top of the Got it button, so clicking Got it did nothing. The copy area now sizes itself to the space it is given and scrolls inside it.
Saved chats keep running through a terminal and are not converted, so the tip now says only new chats talk to the agent directly. Updated in every language, using each language's existing wording for "new chat".
…windows Below 768 px wide the tip's copy had its own scroller sized to whatever height the illustration left over, so a 700x560 window squeezed the title and copy into a ~20 px strip. The copy now only scrolls on its own from 768 px up; below that it keeps its full height and the whole panel scrolls, like the other feature tips.
|
Held as a draft for later, with #22934. Today’s Experimental-default change is #22933 alone; this tip does not ship today. Review and QA summary (head 5769a0d)The problem. #22933 makes supported new chats structured while retaining the Experimental switch. The later #22934 moves the switch into regular settings, after which it can no longer identify experimental users. This PR records the audience at that later graduation and explains the native-chat upgrade to those profiles. What changes for users. Profiles that had experimental native chat on before updating see a one-time "Native chat got an upgrade" tip at first launch. It explains the change and both Resume menu items, and links to Settings → Chat. Everyone else never sees it. Who qualifies is recorded once, on first load, from the saved setting. Fixed during review and QA
Left as is (minor, noted)
Checked against the screenshots, not taken from the test driver's readings
Verified All in isolated profiles with hidden windows; the real Claude, Codex and Grok config files were unchanged on both Macs.
Not verified
CI on 5769a0d is still running and was not waited on. |
|
Superseded by #26710, which ships the tip as a normal startup tip in the same release as #22933 and points to Settings → Experimental. The audience is captured on first load of that release instead of at the later settings graduation. This draft and its checkout are kept for reference; it is not meant to merge. |
|
Closing as superseded: a merged PR already covers this change. Merged #26710 (820277c) body says it 'replaces draft #26540'; it shows the one-time native chat upgrade tip only to profiles with Experimental Chat UI on before the (Stale-PR cleanup 2026-10-20, approved by Brennan. Reopen if something here is still missing on main.) |
ELI5
Held as a draft for the later regular-settings rollout, alongside #22934. Today #22933 alone makes enabled Experimental native chat default to structured; this tip does not ship today.
Native chat is leaving Experimental, and new chats now talk to the agent directly instead of mirroring a terminal. People who already used experimental native chat would see new chats behave differently, with nothing explaining why. This PR shows those people, and only them, a one-time tip about what changed.
What Changed
The problem. #22933 makes supported new chats structured while retaining the Experimental switch; saved chats stay as they were. The later #22934 moves that switch into regular Settings → Chat. After graduation, the switch can no longer distinguish experimental users from regular opt-ins. This PR captures the saved Experimental choice on the first launch of that graduation update, before regular opt-ins become possible, and keeps that historical audience permanently.
What users see.
Mechanism.
experimentalNativeChatbefore defaults are applied. It storesnativeChatGraduationCohort:'experimental-opt-in'only if that saved value was exactlytrue, otherwise'other'. A malformed value becomes'other'. An existing value is never recomputed or read from the live switch.updateSettings) drop the key. The offline profile writers keep saved keys as they are, so they preserve it. The host never sends the key to paired or web clients, so they can't be made eligible; a paired desktop app decides from its own local profile.FeatureTip.audienceis checked on every path that picks a tip: startup, rotation, and opening a tip by id.Why
The live switch stops meaning "was an experimental user" once it graduates. So the fact is captured once, at the only moment it is true, next to Orca's existing telemetry and tab-switch cohort markers. A separate "seen" flag for this group was rejected: the existing "tip seen" record already covers it, and the group fact would still be needed underneath.
Release dependency (mandatory)
496ee9bd7ed. The tip describes that menu item, so it must not ship without it.Limits
'other'.How this differs from the common pattern
Linked Issue
N/A: maintainer change in the native chat graduation stack (#22933, #22934).
Visual Proof
Screenshots come from isolated test profiles with hidden windows. Rows marked 623e756 are the final app code: the pushed head 5769a0d differs only by a test-only change from the base. Rows marked cc398ed are from the previous head, which has the same layout from 768 px up.
On open (startup tip, opt-in profile)
The illustration alternates between the two Resume menus
A longer translation scrolls inside the text box with a visible scrollbar (Japanese, 1024×640, cc398ed)
Narrow, short window (700×560): before and after the layout fix
On open the badge, title and first paragraph show. The rest of the text, the Settings link and Got it are reached by scrolling the panel. The session search tip does the same in this frame:
Japanese at 640×700 (623e756)
Keyboard and the Settings link at 700×560 (623e756)
Known limit at the minimum window size (600×400, 623e756). This is not a pass. The shared tip frame gives the text column 72 px, so only the badge shows until you scroll. The session search tip gets the same 72 px column. See Limits.
Testing
otherprofile.native-chat-graduation-cohort.test.ts;persistence-native-chat-graduation-cohort.test.ts(real settings store: saved on/off/missing/fresh install, switch turned on later, opt-in then off, blocked writes, malformed value);runtime-client-settings-graduation-cohort-projection.test.ts.feature-tips.test.ts,feature-tip-startup-gate.test.ts,feature-tip-modal-state.test.ts.NativeChatUpgradeTipDialog.test.tsx,NativeChatUpgradeFeatureTipVisual.test.tsx.Review
Three review rounds, then two narrow reviews of the last layout fix (one Codex, one Claude Opus). Findings fixed:
Left as is (all minor):
Agent skill upstream boundary
Notes
No platform-specific code. The marker stays with the profile on the machine that owns it. Mobile doesn't use this dialog. One new optional settings key; nothing removed.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Author: @BrennanKB5