The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): card answers report the user's real state and words
alt-glitch33a06c847666
diff --git a/apps/desktop/src/components/assistant-ui/clarify/pending.tsx b/apps/desktop/src/components/assistant-ui/clarify/pending.tsxindex bc15ac6a9fb..725bff4038d 100644--- a/apps/desktop/src/components/assistant-ui/clarify/pending.tsx+++ b/apps/desktop/src/components/assistant-ui/clarify/pending.tsx@@ -118,8 +118,9 @@ export function ClarifyToolPending({}const matchedChoices = options.filter(choice => replayedAnswers.includes(bareChoice(choice)))- next[question.qid] =- matchedChoices.length > 0 ? { choices: matchedChoices, draft: '' } : { choices: [], draft: answer }+ // Words that name no choice (typed in the composer) go to the free-text field as words, not JSON.+ const draft = replayedAnswers.filter(value => !options.some(choice => bareChoice(choice) === value)).join(', ')+ next[question.qid] = { choices: matchedChoices, draft }}return nextdiff --git a/apps/desktop/src/components/assistant-ui/connector-directory-card.tsx b/apps/desktop/src/components/assistant-ui/connector-directory-card.tsxindex 03f5177cc26..16bd569cf07 100644--- a/apps/desktop/src/components/assistant-ui/connector-directory-card.tsx+++ b/apps/desktop/src/components/assistant-ui/connector-directory-card.tsx@@ -258,7 +258,8 @@ function DirectoryBody({ onContinue, owner, returnRoute, suggested = NO_SUGGESTI)}</div><div className="px-3.5">- <Button className={CARD_ACTION_CLASS} onClick={finish} size="sm">+ {/* Continue reports the apps connected; while the list loads it would report none. */}+ <Button className={CARD_ACTION_CLASS} disabled={hosted.phase === 'loading'} onClick={finish} size="sm">{t.common.continue}</Button></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.tsxindex 1f17b39a887..7e57a140639 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@@ -4,15 +4,17 @@ import type { CatalogPluginPresence, PluginsManageResult } from '@hermes/shared'import { useStore } from '@nanostores/react'import { useQuery } from '@tanstack/react-query'import { Puzzle } from 'lucide-react'+import { useEffect } from 'react'import { useSessionView } from '@/app/chat/session-view'+import { useGatewayRequest } from '@/app/gateway/hooks/use-gateway-request'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 { cn } from '@/lib/utils'-import { $agentPlugins } from '@/store/agent-plugins'+import { $agentPlugins, $agentPluginsProfile, loadAgentPlugins } from '@/store/agent-plugins'import type { ConnectionOwner } from '@/store/connection-request'import { requestGatewayForAgent } from '@/store/gateway'import { openCatalogPluginInstall } from '@/store/plugin-catalog-install'@@ -63,6 +65,15 @@ export function PluginsCard({const storedId = useStore(useSessionView().$storedId)const owner = useConnectionOwner(storedId, true)const plugins = useStore($agentPlugins)+ const pluginsProfile = useStore($agentPluginsProfile)+ const { requestGateway } = useGatewayRequest()++ // The shared plugin list may be empty or another profile's: load the chat's own.+ useEffect(() => {+ if (owner) {+ void loadAgentPlugins(requestGateway, owner.profile)+ }+ }, [owner, requestGateway])const presence = useQuery({enabled: Boolean(owner) && names.length > 0,@@ -71,7 +82,8 @@ export function PluginsCard({staleTime: Infinity})- const installed = new Set(plugins.flatMap(row => (row.catalog_name ? [row.catalog_name, row.name] : [row.name])))+ const ownRows = owner && pluginsProfile === owner.profile ? plugins : []+ const installed = new Set(ownRows.flatMap(row => (row.catalog_name ? [row.catalog_name, row.name] : [row.name])))const rows = presence.data ?? []