The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): the tour and first-task cards draw their options again
alt-glitchc9da4b1a4da7
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.tsxindex 3a4c053a567..04fd68f91c2 100644--- a/apps/desktop/src/components/assistant-ui/setup-beat/plugins-card.tsx+++ b/apps/desktop/src/components/assistant-ui/setup-beat/plugins-card.tsx@@ -34,7 +34,14 @@ async function openInstall(name: string, profile: string): Promise<void> {/** 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({ names, onContinue }: { names: string[]; onContinue: (installed: string[]) => void }) {+export function PluginsCard({+ names,+ onContinue+}: {+ names: string[]+ /** The installed catalog names, and the titles the card showed for them. */+ onContinue: (installed: string[], titles: string[]) => void+}) {const { t } = useI18n()const copy = t.firstRunconst storedId = useStore(useSessionView().$storedId)@@ -84,7 +91,12 @@ export function PluginsCard({ names, onContinue }: { names: string[]; onContinue)}<div><Button- onClick={() => onContinue(names.filter(name => installed.has(name)))}+ onClick={() => {+ const done = names.filter(name => installed.has(name))+ const title = (name: string) => rows.find(row => row.name === name)?.title || name++ onContinue(done, done.map(title))+ }}size="xs"variant="textStrong">diff --git a/apps/desktop/src/components/assistant-ui/setup-beat/receipt.tsx b/apps/desktop/src/components/assistant-ui/setup-beat/receipt.tsxindex 5a5e3a8da4a..24abe732be5 100644--- a/apps/desktop/src/components/assistant-ui/setup-beat/receipt.tsx+++ b/apps/desktop/src/components/assistant-ui/setup-beat/receipt.tsx@@ -6,6 +6,7 @@ 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 { connectorTitle } from '@/lib/connector-tools'import { cn } from '@/lib/utils'import type { SetupBeatAnswer, SetupBeatToolResult } from '@/store/setup-beat'import { accentName } from '@/themes/accents'@@ -59,14 +60,15 @@ function answerText(beat: SetupBeat, answer: SetupBeatAnswer, names: AnswerNamescase 'layout':return names.layout(answer.layout ?? '')+ case 'connectors': {+ const connected = answer.connected ?? []- case 'connectors':- case 'plugins': {- const picked = (beat === 'connectors' ? answer.connected : answer.installed) ?? []-- return picked.length > 0 ? picked.join(', ') : names.none+ return connected.length > 0 ? connected.map(connectorTitle).join(', ') : names.none}+ case 'plugins':+ return answer.label || (answer.installed?.length ? answer.installed.join(', ') : names.none)+case 'name':return answer.name ?? ''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.tsxindex bcd196fded9..4112d024644 100644--- 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@@ -67,17 +67,18 @@ function BeatBody({ answer, request }: { answer: (picks: SetupBeatAnswer) => voi)case 'plugins':- return <PluginsCard names={card.plugins ?? []} onContinue={installed => answer({ installed })} />+ return (+ <PluginsCard+ names={card.plugins ?? []}+ onContinue={(installed, titles) => answer({ installed, label: titles.join(', ') })}+ />+ )case 'tour':+ return <OptionsCard onPick={option => answer({ label: option.label, tour: option.id })} options={card.options ?? []} />case 'build':- return (- <OptionsCard- onPick={option => answer({ [request.beat]: option.id, label: option.label })}- options={beatOptions(card)}- />- )+ return <OptionsCard onPick={option => answer({ build: option.id, label: option.label })} options={card.options ?? []} />case 'connectors':return null