Skip to content

Show the native chat upgrade tip only to past experimental users - #26540

Closed
brennanb2025 wants to merge 10 commits into
brennanb2025/native-chat-settings-panefrom
brennanb2025/native-chat-upgrade-tip
Closed

brennanb2025 wants to merge 10 commits into
brennanb2025/native-chat-settings-panefrom
brennanb2025/native-chat-upgrade-tip

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Profiles that had experimental native chat on before updating see a "Native chat got an upgrade" tip once, on first launch, in the existing feature-tip dialog. It says:
    • New chats now talk to the agent directly instead of mirroring a terminal.
    • In Agent Session History, in the right sidebar:
      • Resume in New Native Chat moves a CLI session into a chat.
      • Resume in New CLI copies a Claude or Codex chat into a new CLI session. The original chat stays as it is.
    • "Change it anytime in Settings → Chat" opens the Chat settings. "Got it" closes the tip.
  • Every other profile never sees this tip. That covers Chat UI off or never set, fresh installs, and anyone who turns Chat UI on later. Their chats change the same way as everyone else's.

Mechanism.

  • The audience is recorded once. On first load, main reads the raw saved experimentalNativeChat before defaults are applied. It stores nativeChatGraduationCohort: 'experimental-opt-in' only if that saved value was exactly true, otherwise 'other'. A malformed value becomes 'other'. An existing value is never recomputed or read from the live switch.
  • Nothing else can change it. Normal settings updates (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.
  • Tips can have an audience. FeatureTip.audience is checked on every path that picks a tip: startup, rotation, and opening a tip by id.
  • The dialog reuses the shared tip frame and buttons, and is fully translated. Its illustration alternates between the two Resume menus. "Got it" sits below the scrolling text, and opening the tip doesn't scroll it, so the title starts in view. From 768 px wide only the text scrolls, with a visible scrollbar when a translation runs long; below 768 px the whole panel scrolls, like the other tips.

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)

Limits

  • Backups: a backup saved before this version is classified from its own saved setting. A backup saved after it already carries the marker. Deleting Orca's data acts like a fresh install, which lands in 'other'.
  • Downgrade: this branch's loader keeps settings keys it doesn't recognize, so the marker survives a downgrade to a build with this loader. Older releases weren't checked. The "tip seen" record doesn't survive the same way: an older build drops tip ids it doesn't know the next time it saves that list. So someone who downgrades and then upgrades again can see the tip a second time.
  • Small windows: at the minimum window size (600×400) the illustration takes the whole dialog height, so the text shows in a thin strip you scroll. The upgrade tip and the tested session-search comparison share this constrained frame. Guidance and actions remain reachable by scrolling; the shared frame is left for a follow-up.

How this differs from the common pattern

  • A one-time startup dialog for upgrade news. Intended. The common pattern puts release notes in an update popover or a settings page. This reuses Orca's existing one-time tip dialog and shows only to the group whose chats changed.
  • The illustration isn't a pixel copy of the sidebar. Intended. Small chat and terminal icons tell the two rows apart, and the tooltip sits below the menu to fit the panel.

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)

Desktop, dark (cc398ed, 1728×994) Light, settled scene (623e756, 1280×640)
Upgrade tip at startup, dark theme Upgrade tip, light theme, Resume in New CLI scene

The illustration alternates between the two Resume menus

Resume in New Native Chat Resume in New CLI
Illustration: Resume in New Native Chat menu Illustration: Resume in New CLI menu with tooltip

A longer translation scrolls inside the text box with a visible scrollbar (Japanese, 1024×640, cc398ed)

Japanese tip at 1024x640 with a scrollbar on the text

Narrow, short window (700×560): before and after the layout fix

Before (cc398ed): text squeezed to a sliver After (623e756): on open After: panel scrolled to Got it
Before: only NEW and Got it visible After: badge, title and first paragraph on open After: rest of the text, Settings link and Got it after scrolling

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:

Session search tip, 700×560, on open Scrolled to its button
Session search tip at 700x560 on open Session search tip scrolled

Japanese at 640×700 (623e756)

On open Scrolled After a real click on 了解 (tip closed)
Japanese 640x700 on open Japanese 640x700 scrolled After clicking 了解, no tip

