Repository navigation
Add Chat UI upgrade tip and Chat/Terminal default tiles - #36171
Conversation
…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.
|
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 For Brennan’s review
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
…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
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
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).
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.