diff --git a/client/src/components/Admin/addons/useAiAdminConfig.ts b/client/src/components/Admin/addons/useAiAdminConfig.ts index 2fa2bd6d2..73fb93bcb 100644 --- a/client/src/components/Admin/addons/useAiAdminConfig.ts +++ b/client/src/components/Admin/addons/useAiAdminConfig.ts @@ -152,7 +152,10 @@ function useInstanceConnection(onChanged: () => void) { live, provider, models: live - ? modelOptions(models, live.model, { free: t('assistant.model.free'), recommended: t('assistant.model.recommended') }) + ? modelOptions(models, live.model, { + free: t('assistant.model.free'), + recommended: t('assistant.model.recommended'), + }) : [], busy, setModel, diff --git a/client/src/components/Assistant/AssistantChangeCard.tsx b/client/src/components/Assistant/AssistantChangeCard.tsx index 7812c3e09..e255d34e5 100644 --- a/client/src/components/Assistant/AssistantChangeCard.tsx +++ b/client/src/components/Assistant/AssistantChangeCard.tsx @@ -125,13 +125,20 @@ function KindTile({ } /** The verb as a quiet line over the name of what it touches. */ +/** What the change does: the tool's own action where TREK names it, else add, change or remove. */ +function verbLabel(preview: AssistantChangePreview, t: (key: string) => string): string { + const own = preview.tool ? `assistant.tool.${preview.tool}` : null; + const named = own ? t(own) : null; + return named && named !== own ? named : t(`assistant.change.verb.${preview.verbKey}`); +} + function ChangeHead({ preview, struck = false }: { preview: AssistantChangePreview | null; struck?: boolean }) { const { t } = useTranslation(); if (!preview) return