Keyboard and the Settings link at 700×560 (623e756)

Tab: Close gets the ring Shift+Tab: Got it scrolls into view with its ring Clicking Settings → Chat opens the Chat pane
After Tab, Close button focused After Shift+Tab, Got it focused Chat settings pane after clicking the link

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.

Upgrade tip on open Scrolled to Got it Session search tip, same frame, scrolled
600x400 on open, badge only 600x400 scrolled to Got it Session search tip at 600x400

Testing

  • I manually tested these changes locally
    • Run in isolated test profiles with hidden windows on this Mac and on a second Mac. Agent CLIs were print-and-exit stand-ins, and the real Claude, Codex and Grok config files were unchanged before and after every run.
    • Who sees the tip (app startup only, not agent launches):
      • Saved Chat UI on: the tip opened, and Got it or the Settings link closed it; later normal restarts did not replay it. Checked on both Macs.
      • No tip for: saved off, no saved value, a fresh install through onboarding, a profile that turned Chat UI on later. An already-dismissed opt-in profile did not replay the tip after turning Chat UI off. Turning the live switch off does not change its historical eligibility.
      • Forcing the tip by id, or forging the marker through IPC, showed nothing for a non-opt-in profile.
    • New-agent launches (separate from the tip): with Chat UI off, New tab → Claude opened a terminal tab. With it on, it opened a "Claude Chat" tab. Neither showed the tip for an other profile.
    • Layout on the final app code (623e756 = 5769a0d minus a test-only base change):
      • At 1024×640 and 1280×640 the English text fits with about 8 px to spare. At 768×600 it scrolls 49 px inside the text box, with a visible scrollbar and Got it clear.
      • Below 768 px (English and Japanese at 640×700 and 700×560) the title shows on open, and the rest is reached by scrolling the panel; nothing overlaps Got it.
      • Real Got it / 了解 clicks closed the tip and recorded it as seen.
      • Tab and Shift+Tab stay in the dialog.
      • On open in a short narrow window, Got it is focused below the fold with no ring; Enter still closes the tip.
    • Translations: French is the longest, overflowing 60 px at 1024×640 and 118 px at 768×600. It scrolls with the scrollbar, like Japanese and Spanish.
  • Automated tests added/updated
    • Who gets the tip: 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.
    • How tips are chosen: feature-tips.test.ts, feature-tip-startup-gate.test.ts, feature-tip-modal-state.test.ts.
    • The dialog: 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:

  • A cleanup test hard-coded the list of tip ids, so adding this tip would have failed CI. It now derives the list.
  • The copy said "worktree sidebar" and offered "Resume in New CLI" for every chat. It now says "right sidebar" and "a Claude or Codex chat". It also dropped "Chat UI stays on for you", which can be false, and says "New chats" because saved chats don't change. The tip's title, badge and button are now translated.
  • The text was taller than the tip's text area. Focusing Got it on open scrolled the title away, and at 768 px the last line was half hidden. Now Got it sits below a text box with its own scrollbar, and opening doesn't scroll it.
  • Below 768 px that text box first spilled over Got it, then shrank to a thin strip in short windows. Below 768 px the whole panel now scrolls instead, like the other tips.

Left as is (all minor):

  • At 600×400 the shared tip frame leaves almost no room for text (see Limits).
  • Pressing Tab can move focus to the Settings link while it's scrolled out of view. This is existing dialog behaviour.
  • Below 768 px in a short window, Got it is focused but below the fold, so its focus ring isn't visible on open; Enter still closes the tip. This keeps the title in view, at that cost.
  • First shipping together with Put Chat UI in the existing Chat settings section #22934 is a process rule, stated above. Default experimental native chat to structured chat #22933 can ship earlier while the switch stays Experimental. The downgrade case is described in Limits.

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

  • 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

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.
@brennanb2025

