Skip to content

The agent that grows with you

feat(desktop): setup_beat cards for each onboarding beat, collapsing to a receipt

alt-glitchcd59efaed209
diff --git a/apps/desktop/src/components/assistant-ui/setup-beat/beat-cards.tsx b/apps/desktop/src/components/assistant-ui/setup-beat/beat-cards.tsx
new file mode 100644
index 00000000000..623d44e6e5d
--- /dev/null
+++ b/apps/desktop/src/components/assistant-ui/setup-beat/beat-cards.tsx
@@ -0,0 +1,74 @@
+'use client'
+
+import { useState } from 'react'
+
+import { Button } from '@/components/ui/button'
+import { Chip } from '@/components/ui/chip'
+import { Input } from '@/components/ui/input'
+import { useI18n } from '@/i18n'
+
+export interface BeatOption {
+ id: string
+ label: string
+}
+
+/** The `options` rows of a card payload (layout, tour, build); malformed rows are left out. */
+export function beatOptions(card: Record<string, unknown>): BeatOption[] {
+ const rows = Array.isArray(card.options) ? card.options : []
+
+ return rows.flatMap(row => {
+ if (typeof row !== 'object' || row === null) {
+ return []
+ }
+
+ const { id, label } = row as Record<string, unknown>
+
+ return typeof id === 'string' && typeof label === 'string' ? [{ id, label }] : []
+ })
+}
+
+/** A text box for the name. The OS account's full name is offered as a row and is sent only when picked. */
+export function NameCard({ onName, suggested }: { onName: (name: string) => void; suggested?: string }) {
+ const { t } = useI18n()
+ const [name, setName] = useState('')
+ const typed = name.trim()
+
+ return (
+ <div className="grid gap-2">
+ {suggested && <Chip label={t.firstRun.useName(suggested)} on={false} onToggle={() => onName(suggested)} variant="pill" />}
+ <form
+ className="flex items-center gap-2"
+ onSubmit={event => {
+ event.preventDefault()
+
+ if (typed) {
+ onName(typed)
+ }
+ }}
+ >
+ <Input
+ aria-label={t.firstRun.namePlaceholder}
+ autoFocus
+ className="flex-1"
+ onChange={event => setName(event.target.value)}
+ placeholder={t.firstRun.namePlaceholder}
+ value={name}
+ />
+ <Button disabled={!typed} size="xs" type="submit" variant="textStrong">
+ {t.common.continue}
+ </Button>
+ </form>
+ </div>
+ )
+}
+
+/** The backend's options for tour and build, one pill each; a click is the pick. */
+export function OptionsCard({ onPick, options }: { onPick: (option: BeatOption) => void; options: BeatOption[] }) {
+ return (
+ <div className="flex flex-wrap gap-2" role="group">
+ {options.map(option => (
+ <Chip key={option.id} label={option.label} on={false} onToggle={() => onPick(option)} variant="pill" />
+ ))}
+ </div>
+ )
+}
diff --git a/apps/desktop/src/components/assistant-ui/setup-beat/plugins-card.tsx b/apps/desktop/src/components/assistant-ui/setup-beat/plugins-card.tsx
new file mode 100644
index 00000000000..72c8d1baab3
--- /dev/null
+++ b/apps/desktop/src/components/assistant-ui/setup-beat/plugins-card.tsx
@@ -0,0 +1,108 @@
+'use client'
+
+import type { CatalogPluginPresence, PluginsManageResult } from '@hermes/shared'
+import { useStore } from '@nanostores/react'
+import { useQuery } from '@tanstack/react-query'
+
+import { useSessionView } from '@/app/chat/session-view'
+import { useConnectionOwner } from '@/components/assistant-ui/use-connection-owner'
+import { Button } from '@/components/ui/button'
+import { Chip } from '@/components/ui/chip'
+import { useI18n } from '@/i18n'
+import { lookupPluginCatalogEntry } from '@/lib/plugin-catalog'
+import { $agentPlugins } from '@/store/agent-plugins'
+import type { ConnectionOwner } from '@/store/connection-request'
+import { requestGatewayForAgent } from '@/store/gateway'
+import { openCatalogPluginInstall } from '@/store/plugin-catalog-install'
+
+const pluginNames = (card: Record<string, unknown>): string[] =>
+ Array.isArray(card.plugins) ? card.plugins.filter((name): name is string => typeof name === 'string') : []
+
+async function readPresence(owner: ConnectionOwner, names: string[]): Promise<CatalogPluginPresence[]> {
+ const result = await requestGatewayForAgent<PluginsManageResult>(owner.connectionId, owner.profile, 'plugins.manage', {
+ action: 'presence',
+ names
+ })
+
+ return result.presence ?? []
+}
+
+async function openInstall(name: string, profile: string): Promise<void> {
+ const lookup = await lookupPluginCatalogEntry(name)
+
+ if (lookup.ok) {
+ openCatalogPluginInstall(lookup.entry, profile)
+ }
+}
+
+/** The plugins this OS runs, from the card payload; Install opens the reviewed install dialog in place,
+ * Continue answers with the ones installed. */
+export function PluginsCard({
+ card,
+ onContinue
+}: {
+ card: Record<string, unknown>
+ onContinue: (installed: string[]) => void
+}) {
+ const { t } = useI18n()
+ const copy = t.firstRun
+ const storedId = useStore(useSessionView().$storedId)
+ const owner = useConnectionOwner(storedId, true)
+ const names = pluginNames(card)
+ const plugins = useStore($agentPlugins)
+
+ const presence = useQuery({
+ enabled: Boolean(owner) && names.length > 0,
+ queryFn: () => readPresence(owner!, names),
+ queryKey: ['onboarding', 'plugins.presence', owner?.connectionId, owner?.profile, ...names],
+ staleTime: Infinity
+ })
+
+ const installed = new Set(
+ plugins.flatMap(row => [row.catalog_name, row.name]).filter((name): name is string => Boolean(name))
+ )
+
+ const rows = presence.data ?? []
+
+ return (
+ <div className="grid gap-3">
+ {presence.isPending && names.length > 0 ? (
+ <p className="text-xs text-(--ui-text-tertiary)" role="status">
+ {copy.loading}
+ </p>
+ ) : rows.length === 0 ? (
+ <p className="text-xs text-(--ui-text-tertiary)">{copy.noPlugins}</p>
+ ) : (
+ <div className="grid grid-cols-2 gap-2 p-1">
+ {rows.map(row => {
+ const on = installed.has(row.name)
+
+ return (
+ <Chip
+ className="w-full"
+ key={row.name}
+ label={row.title || row.name}
+ on={on}
+ onToggle={() => {
+ if (!on && owner) {
+ void openInstall(row.name, owner.profile)
+ }
+ }}
+ sub={on ? copy.installed : row.sentence || copy.install}
+ />
+ )
+ })}
+ </div>
+ )}
+ <div>
+ <Button
+ onClick={() => onContinue(names.filter(name => installed.has(name)))}
+ size="xs"
+ variant="textStrong"
+ >
+ {t.common.continue}
+ </Button>
+ </div>
+ </div>
+ )
+}
diff --git a/apps/desktop/src/components/assistant-ui/setup-beat/receipt.tsx b/apps/desktop/src/components/assistant-ui/setup-beat/receipt.tsx
new file mode 100644
index 00000000000..d1fb1475e13
--- /dev/null
+++ b/apps/desktop/src/components/assistant-ui/setup-beat/receipt.tsx
@@ -0,0 +1,117 @@
+'use client'
+
+import type { SetupBeat } from '@hermes/shared'
+
+import { WIDGET_SHELL_CLASS } from '@/components/chat/widget-shell'
+import { LAYOUTS_AREA } from '@/components/pane-shell/tree/presets'
+import { useContributions } from '@/contrib/react/use-contributions'
+import { useI18n } from '@/i18n'
+import { connectorText, recordOf } from '@/lib/connector-tools'
+import { cn } from '@/lib/utils'
+import { accentName } from '@/themes/accents'
+
+export const SETUP_BEAT_SHELL_CLASS = cn(
+ WIDGET_SHELL_CLASS,
+ 'my-1.5 text-[length:var(--conversation-text-font-size)] text-(--ui-text-primary)'
+)
+
+export const SETUP_BEAT_LABEL_CLASS = 'text-[0.6875rem] leading-4 text-(--ui-text-tertiary)'
+
+const BEATS: readonly SetupBeat[] = ['name', 'theme', 'layout', 'connectors', 'plugins', 'tour', 'build']
+
+/** What a settled card shows: the beat's pick, or how the card closed without one. */
+export type SetupBeatOutcome =
+ | { answer: Record<string, unknown>; beat: SetupBeat; kind: 'answer' }
+ | { beat: SetupBeat | null; kind: 'said' | 'skipped_all' | 'timed_out' }
+
+/** The receipt a setup_beat result calls for; null for a result that showed no card (a value given in
+ * words, a skip, `done`), which draws nothing. */
+export function setupBeatOutcome(result: unknown): null | SetupBeatOutcome {
+ const row = resultRow(result)
+ const beat = BEATS.find(candidate => candidate === row.beat) ?? null
+
+ if (row.skipped_all === true) {
+ return { beat, kind: 'skipped_all' }
+ }
+
+ if (!beat) {
+ return null
+ }
+
+ if (typeof row.answer === 'object' && row.answer !== null) {
+ return { answer: recordOf(row.answer), beat, kind: 'answer' }
+ }
+
+ if (typeof row.said === 'string') {
+ return { beat, kind: 'said' }
+ }
+
+ return row.timed_out === true ? { beat, kind: 'timed_out' } : null
+}
+
+const resultRow = (result: unknown) => recordOf(typeof result === 'string' ? parseJson(result) : result)
+
+/** A refused call (`{error}`): shown as the plain tool row so the failure stays readable. */
+export const setupBeatFailed = (result: unknown): boolean => typeof resultRow(result).error === 'string'
+
+function parseJson(text: string): unknown {
+ try {
+ return JSON.parse(text)
+ } catch {
+ return null
+ }
+}
+
+const listOf = (value: unknown): string[] =>
+ Array.isArray(value) ? value.filter((item): item is string => typeof item === 'string') : []
+
+function answerText(beat: SetupBeat, answer: Record<string, unknown>, names: AnswerNames): string {
+ if (beat === 'theme') {
+ return answer.accent === null ? names.themeAccent : accentName(connectorText(answer.accent) ?? '')
+ }
+
+ if (beat === 'layout') {
+ return names.layout(connectorText(answer.layout) ?? '')
+ }
+
+ if (beat === 'connectors' || beat === 'plugins') {
+ const picked = listOf(beat === 'connectors' ? answer.connected : answer.installed)
+
+ return picked.length > 0 ? picked.join(', ') : names.none
+ }
+
+ return connectorText(answer.label) ?? connectorText(answer[beat]) ?? ''
+}
+
+interface AnswerNames {
+ layout: (id: string) => string
+ none: string
+ themeAccent: string
+}
+
+/** One line where the choice happened: the beat, then what was picked or how the card closed. */
+export function SetupBeatReceipt({ outcome }: { outcome: SetupBeatOutcome }) {
+ const { t } = useI18n()
+ const copy = t.firstRun
+ const presets = useContributions(LAYOUTS_AREA)
+
+ const closed = { said: copy.answeredInChat, skipped_all: copy.skippedAll, timed_out: copy.noAnswer }
+
+ const text =
+ outcome.kind === 'answer'
+ ? answerText(outcome.beat, outcome.answer, {
+ layout: id => presets.find(preset => preset.id === id)?.title ?? id,
+ none: copy.noneChosen,
+ themeAccent: t.assistant.themePicker.themeAccent
+ })
+ : closed[outcome.kind]
+
+ return (
+ <div className={cn(SETUP_BEAT_SHELL_CLASS, 'flex flex-wrap items-center gap-x-2')} data-setup-beat-settled="">
+ {outcome.beat && outcome.kind !== 'skipped_all' && (
+ <span className="text-(--ui-text-tertiary)">{copy.beats[outcome.beat]}</span>
+ )}
+ <span className={cn(outcome.kind !== 'answer' && 'italic text-(--ui-text-tertiary)')}>{text}</span>
+ </div>
+ )
+}
diff --git a/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.tsx b/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.tsx
new file mode 100644
index 00000000000..2067d16ac95
--- /dev/null
+++ b/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.tsx
@@ -0,0 +1,146 @@
+'use client'
+
+import type { ToolCallMessagePartProps } from '@assistant-ui/react'
+import type { SetupBeat } from '@hermes/shared'
+import { useStore } from '@nanostores/react'
+import { type ReactNode, useState } from 'react'
+
+import { useSessionView } from '@/app/chat/session-view'
+import { ConnectorDirectoryCard } from '@/components/assistant-ui/connector-directory-card'
+import { AccentPickerCard } from '@/components/assistant-ui/theme-picker/accent-picker-card'
+import { LayoutPickerCard } from '@/components/assistant-ui/theme-picker/layout-picker-card'
+import { cn } from '@/lib/utils'
+import { applyAppearance } from '@/store/appearance-apply'
+import { $setupBeatRequests, answerSetupBeat, type SetupBeatRequest } from '@/store/setup-beat'
+
+import { ToolFallback } from '../tool/fallback'
+
+import { beatOptions, NameCard, OptionsCard } from './beat-cards'
+import { PluginsCard } from './plugins-card'
+import {
+ SETUP_BEAT_LABEL_CLASS,
+ SETUP_BEAT_SHELL_CLASS,
+ setupBeatFailed,
+ type SetupBeatOutcome,
+ setupBeatOutcome,
+ SetupBeatReceipt
+} from './receipt'
+
+/** The card body for one beat; `answer` sends the beat's picks and settles the card. */
+function BeatBody({ answer, request }: { answer: (picks: Record<string, unknown>) => void; request: SetupBeatRequest }) {
+ const { card } = request
+
+ switch (request.beat) {
+ case 'name':
+ return (
+ <NameCard
+ onName={name => answer({ name })}
+ suggested={typeof card.suggested === 'string' ? card.suggested : undefined}
+ />
+ )
+
+ case 'theme':
+ return (
+ <AccentPickerCard
+ onPick={accent => {
+ if (applyAppearance({ accent: accent ?? 'theme' }).success) {
+ answer({ accent })
+ }
+ }}
+ />
+ )
+
+ case 'layout':
+ return (
+ <LayoutPickerCard
+ onPick={layout => {
+ if (applyAppearance({ layout }).success) {
+ answer({ layout })
+ }
+ }}
+ />
+ )
+
+ case 'plugins':
+ return <PluginsCard card={card} onContinue={installed => answer({ installed })} />
+
+ case 'tour':
+
+ case 'build':
+ return (
+ <OptionsCard
+ onPick={option => answer({ [request.beat]: option.id, label: option.label })}
+ options={beatOptions(card)}
+ />
+ )
+
+ case 'connectors':
+ return null
+ }
+}
+
+function suggestedSlugs(card: Record<string, unknown>): string[] {
+ return Array.isArray(card.suggested) ? card.suggested.filter((slug): slug is string => typeof slug === 'string') : []
+}
+
+function BeatShell({ beat, children, question }: { beat: SetupBeat; children: ReactNode; question: string }) {
+ return (
+ <div className={cn(SETUP_BEAT_SHELL_CLASS, 'grid gap-3')} data-setup-beat={beat}>
+ {question && <span className={SETUP_BEAT_LABEL_CLASS}>{question}</span>}
+ {children}
+ </div>
+ )
+}
+
+/** The setup_beat tool row: the beat's card while its request waits, then a one-line receipt where the
+ * choice happened. A card closed by words in the composer or by the deadline collapses the same way. */
+export function SetupBeatTool(props: ToolCallMessagePartProps) {
+ const sessionId = useStore(useSessionView().$runtimeId)
+ const requests = useStore($setupBeatRequests)
+ const [settled, setSettled] = useState<null | SetupBeatOutcome>(null)
+
+ if (props.result !== undefined) {
+ if (setupBeatFailed(props.result)) {
+ return <ToolFallback {...props} />
+ }
+
+ const outcome = setupBeatOutcome(props.result)
+
+ return outcome ? <SetupBeatReceipt outcome={outcome} /> : null
+ }
+
+ // Answered: the card is gone from the store a beat before tool.complete brings the result.
+ if (settled) {
+ return <SetupBeatReceipt outcome={settled} />
+ }
+
+ const request = sessionId ? requests[sessionId] : undefined
+
+ if (!sessionId || !request) {
+ return null
+ }
+
+ const answer = (picks: Record<string, unknown>) => {
+ if (answerSetupBeat(sessionId, picks)) {
+ setSettled({ answer: picks, beat: request.beat, kind: 'answer' })
+ }
+ }
+
+ if (request.beat === 'connectors') {
+ return (
+ <div className="grid gap-1" data-setup-beat="connectors">
+ {request.question && <span className={cn(SETUP_BEAT_LABEL_CLASS, 'px-3.5')}>{request.question}</span>}
+ <ConnectorDirectoryCard
+ onContinue={({ connected, newly_connected }) => answer({ connected, newly_connected })}
+ suggested={suggestedSlugs(request.card)}
+ />
+ </div>
+ )
+ }
+
+ return (
+ <BeatShell beat={request.beat} question={request.question}>
+ <BeatBody answer={answer} request={request} />
+ </BeatShell>
+ )
+}
diff --git a/apps/desktop/src/components/assistant-ui/thread/message-parts.tsx b/apps/desktop/src/components/assistant-ui/thread/message-parts.tsx
index ec91def6abe..6d8bde8b858 100644
--- a/apps/desktop/src/components/assistant-ui/thread/message-parts.tsx
+++ b/apps/desktop/src/components/assistant-ui/thread/message-parts.tsx
@@ -14,6 +14,7 @@ import { ClarifyTool } from '@/components/assistant-ui/clarify'
import { ConnectorExecution, ConnectorTool } from '@/components/assistant-ui/connector-tool'
import { MarkdownText, MarkdownTextContent } from '@/components/assistant-ui/markdown-text'
import { McpSetupTool } from '@/components/assistant-ui/mcp-setup-tool'
+import { SetupBeatTool } from '@/components/assistant-ui/setup-beat/setup-beat-tool'
import { setThemeCall } from '@/components/assistant-ui/theme-picker/args'
import { ThemeTool } from '@/components/assistant-ui/theme-picker/theme-tool'
import { AgentDeliveryNotice, deliveryTargetFromCommand } from '@/components/assistant-ui/thread/agent-delivery'
@@ -107,6 +108,14 @@ const ThemeToolPart: FC<TimelineToolCallProps> = props => {
)
}
+const SetupBeatToolPart: FC<TimelineToolCallProps> = props => {
+ if (settledWithoutResult(props)) {
+ return <ToolFallback {...props} />
+ }
+
+ return <SetupBeatTool {...props} />
+}
+
const ConnectionsToolPart: FC<TimelineToolCallProps> = props =>
mcpTargets(props.toolName, props.args).length > 0 ? <McpSetupTool {...props} /> : <ConnectorTool {...props} />
@@ -116,7 +125,8 @@ const TOOL_CARDS: Record<CardToolName, FC<TimelineToolCallProps>> = {
image_generate: ImageGenerateTool,
manage_catalog: CatalogInstallTool,
manage_connections: ConnectionsToolPart,
- set_theme: ThemeToolPart
+ set_theme: ThemeToolPart,
+ setup_beat: SetupBeatToolPart
}
// A failure the user still has to see. The gateway's tool.complete carries the
diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts
index c8147301eab..ab6f636cd23 100644
--- a/apps/desktop/src/i18n/en.ts
+++ b/apps/desktop/src/i18n/en.ts
@@ -7,6 +7,7 @@ import { enBoot } from './en_boot'
import { enCatalogInstall } from './en_catalog_install'
import { enConnectorAccounts } from './en_connector_accounts'
import { enConnectorCard } from './en_connector_card'
+import { enFirstRun } from './en_first_run'
import { enLocalModels } from './en_local_models'
import { enModelMenu } from './en_model_menu'
import { enNotices } from './en_notices'
@@ -31,6 +32,7 @@ export const en: Translations = {
},
sharedMetrics: enSharedMetrics,
appTour: enAppTour,
+ firstRun: enFirstRun,
// English editorial copy stays in the shipped JSONL; other locales override it.
intro: { stock: {}, custom: () => [] },
connectors: enConnectorCard,
diff --git a/apps/desktop/src/i18n/en_first_run.ts b/apps/desktop/src/i18n/en_first_run.ts
new file mode 100644
index 00000000000..97d236b4726
--- /dev/null
+++ b/apps/desktop/src/i18n/en_first_run.ts
@@ -0,0 +1,37 @@
+import type { FirstRunCopy } from './types_first_run'
+
+export const enFirstRun: FirstRunCopy = {
+ beats: {
+ name: 'Name',
+ theme: 'Accent color',
+ layout: 'Layout',
+ connectors: 'Apps',
+ plugins: 'Plugins',
+ tour: 'Tour',
+ build: 'First task'
+ },
+ namePlaceholder: 'Your name',
+ useName: name => `Use “${name}”`,
+ install: 'Install',
+ installed: 'Installed',
+ loading: 'Loading…',
+ noPlugins: 'No plugins to show right now.',
+ noneChosen: 'None',
+ answeredInChat: 'Answered in chat',
+ noAnswer: 'No answer',
+ skippedAll: 'Setup skipped',
+ skip: 'Skip setup',
+ skipTip: 'End the guided setup. You can keep chatting here.',
+ localModel: {
+ title: 'This computer can run a model locally',
+ text: (model, size) => `${model} (${size}) fits your hardware. It runs free, and your chats stay on this computer.`,
+ setUp: 'Set it up',
+ notNow: 'Not now'
+ },
+ rerun: {
+ title: 'Run onboarding again',
+ description: 'Open a new setup chat that walks through the first-run steps with your current model.',
+ action: 'Run again',
+ failed: 'Could not start onboarding'
+ }
+}
diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts
index ff8a47d1857..b10c773451e 100644
--- a/apps/desktop/src/i18n/types.ts
+++ b/apps/desktop/src/i18n/types.ts
@@ -14,6 +14,7 @@ import type { BillingTranslations } from './types_billing'
import type { BootTranslations } from './types_boot'
import type { CatalogInstallTranslations } from './types_catalog_install'
import type { ConnectorAccountsTranslations, ConnectorCardTranslations } from './types_connectors'
+import type { FirstRunCopy } from './types_first_run'
import type { ModelMenuTranslations } from './types_model_menu'
import type { NoticeTranslations } from './types_notices'
import type { OnboardingTranslations } from './types_onboarding'
@@ -81,6 +82,7 @@ export interface Translations extends NoticeTranslations {
/** Shared-metrics consent: first-run dialog + Settings › Safety toggles. */
sharedMetrics: SharedMetricsTranslations
appTour: AppTourTranslations
+ firstRun: FirstRunCopy
externalOpenFailed: {
title: string
message: string
diff --git a/apps/desktop/src/i18n/types_first_run.ts b/apps/desktop/src/i18n/types_first_run.ts
new file mode 100644
index 00000000000..fc7ed4187ea
--- /dev/null
+++ b/apps/desktop/src/i18n/types_first_run.ts
@@ -0,0 +1,40 @@
+/** First-run onboarding: the setup_beat cards and their receipts, Skip setup, the local-model offer
+ * at the end, and the Settings row that runs it again. */
+export interface FirstRunCopy {
+ /** Receipt labels, one per beat. */
+ beats: {
+ name: string
+ theme: string
+ layout: string
+ connectors: string
+ plugins: string
+ tour: string
+ build: string
+ }
+ namePlaceholder: string
+ /** The OS account's full name, offered as a row on the name card. */
+ useName: (name: string) => string
+ install: string
+ installed: string
+ loading: string
+ noPlugins: string
+ /** A receipt for a card that settled with nothing chosen (no apps connected, no plugin installed). */
+ noneChosen: string
+ answeredInChat: string
+ noAnswer: string
+ skippedAll: string
+ skip: string
+ skipTip: string
+ localModel: {
+ title: string
+ text: (model: string, size: string) => string
+ setUp: string
+ notNow: string
+ }
+ rerun: {
+ title: string
+ description: string
+ action: string
+ failed: string
+ }
+}
diff --git a/apps/desktop/src/lib/tool-render-class.ts b/apps/desktop/src/lib/tool-render-class.ts
index e2c87f04daf..e26fdc9e3d4 100644
--- a/apps/desktop/src/lib/tool-render-class.ts
+++ b/apps/desktop/src/lib/tool-render-class.ts
@@ -26,6 +26,7 @@ export function isFileEditTool(toolName: string): boolean {
// they asked for, the several agents a fan-out is running.
// - `manage_connections` and `manage_catalog` are consent cards; their controls must stay visible.
// - `set_theme` shows a picker card while it waits for the user, then a one-line receipt.
+// - `setup_beat` is the onboarding chat's card for one beat, then a one-line receipt.
//
// Everything else is ephemeral activity — reads, searches, commands — which is
// what a run summarizes and what the live ticker cycles through.
@@ -35,7 +36,8 @@ const CARD_TOOL_NAMES = [
'image_generate',
'manage_catalog',
'manage_connections',
- 'set_theme'
+ 'set_theme',
+ 'setup_beat'
] as const
export type CardToolName = (typeof CARD_TOOL_NAMES)[number]
diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.json
index 14ace7963f8..bf6e811fcf0 100644
--- a/locales/_keys.desktop.json
+++ b/locales/_keys.desktop.json
@@ -1527,6 +1527,33 @@
"fileMenu.revealUnavailable",
"findInPage.next",
"findInPage.previous",
+ "firstRun.answeredInChat",
+ "firstRun.beats.build",
+ "firstRun.beats.connectors",
+ "firstRun.beats.layout",
+ "firstRun.beats.name",
+ "firstRun.beats.plugins",
+ "firstRun.beats.theme",
+ "firstRun.beats.tour",
+ "firstRun.install",
+ "firstRun.installed",
+ "firstRun.loading",
+ "firstRun.localModel.notNow",
+ "firstRun.localModel.setUp",
+ "firstRun.localModel.text",
+ "firstRun.localModel.title",
+ "firstRun.namePlaceholder",
+ "firstRun.noAnswer",
+ "firstRun.noPlugins",
+ "firstRun.noneChosen",
+ "firstRun.rerun.action",
+ "firstRun.rerun.description",
+ "firstRun.rerun.failed",
+ "firstRun.rerun.title",
+ "firstRun.skip",
+ "firstRun.skipTip",
+ "firstRun.skippedAll",
+ "firstRun.useName",
"freeTier.alreadySignedInBody",
"freeTier.alreadySignedInHeading",
"freeTier.begin",