Skip to content

Add Chat UI upgrade tip and Chat/Terminal default tiles - #36171

Merged
brennanb2025 merged 58 commits into
mainfrom
brennanb2025/chat-ui-here-tip
Oct 31, 2026
Merged

brennanb2025 merged 58 commits into
mainfrom
brennanb2025/chat-ui-here-tip

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​726 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​723
Prod 42 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1829 $\color{#cf222e}{\Huge{\mathbf{−}}}$​31 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1798

Problem

Chat UI is leaving Experimental (#36110), but people who update won't know: nothing on screen tells them, and people who prefer the terminal could read the change as Orca moving away from it.

What users get

A one-time "Chat UI is here" tip on the first launch after updating, with a short animated preview of a chat (typing a question, the agent reading a file, replying with a file link and drawing a small diagram).

  • People who had Chat UI off: "Agents can now open as a chat, with rich messages, visuals and images." / "Prefer the terminal? It stays fully supported and keeps getting better. Your agents keep opening there until you choose Chat." Buttons: Stay in terminal (nothing changes) and Use Chat UI (sets "Open agents as" to Chat; agents the person set individually keep their choice).

  • People who had Chat UI on: "Chat UI is out of Experimental and now part of Orca. Your agents keep opening as chats…" / "The terminal stays fully supported too. Switch any agent back anytime." One Got it button.

  • Both: "Change anytime in Settings → Agents." Fresh installs and the browser client never see it. It is marked seen as soon as it shows. If saving Chat fails, one toast says so and points to Settings → Agents.

  • Settings → Agents, "Open agents as": a new section at the top with two tiles, Chat ("Rich messages, visuals and images.") and Terminal ("Each agent's own CLI."), each with a still preview. It sets the default for every agent on this computer; the per-agent Chat | CLI controls below still override it. "Choose per agent ›" jumps to the Installed list. Shown for this computer only, also in the browser client.

  • When the default changes and some agents keep their own choice: one toast, Settings only, e.g. "Agents now open as chats · Claude and Codex stay in the terminal, as you set." with Set all to Chat (clears those agents' own choices so they follow the default). No toast when nothing differs; never from the tip.

Stacked on #36110 and meant to land together with it.

How

  • New feature tip, first in the tip list, reading the audience record Chat UI leaves Experimental: each agent's Chat or CLI choice decides what opens #36110 captures on update (variant from whether Chat UI was on or off) through the same IPC shape the retired upgrade tip used.
  • The preview is a timer-stepped miniature in the existing tips' style, translated in every locale (file names, the /login route and "Opus" stay as written), with a single still frame under reduced motion, including when the preference changes mid-loop.
  • The shared tip frame gains an optional copy-column class so this tip's button row lines up with the preview card; other tips are unchanged. The shared actions get a configurable secondary label (default stays "Maybe Later").
  • Telemetry: shown and action events; "Use Chat UI" is recorded only after the save succeeds, and "Stay in terminal" separately from closing.

Plan

The Settings section and toast were added after the tip was built (product decision 10-29, option B of a full mock: two tiles, no "mixed" state, default plus per-agent overrides). They add ~510 production lines (two new components: the section and its still previews) and ~195 locale lines.

Design approved from a full-size mock. Production ~740 lines (≈425 the animated preview, comparable to the session-search tip's ≈400); a three-model review unanimously kept this construction over rebuilding the preview from real chat components or CSS keyframes. Tests cover audience → variant, web, the buttons' writes, the configurable label and the word-by-word reveal in English and Japanese.

Testing

Full review path: saved Settings default plus upgrade tip; two adversarial rounds, architecture challenge, final reference/readiness/performance passes. Fixed local Settings targeting, acknowledged-write failures, pending selection handling, quick-dialog placement and repeated theme normalization; one cosmetic token/shadow cleanup remains deferred (P3).

  • Six named renderer/persistence suites through tc-gate: 40 tests passed, including existing-profile audience migration/reopen, checked save failure and successor, per-agent preservation, timer/reduced-motion cleanup, and 20/200 operation contracts. Two tip suites after the equivalent markup repair: 10 tests passed. The existing developer education suite passes all 7 tests after its expected-tip list correction.
  • Localization catalog, extraction and coverage checks passed; actual i18next startup resources produce both notice families correctly at counts 1 and 2.
  • Branch screenshot run passed: Settings → Agents light/dark at wide/narrow widths; quick Agents dialog; retained-choice toast and Set all action; both upgrade-tip variants at normal/reduced motion and narrow widths. Test copies stopped and real config hashes remained unchanged.
  • This is settings/UI evidence with pre-boot eligible profile fixtures. Actual upgrade/lifecycle/agent runs were not required or claimed; migration and primary Use Chat UI behavior are covered by tests.
  • Current-head full CI: all checks passed on 0dc5f828c5d7aa40b5b9b6d30a268f72f46d40f6 (PR CI), including all 12 unit shards, compiler/localization, packaging and platform checks. Screenshot evidence is retained from 1dc14e7 across reviewed equivalent presentation/static/catalog fixes and the clean parent merge; details and images are in the review status comment.

…aunches

Remove the experimentalNativeChat switch and every gate on it. The Chat
settings page, Default Agent Chat | CLI choice, + menu Chat/CLI rows,
source-control surface choice, Antigravity chat section and orchestration
chat-error switch are always present. What a new launch opens comes only
from the per-agent choice (no saved choice opens a chat) plus the existing
support checks.

- One lookup, nativeChatPreferenceFor, keyed by agent id so host-registered
  agents read the same way; unreadable settings still open a terminal.
- A relayed desktop stamp (nativeChatDefault) maps onto the launched agent;
  an explicit surface still wins. Old phones' createSupport keeps admitting
  by the host's per-agent choice.
- settings.get stops publishing the retired switch keys; nothing in the
  repo reads them from a host.
- Startup chat sync and hydration run when some agent can open as a chat
  or the machine already holds chats.
- The retired key is stripped on load. The one-time upgrade tip from the
  chat upgrade is retired with its audience record; a new record, captured
  once from the raw profile, marks which existing profiles had Chat UI off.
- The window-side AI-button tab path, which only ran with the switch off,
  is deleted.
Existing users who never turned Chat UI on would otherwise see new agent
launches open as chats, since an agent without a saved choice now opens as
a chat. The one-time load step that records the new audience also sets
every known agent to CLI for those profiles, in the same save and only
when the record was absent, overwriting saved chat choices the old switch
masked. Profiles that had Chat UI on and new profiles are untouched.

Browser profiles keep their own settings, so the web client does the same
once: a stored switch that is not on seeds CLI choices, and dropping the
key marks the step done.

Agents first seen after this step open as chats.
An agent with no saved choice now opens in the terminal for everyone,
including fresh installs and agents first seen later. The one-time load
step carries what launches opened while Chat UI was experimental: with
the switch on, every known agent without a saved choice is saved as
chat; with it off, chat choices the switch masked are saved as CLI.
Existing profiles join the launch tip audience whether the switch was on
or off. Browser profiles get the same carry from their saved key.

The startup chat restore and host agent list now run only when some
agent is saved as chat or the runtime holds chats.
Profiles saved before Chat UI left Experimental see a "Chat UI is here"
tip once, on the first launch after updating. Fresh installs, unreadable
audience records and the web client never see it.

- Had Chat UI off: says agents can now open as a chat and that the
  terminal stays fully supported. "Use Chat UI" saves Chat for every
  agent Orca knows (the roster the load step carries), then closes;
  "Stay in terminal", close and Escape change nothing.
- Had Chat UI on: says Chat UI is now part of Orca and the terminal
  stays supported; one "Got it" closes without changes.
- Both link to Settings -> Agents. The visual is an animated miniature
  chat that sends a question, reads a file and draws a flow diagram,
  then fades as one and repeats; reduced motion shows the finished
  frame.
- The variant comes from main's once-decided audience record over a
  new onboarding IPC read; the startup gate waits for it.
- FeatureTipActions takes a secondary label; the frame takes a copy
  column class, used here so the buttons line up with the card's
  composer. Other tips are unchanged.
- Telemetry: chat_ui_feature_tip_shown and chat_ui_feature_tip_action.
- The miniature's conversation (tab title, prompt, reply, diagram and
  arrow labels) is translated in every locale; the composer, permission
  chip, working row and Read verb reuse the chat's own strings. File
  names, the /login route and the model name stay as written.
- The reply is one paragraph that wraps naturally; words (segmented per
  locale, so scripts without spaces still stream) reveal in turn.
  Diagram boxes size to their labels and arrow labels never widen the
  row.
- Turning reduced motion on mid-loop jumps to the finished still with
  no transitions.
- Telemetry records use_chat_ui only after the save succeeds and has a
  distinct stay_in_terminal action.
- The dialog renders its own title, so the duplicate catalog copy is
  gone; Use Chat UI writes the full roster without re-spreading saved
  choices.
- Buttons: the primary's focus ring meets the card's bottom edge.
The tip's Use Chat UI now sets the saved default to Chat instead of
writing a choice for every agent, since the base now stores a default.
A new top section in Settings → Agents sets this computer's default for
how agents open: two tiles, Chat ("Rich messages, visuals and images.")
and Terminal ("Each agent's own CLI."), each with a still preview. The
chat preview reuses the tip's copy and flow diagram; the terminal preview
draws Claude Code's interface in the user's terminal theme and font.

- Picking a tile writes only agentDefaultSurface, through the same queue
  as the per-agent Chat | CLI rows. The tiles show the saved default; an
  agent set on its own row keeps its choice and is not reflected up top.
- If any agent's own choice differs from the new default, one toast names
  them ("Claude and Codex stay in the terminal, as you set.") with "Set
  all to Chat" / "Set all to Terminal", which drops those choices so they
  follow the default. Only agents whose row offers Chat | CLI count. No
  toast when nothing differs, and never from the tip.
- "Choose per agent" scrolls to and focuses the Installed list.
- Shown for this computer only (not on a paired host's page); the web
  client gets it too. Searchable as "Open agents as".
- Copy in all locales; the tip's intro copy in other locales also drops
  "file links", matching English.
@brennanb2025
brennanb2025 marked this pull request as ready for review October 30, 2026 04:46
@brennanb2025 brennanb2025 changed the title Chat UI is here: a one-time tip after updating Add Chat UI upgrade tip and Chat/Terminal default tiles Oct 30, 2026
@brennanb2025

Copy link
Copy Markdown
Contributor Author

People upgrading need to discover Chat UI without losing terminal access or their per-agent choices. This adds the one-time upgrade tip and permanent Chat/Terminal default tiles in this computer’s full Agents settings. Individual choices remain in place; a Settings-only toast names opposing choices and offers “Set all.”

Full review completed in two adversarial rounds at 0dc5f82. Fixed five P2 issues: the tip now opens local Settings even when a paired host was selected; save failures surface once; tiles show pending state instead of losing a second selection; the quick Agents dialog keeps its existing per-agent controls; unrelated settings saves avoid repeating custom-theme normalization. “Choose per agent” no longer has a file-link underline. One cosmetic token/shadow cleanup is deferred (P3). No open P0/P1 or confirmed user-visible regression remains.

Verification: six named renderer/persistence suites passed (40 tests), then two focused tip suites passed (10 tests) after the equivalent markup correction; the existing developer education suite passes all 7 tests after its one-line expected-tip update. Coverage includes existing-user audience capture and reopen, primary tip action and failure, actual checked settings writer rejection/successor, paired-host Settings navigation, delayed saves, timer/reduced-motion cleanup, and 20/200 operation contracts. Localization catalog/extraction/coverage checks and actual i18next plural outputs at counts 1/2 passed. All current-head CI checks are green, including all 12 unit shards, compiler/localization, packaging, persistence and WSL checks (PR CI). An earlier unchanged Windows test failed to launch Electron with EBUSY and passed on a failed-job-only retry; the final head also passes Windows packaging.

Branch screenshot checks passed for Settings light/dark wide/narrow, the quick dialog, retained-choice toast and Set all result, and both tip variants including reduced motion/narrow widths. Eligible audiences were seeded before first boot for these screenshots; this is not actual-upgrade or agent-session evidence. These are settings/UI flows, so tests plus screenshots apply; no agent process run was required or claimed. Both test copies stopped, real config hashes stayed unchanged, and the QA lease was released.

Screenshot head is 1dc14e77b5a3d3bf31ceb23dc4afdba5e7217ae0. Later reviewed changes: ee976a4 uses checked types and equivalent existing title/paragraph/SVG representation (10 tip tests); 55a5d6e integrates the parent cleanly with both audience-getter assertions preserved; ef04011 narrows static search IDs and exposes existing plural count/resources with seven exact CLI-literal localization exclusions (catalog/extraction/coverage and real i18next checks). These do not change the photographed layout or interaction. ba4c4de integrates the parent’s checked raw-state types and duplicate-test-import correction after inherited CI failed; 63aad73 removes an accidentally staged setup-only lock delta, so the final tracked lock is unchanged. The parent changes preserve audience/default behavior and both getter assertions; the net correction adds no photographed UI change. 0dc5f82 updates one stale developer-suppression expected-tip entry; its named suite passes all 7 tests and shipped source is unchanged.

For Brennan’s review

Screen Screenshots
Agents settings Light wide · Dark wide · Light narrow · Dark narrow
Quick Agents dialog Per-agent controls
Retained choices Toast and Set all action
Tip: Chat UI was off Normal · Reduced motion · Narrow
Tip: Chat UI was on Normal · Reduced motion · Narrow

Judgment spots: tip Settings owner and default-only action, acknowledged default writes and retained-choice notice, full Settings entry point.

The compact still preview, section-width stacking and use of the user’s terminal appearance are intended under the approved design. The common pattern keeps one preference authority and scoped, acknowledged writes; Orca’s Chat/Terminal tiles and frozen upgrade audience are intentional product requirements. This is stacked on #36110 and intended to land with it.

…graduate

# Conflicts:
#	skill-guides/orchestration.md
#	skill-guides/orchestration/references/low-level-topology.md
#	src/cli/bundled-skill-guides.ts
#	src/main/external-conversations/external-conversation-start.test.ts
#	src/main/persistence/applying-settings/terminal-settings-migrations.ts
#	src/main/runtime/orchestration/chat-worker-error-escalation.ts
#	src/main/runtime/rpc/methods/session-tabs-subscribe-admission.test.ts
#	src/renderer/src/components/settings/OrchestrationChatErrorSetting.tsx
#	src/renderer/src/components/settings/native-chat-provider-choice.test.tsx
#	src/renderer/src/components/tab-bar/use-new-tab-agent-menu-host-preferences.test.tsx
#	src/renderer/src/components/tab-bar/use-new-tab-agent-menu-rows.ts
#	src/renderer/src/i18n/locales/de.json
#	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/pt.json
#	src/renderer/src/i18n/locales/ru.json
#	src/renderer/src/i18n/locales/tr.json
#	src/renderer/src/i18n/locales/zh-Hant.json
#	src/renderer/src/i18n/locales/zh.json
#	src/renderer/src/lib/host-chat-program.test.ts
#	src/renderer/src/lib/launch-agent-in-new-tab-test-fixture.ts
#	src/renderer/src/lib/launch-agent-in-new-tab.test.ts
#	src/renderer/src/lib/launch-agent-in-new-tab.ts
#	src/renderer/src/lib/launch-agent-structured-chat-guard.test.ts
#	src/renderer/src/lib/launch-agent-structured-chat-test-fixture.ts
…nto brennanb2025/chat-ui-here-tip

# Conflicts:
#	src/renderer/src/i18n/locales/en.json
@brennanb2025
brennanb2025 changed the base branch from brennanb2025/chat-ui-graduate to main October 30, 2026 23:14
…graduate

# Conflicts:
#	src/main/ipc/pty/spawn-outcome.ts
# Conflicts:
#	src/renderer/src/i18n/locales/de.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/pt.json
#	src/renderer/src/i18n/locales/ru.json
#	src/renderer/src/i18n/locales/tr.json
#	src/renderer/src/i18n/locales/zh-Hant.json
#	src/renderer/src/i18n/locales/zh.json
…here-tip

# Conflicts:
#	src/main/ipc/onboarding.ts
#	src/main/persistence/applying-settings/persistence-chat-ui-launch-tip-audience.test.ts
#	src/main/persistence/loading-store/profile-preferences.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/feature-tip-modal-state.ts
#	src/renderer/src/components/feature-tips/feature-tip-startup-gate.ts
#	src/renderer/src/components/settings/native-chat-provider-choice.ts
#	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/chat-ui-launch-tip-audience.ts
@brennanb2025
brennanb2025 merged commit 5cf2367 into main Oct 31, 2026
1 check passed
@brennanb2025
brennanb2025 deleted the brennanb2025/chat-ui-here-tip branch October 31, 2026 01:04
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