brennanb2025 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor Author

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

  • A cleanup test hard-coded the list of tip ids and would have gone red in CI with a new tip. It now derives the list.
  • Copy fixes:
    • "right sidebar", not "worktree sidebar";
    • "Resume in New CLI" applies only to Claude and Codex chats;
    • dropped "Chat UI stays on for you", which can be false;
    • "New chats", because saved chats don't change;
    • title, badge and button are translated.
  • The text was taller than the tip's text area. Opening the tip scrolled the title away, and at 768 px the last line was half hidden. Got it now sits below a text box with its own visible scrollbar, and opening doesn't scroll it.
  • Below 768 px wide that text box first spilled over Got it. Then, in short windows, it shrank to a ~20 px strip that hid the title. Below 768 px the whole panel now scrolls instead, as the other tips already do.

Left as is (minor, noted)

  • At the minimum window size (600×400) the shared tip frame leaves a 72 px column, so only the "New" badge shows until you scroll. The upgrade tip and the tested session-search comparison share this constrained frame; guidance and actions are reachable by scrolling. This is a follow-up for the shared frame, not this PR.
  • In a short narrow window, Got it is focused on open but sits below the fold, so its focus ring isn't visible. Enter still closes the tip. This is the cost of keeping the title in view.
  • Tab can move focus to the Settings link while it's scrolled out of view. This is existing dialog behaviour.
  • Put Chat UI in the existing Chat settings section #22934 and this PR must first ship together in the future graduation update, before regular opt-ins become possible. Default experimental native chat to structured chat #22933 can ship earlier while Chat UI remains Experimental. The historical audience is captured at graduation, not today. A downgrade then re-upgrade can show the tip twice.

Checked against the screenshots, not taken from the test driver's readings

  • One shot was "almost black": it actually shows the held illustration scene.
  • The Japanese title was "clipped": it wraps to two whole lines.
  • "All copy visible at 700×560 on open" was false: only the title and first paragraph are.
  • A 768×600 overlap flag came from clipped text's rectangle; Got it is clear in the shot.
  • A reviewer estimated Japanese as the longest overflow. French is longer: 118 px at 768×600, against 49 px for Japanese.

Verified

All in isolated profiles with hidden windows; the real Claude, Codex and Grok config files were unchanged on both Macs.

  • App startup (who sees the tip):
    • Opt-in profile: sees it once, on both Macs.
    • No tip for: saved off, no saved value, fresh install with onboarding, or Chat UI turned on later. An already-dismissed opt-in profile did not replay after switching off; current OFF does not change historical eligibility.
    • Forcing the tip by id, or forging the marker, did nothing.
  • New-agent launches, kept separate from startup: on the second Mac, with stand-in agents, Chat UI off opened a terminal tab and Chat UI on opened a "Claude Chat" tab. No tip appeared for a non-opt-in profile.
  • Final app code: checked on 623e756, which is the same app code as 5769a0d.
    • Layout at 1024×640, 1280×640 and 768×600.
    • English and Japanese at 640×700 and 700×560: title on open, the rest reached by scrolling.
    • Real Got it / 了解 clicks closed the tip and recorded it as seen.
    • The Settings → Chat click opened the Chat pane.
    • Tab and Shift+Tab stay in the dialog.
    • Light theme settles on one scene.
  • Gates on 5769a0d: orca-ci-checks 23/23, including typecheck. The tip, cohort and terminal-pane budget tests pass. The final readiness checklist against base 6c9e1d4 is PASS on this exact head, with counsel skipped and no P0/P1 candidates.

Not verified

  • The session search tip's view on open at 600×400. Its shot caught the column already scrolled.
  • Per-keypress focus data for the extra Tab presses, and the saved-state read right after the Settings link click. The bridge lost that output; the screenshots show each outcome.
  • Startup and launch rows ran on the previous head, cc398ed. That head has the same tip-selection code, and the layout from 768 px up is the same.
  • The optional combined-stack check with fix(session-history): keep a legacy Codex conversation's branch current after Codex updates it #26563 was not run.
  • No real agent provider was launched; rendered Windows, Linux, WSL, SSH and mobile flows were not exercised.

CI on 5769a0d is still running and was not waited on.

@brennanb2025
brennanb2025 marked this pull request as ready for review October 8, 2026 13:34
@brennanb2025
brennanb2025 marked this pull request as draft October 8, 2026 17:50
@brennanb2025

Copy link
Copy Markdown
Contributor Author

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.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

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

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