The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): offer usage stats only after onboarding, in plain words (#129140)
Siddharth Balyan90c5e8c7ab01
diff --git a/apps/desktop/src/app/contrib/onboarding-kickoff.ts b/apps/desktop/src/app/contrib/onboarding-kickoff.tsindex 740c4769ebc..b5209a08db9 100644--- a/apps/desktop/src/app/contrib/onboarding-kickoff.ts+++ b/apps/desktop/src/app/contrib/onboarding-kickoff.ts@@ -16,7 +16,7 @@ import { activeGatewayConnectionId, requestGatewayForProfile } from '@/store/gatimport { loadMachineProfile } from '@/store/machine'import { notify } from '@/store/notifications'import { readOnboardingCapabilities } from '@/store/onboarding-capabilities'-import type { GuideKickoffResult } from '@/store/onboarding-gate'+import { $setupProfileName, type GuideKickoffResult } from '@/store/onboarding-gate'import { prefetchOnboardingPlugins } from '@/store/onboarding-plugins'import { buildChatOnboardingSeedMessages } from '@/store/onboarding-script'import {@@ -114,6 +114,8 @@ export function useOnboardingKickoff({ requestGateway, resumeSession }: Onboardi{})+ $setupProfileName.set(setupProfile)+const record = await requestGatewayForProfile<SetupStatus>(setupProfile, 'setup.status', {})if (record.ready !== true || record.provider_configured !== true) {diff --git a/apps/desktop/src/components/onboarding-chat/gate.tsx b/apps/desktop/src/components/onboarding-chat/gate.tsxindex 6899e2ba451..e7a77bb9c49 100644--- a/apps/desktop/src/components/onboarding-chat/gate.tsx+++ b/apps/desktop/src/components/onboarding-chat/gate.tsx@@ -9,6 +9,7 @@ import { $desktopOnboarding, clearFreeTierIntro } from '@/store/onboarding'import {$guideOpening,$onboardingGate,+ $setupProfileName,abandonGuide,beginOnboardingFlow,type GuideKickoffResult,@@ -36,6 +37,7 @@ export function OnboardingChatGate({ enabled, onKickoff, requestGateway }: Onboavoid requestGateway<OnboardingStateResult>('onboarding.state').then(state => {+ $setupProfileName.set(state.profile ?? null)beginOnboardingFlow(state, $desktopOnboarding.get().firstRunSkipped)if ($onboardingGate.get().guideQueued) {diff --git a/apps/desktop/src/components/shared-metrics/consent-dialog.tsx b/apps/desktop/src/components/shared-metrics/consent-dialog.tsxindex 71704a4f696..9772db41c8c 100644--- a/apps/desktop/src/components/shared-metrics/consent-dialog.tsx+++ b/apps/desktop/src/components/shared-metrics/consent-dialog.tsx@@ -16,7 +16,9 @@ import { ChevronDown } from '@/lib/icons'import { cn } from '@/lib/utils'import { notifyError } from '@/store/notifications'import { $desktopOnboarding } from '@/store/onboarding'+import { $guidedOnboardingSettled, $setupProfileName } from '@/store/onboarding-gate'import { $onboardingSurfaces } from '@/store/onboarding-presence'+import { normalizeProfileKey } from '@/store/profile'import {$sharedMetricsConsent,$sharedMetricsDetailsOpen,@@ -54,10 +56,12 @@ export function SharedMetricsConsentDialog({ enabled, profile, requestGateway }:const copy = t.sharedMetricsconst onboarding = useStore($desktopOnboarding)const surfaces = useStore($onboardingSurfaces)+ const guidedSettled = useStore($guidedOnboardingSettled)+ const setupProfile = useStore($setupProfileName)const detailsId = useId()const consent = useStore($sharedMetricsConsent)const detailsOpen = useStore($sharedMetricsDetailsOpen)- const [expanded, setExpanded] = useState(true)+ const [expanded, setExpanded] = useState(false)const [saving, setSaving] = useState(false)// Never over the provider picker, the free-tier welcome or the guided chat:@@ -66,9 +70,13 @@ export function SharedMetricsConsentDialog({ enabled, profile, requestGateway }:(onboarding.configured === true || onboarding.firstRunSkipped) &&!onboarding.manual &&!onboarding.freeTierReady &&- surfaces.size === 0+ surfaces.size === 0 &&+ guidedSettled- const ready = enabled && onboardingSettled+ // The setup profile only hosts the welcome chat; its answer would count for nobody.+ const inSetupProfile = setupProfile !== null && normalizeProfileKey(setupProfile) === normalizeProfileKey(profile)++ const ready = enabled && onboardingSettled && !inSetupProfileuseEffect(() => {$sharedMetricsConsent.set(null)@@ -112,7 +120,7 @@ export function SharedMetricsConsentDialog({ enabled, profile, requestGateway }:<Dialog onOpenChange={open => $sharedMetricsDetailsOpen.set(open)} open><DialogContent className="max-w-md" onOpenAutoFocus={preventCloseButtonAutoFocus}><DialogHeader>- <DialogTitle>{copy.consentTitle}</DialogTitle>+ <DialogTitle>{copy.dialogTitle}</DialogTitle><DialogDescription>{copy.consentBody}</DialogDescription></DialogHeader>@@ -129,28 +137,29 @@ export function SharedMetricsConsentDialog({ enabled, profile, requestGateway }:</button>{expanded ? (<div- className="grid gap-2 rounded-lg bg-(--ui-bg-tertiary)/40 px-3 py-2.5 text-[0.8125rem] leading-5 text-(--ui-text-secondary)"+ className="rounded-lg bg-(--ui-bg-tertiary)/40 px-3 py-2.5 text-[0.8125rem] leading-5 text-(--ui-text-secondary)"id={detailsId}>- <p>{copy.collectedIntro}</p><ul className="list-disc space-y-0.5 pl-5"><li>{copy.collectedActivity}</li><li>{copy.collectedModels}</li><li>{copy.collectedNames}</li>+ <li>{copy.collectedUsage}</li><li>{copy.collectedMilestones}</li><li>{copy.collectedReliability}</li>- <li>{copy.collectedUsage}</li><li>{copy.collectedMachine}</li></ul>- <p>{copy.installId}</p>- <p>{copy.consentWindow}</p>- <div>- <DocsLink href={SHARED_METRICS_DOCS_URL}>{copy.readDocs}</DocsLink>- </div></div>) : null}</div>+ <div className="grid gap-2 text-[0.8125rem] leading-5 text-(--ui-text-secondary)">+ <p>{copy.sending}</p>+ <div>+ <DocsLink href={SHARED_METRICS_DOCS_URL}>{copy.readDocs}</DocsLink>+ </div>+ </div>+<div className="grid gap-2">{CHOICE_ORDER.map(choice => (<Button disabled={saving} key={choice} onClick={() => void choose(choice)} type="button" variant="outline">@@ -158,7 +167,6 @@ export function SharedMetricsConsentDialog({ enabled, profile, requestGateway }:</Button>))}</div>- <p className="text-xs text-(--ui-text-tertiary)">{copy.changeLater}</p></DialogContent></Dialog>)diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex 07b0b254e4d..d5d8c82e5cf 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -3,10 +3,10 @@ import { defineLocale } from './define-locale'export const ar = defineLocale({sharedMetrics: {consentTitle: 'هل تساعد في تحسين Hermes؟',+ dialogTitle: 'هل تساعد في تحسين Hermes؟',consentBody:'تحتوي المقاييس المشتركة على عدّادات محدودة فقط، ولا تتضمن أبدًا المطالبات أو الملفات أو المسارات أو نصوص الأخطاء. الجمع محلي، وإرسالها إلى Nous موافقة منفصلة.',whatIsCollected: 'ما الذي يُجمع',- collectedIntro: 'عدّادات محدودة فقط:',collectedActivity: 'النشاط وطول الجلسات والنتائج وفئات الأخطاء',collectedModels: 'مسارات النماذج وإجمالي الرموز',collectedNames: 'أسماء الأدوات والأوامر وعناصر الفهرس المدمجة',@@ -16,15 +16,12 @@ export const ar = defineLocale({'كيفية استخدام Hermes: دقة الوكيل وكفاءته (نجاح التعديلات، الحلقات، التعافي من الأخطاء، الرموز واستدعاءات الأدوات لكل مهمة، انقطاعات الذاكرة المؤقتة)، وقت النشاط لكل واجهة ووضع في تطبيق سطح المكتب، أقسام التطبيق وإجراءاته وإعداداته التي تُستخدم أو تُغلق بسرعة أو تُعطَّل، ونتائج إعداد المزوّدين',collectedMachine:'معلومات عامة عن الجهاز: نطاق الذاكرة، نوع وحدة الرسوميات، عمر إصدار Hermes وقناته، عدد التحديثات المتأخرة، واستخدام خادم نماذج محلي',- installId:- 'يرفع الإرسال كل حزمة يومية إلى خدمة القياس عن بُعد لدى Nous. تحمل الحزم معرّف التثبيت لهذا الملف الشخصي: معرّف UUID عشوائي ثابت بلا معلومات شخصية، ويُعاد تعيينه بحذف مجلد المقاييس المشتركة.',- consentWindow:- 'لا تُرسل إلا الحزم التي تقع فترة جمعها كاملة داخل نافذة موافقة مسجلة — تبقى البيانات السابقة لموافقتك، أو من أي فترة كان الإرسال فيها متوقفًا، على هذا الجهاز. يمكن إيقاف الإرسال مجددًا في أي وقت.',+ sending:+ 'يرفع الإرسال كل حزمة يومية إلى خدمة القياس عن بُعد لدى Nous. تحمل الحزم معرّف التثبيت لهذا الملف الشخصي: معرّف UUID عشوائي ثابت بلا معلومات شخصية، ويُعاد تعيينه بحذف مجلد المقاييس المشتركة. لا تُرسل إلا الحزم التي تقع فترة جمعها كاملة داخل نافذة موافقة مسجلة — تبقى البيانات السابقة لموافقتك، أو من أي فترة كان الإرسال فيها متوقفًا، على هذا الجهاز. يمكن إيقاف الإرسال مجددًا في أي وقت. يمكنك تغيير ذلك في أي وقت من الإعدادات ← الأمان.',readDocs: 'اقرأ التفاصيل الكاملة',share: 'الجمع والإرسال إلى Nous',local: 'الجمع محليًا فقط',off: 'لا، شكرًا',- changeLater: 'يمكنك تغيير ذلك في أي وقت من الإعدادات ← الأمان.',saveFailed: 'تعذّر حفظ اختيارك',collectLabel: 'جمع إحصاءات الاستخدام',collectDesc: 'عدّادات محدودة تُحفظ على هذا الجهاز. دون مطالبات أو ملفات أو مسارات أو نصوص أخطاء.',diff --git a/apps/desktop/src/i18n/de.ts b/apps/desktop/src/i18n/de.tsindex e5f6fb85e17..68d293e0fca 100644--- a/apps/desktop/src/i18n/de.ts+++ b/apps/desktop/src/i18n/de.ts@@ -6,10 +6,10 @@ import { introDe } from './intro-de'export const deOverrides = {sharedMetrics: {consentTitle: 'Hermes verbessern helfen?',+ dialogTitle: 'Hermes verbessern helfen?',consentBody:'Geteilte Metriken enthalten nur begrenzte Zähler. Niemals Prompts, Dateien, Pfade oder Fehlertexte. Die Erfassung bleibt lokal. Das Senden an Nous ist eine separate Zustimmung.',whatIsCollected: 'Was erfasst wird',- collectedIntro: 'Nur begrenzte Zähler:',collectedActivity: 'Aktivität, Session-Länge, Ergebnisse und Fehlerklassen',collectedModels: 'Modellrouten und Token-Summen',collectedNames: 'Namen integrierter Tools, Befehle und Katalogeinträge',@@ -20,15 +20,12 @@ export const deOverrides = {'Wie Hermes genutzt wird: Genauigkeit und Effizienz des Agenten (Treffer bei Bearbeitungen, Schleifen, Erholung nach Fehlern, Tokens und Tool-Aufrufe pro Aufgabe, Cache-Brüche), aktive Zeit pro Oberfläche und Desktop-Modus, welche App-Bereiche, Aktionen und Einstellungen genutzt, schnell geschlossen oder abgeschaltet werden, sowie Ergebnisse der Anbietereinrichtung',collectedMachine:'Grobe Gerätedaten: RAM-Bereich, GPU-Typ, Alter und Kanal der Hermes-Version, Anzahl ausstehender Updates, ob ein lokaler Modellserver genutzt wird',- installId:- 'Beim Senden wird jedes Tagespaket an den Nous-Telemetriedienst hochgeladen. Pakete tragen die Installations-ID dieses Profils: eine feste zufällige UUID ohne persönliche Daten, zurückgesetzt durch Löschen des Shared-Metrics-Ordners.',- consentWindow:- 'Gesendet werden nur Pakete, deren gesamter Erfassungszeitraum in ein erfasstes Zustimmungsfenster fällt – Daten von vor Ihrer Zustimmung oder aus Lücken, in denen das Senden aus war, bleiben auf diesem Rechner. Das Senden lässt sich jederzeit wieder abschalten.',+ sending:+ 'Beim Senden wird jedes Tagespaket an den Nous-Telemetriedienst hochgeladen. Pakete tragen die Installations-ID dieses Profils: eine feste zufällige UUID ohne persönliche Daten, zurückgesetzt durch Löschen des Shared-Metrics-Ordners. Gesendet werden nur Pakete, deren gesamter Erfassungszeitraum in ein erfasstes Zustimmungsfenster fällt – Daten von vor Ihrer Zustimmung oder aus Lücken, in denen das Senden aus war, bleiben auf diesem Rechner. Das Senden lässt sich jederzeit wieder abschalten. Sie können das jederzeit unter Einstellungen → Sicherheit ändern.',readDocs: 'Alle Details lesen',share: 'Erfassen und an Nous senden',local: 'Nur lokal erfassen',off: 'Nein, danke',- changeLater: 'Sie können das jederzeit unter Einstellungen → Sicherheit ändern.',saveFailed: 'Ihre Auswahl konnte nicht gespeichert werden',collectLabel: 'Nutzungsstatistiken erfassen',collectDesc: 'Begrenzte Zähler auf diesem Gerät. Niemals Prompts, Dateien, Pfade oder Fehlertexte.',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 76a182f3bcf..041c3372942 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -14,38 +14,33 @@ export const en: Translations = {}},sharedMetrics: {- consentTitle: 'Help improve Hermes?',+ consentTitle: 'Share usage stats?',+ dialogTitle: 'Usage stats',consentBody:- 'Shared metrics contain only bounded counters. Never prompts, files, paths or error text. Collection is local. Sending them to Nous is a separate opt-in.',- whatIsCollected: 'What is collected',- collectedIntro: 'Only bounded counters:',- collectedActivity: 'Activity, session length, outcomes and error classes',- collectedModels: 'Model routes and token totals',- collectedNames: 'Built-in tool, command and catalog names',- collectedMilestones: 'Bucketed setup counts',- collectedReliability: 'Update results and timing, crashes, startup and reply speed, messaging-platform health',- collectedUsage:- 'How Hermes gets used: agent accuracy and efficiency (edit matches, loops, recoveries, tokens and tool calls per task, cache breaks), active time per surface and Desktop mode, which app areas, actions and settings are used, closed quickly or switched off, and provider setup outcomes',- collectedMachine:- 'Coarse machine facts: RAM range, GPU type, Hermes version age and release channel, updates behind, whether a local model server is used',- installId:- 'Sending uploads each daily package to the Nous telemetry service. Packages carry this profile’s install ID: a stable random UUID with no personal information, reset by deleting the shared-metrics directory.',- consentWindow:- 'Only packages whose entire collection period falls inside a recorded consent window are ever sent — data from before you opt in, or from any gap while sending was off, stays on this machine. Sending can be turned off again at any time.',+ 'Hermes can count how you use it: session length, which models and tools run, and when something fails. It never records your messages, files, paths or error text.',+ whatIsCollected: 'What is counted',+ collectedActivity: 'Sessions: length, outcome, error type, active time per day',+ collectedModels: 'Models: which ones, token totals',+ collectedNames: 'Features: built-in tools, commands, app areas and settings used or turned off',+ collectedMilestones: 'Setup: which steps finished, provider connections, how many skills, plugins and jobs',+ collectedReliability: 'App health: crashes, startup and reply speed, updates, messaging connections',+ collectedUsage: 'Agent quality: missed edits, broken tool calls, stuck loops, cost per task',+ collectedMachine: 'Machine: OS, RAM range, GPU type, Hermes version, local model use',+ sending:+ 'Stats stay on this computer unless you choose Share. Shared stats go to Nous once a day with a random ID for this profile. Stats from before you opted in are never sent. Change this anytime in Settings.',readDocs: 'Read the full details',- share: 'Collect and send to Nous',- local: 'Collect locally only',+ share: 'Share with Nous',+ local: 'Keep on this computer',off: 'No thanks',- changeLater: 'You can change this any time in Settings → Safety.',saveFailed: 'Couldn’t save your choice',collectLabel: 'Collect usage stats',- collectDesc: 'Bounded counters kept on this device. Never prompts, files, paths or error text.',- sendLabel: 'Send usage stats to Nous',+ collectDesc: 'Counts only, kept on this computer. Never your messages, files, paths or error text.',+ sendLabel: 'Share usage stats with Nous',sendDesc:- 'Upload each daily package to the Nous telemetry service. Only data from inside a consent window is sent. Needs collection on.',+ 'Sends stats to Nous once a day with a random ID for this profile. Stats from before you opted in are never sent. Needs collection on.',unavailable: 'Update the Hermes backend to change this setting.',- stripBody: 'Bounded counters only, never prompts or files.',- stripChoices: { share: 'Send to Nous', local: 'Local only', off: 'No thanks' },+ stripBody: 'Counts only. Never your messages or files.',+ stripChoices: { share: 'Share with Nous', local: 'Keep on this computer', off: 'No thanks' },stripDetails: 'Details'},// English editorial copy stays in the shipped JSONL; other locales override it.diff --git a/apps/desktop/src/i18n/es.ts b/apps/desktop/src/i18n/es.tsindex 39a7e121e01..cc24d29af3b 100644--- a/apps/desktop/src/i18n/es.ts+++ b/apps/desktop/src/i18n/es.ts@@ -6,10 +6,10 @@ import { introEs } from './intro-es'export const esOverrides = {sharedMetrics: {consentTitle: '¿Nos ayudas a mejorar Hermes?',+ dialogTitle: '¿Nos ayudas a mejorar Hermes?',consentBody:'Las métricas compartidas solo contienen contadores acotados. Nunca prompts, archivos, rutas ni textos de error. La recopilación es local. Enviarlas a Nous es una aceptación aparte.',whatIsCollected: 'Qué se recopila',- collectedIntro: 'Solo contadores acotados:',collectedActivity: 'Actividad, duración de sesiones, resultados y clases de error',collectedModels: 'Rutas de modelo y totales de tokens',collectedNames: 'Nombres de herramientas, comandos y elementos del catálogo integrados',@@ -20,15 +20,12 @@ export const esOverrides = {'Cómo se usa Hermes: precisión y eficiencia del agente (ediciones acertadas, bucles, recuperaciones, tokens y llamadas a herramientas por tarea, cortes de caché), tiempo activo por superficie y modo de Desktop, qué áreas, acciones y ajustes de la app se usan, se cierran enseguida o se desactivan, y resultados de la configuración de proveedores',collectedMachine:'Datos generales del equipo: rango de RAM, tipo de GPU, antigüedad y canal de la versión de Hermes, actualizaciones pendientes, si se usa un servidor de modelos local',- installId:- 'Al enviar, cada paquete diario se sube al servicio de telemetría de Nous. Los paquetes llevan el ID de instalación de este perfil: un UUID aleatorio y estable sin información personal, que se restablece al borrar el directorio de métricas compartidas.',- consentWindow:- 'Solo se envían los paquetes cuyo periodo de recopilación completo cae dentro de una ventana de consentimiento registrada; los datos de antes de aceptar, o de cualquier intervalo con el envío desactivado, se quedan en este equipo. Puedes volver a desactivar el envío cuando quieras.',+ sending:+ 'Al enviar, cada paquete diario se sube al servicio de telemetría de Nous. Los paquetes llevan el ID de instalación de este perfil: un UUID aleatorio y estable sin información personal, que se restablece al borrar el directorio de métricas compartidas. Solo se envían los paquetes cuyo periodo de recopilación completo cae dentro de una ventana de consentimiento registrada; los datos de antes de aceptar, o de cualquier intervalo con el envío desactivado, se quedan en este equipo. Puedes volver a desactivar el envío cuando quieras. Puedes cambiarlo cuando quieras en Ajustes → Seguridad.',readDocs: 'Leer todos los detalles',share: 'Recopilar y enviar a Nous',local: 'Recopilar solo en local',off: 'No, gracias',- changeLater: 'Puedes cambiarlo cuando quieras en Ajustes → Seguridad.',saveFailed: 'No se pudo guardar tu elección',collectLabel: 'Recopilar estadísticas de uso',collectDesc:diff --git a/apps/desktop/src/i18n/fr.ts b/apps/desktop/src/i18n/fr.tsindex 14ce9c02ee2..e7171ef6ce9 100644--- a/apps/desktop/src/i18n/fr.ts+++ b/apps/desktop/src/i18n/fr.ts@@ -6,10 +6,10 @@ import { introFr } from './intro-fr'export const frOverrides = {sharedMetrics: {consentTitle: 'Aider à améliorer Hermes ?',+ dialogTitle: 'Aider à améliorer Hermes ?',consentBody:'Les métriques partagées ne contiennent que des compteurs bornés. Jamais de prompts, fichiers, chemins ni textes d’erreur. La collecte reste locale. Les envoyer à Nous est un consentement distinct.',whatIsCollected: 'Ce qui est collecté',- collectedIntro: 'Uniquement des compteurs bornés :',collectedActivity: 'Activité, durée des sessions, résultats et classes d’erreur',collectedModels: 'Routes de modèles et totaux de tokens',collectedNames: 'Noms des outils, commandes et éléments du catalogue intégrés',@@ -20,15 +20,12 @@ export const frOverrides = {"Comment Hermes est utilisé : précision et efficacité de l'agent (modifications réussies, boucles, reprises après erreur, jetons et appels d'outils par tâche, ruptures de cache), temps actif par interface et mode Desktop, zones, actions et réglages de l'app utilisés, vite fermés ou désactivés, et résultats de la configuration des fournisseurs",collectedMachine:"Données générales de la machine : plage de RAM, type de GPU, âge et canal de la version de Hermes, mises à jour en retard, utilisation d'un serveur de modèles local",- installId:- 'L’envoi transmet chaque paquet quotidien au service de télémétrie de Nous. Les paquets portent l’identifiant d’installation de ce profil : un UUID aléatoire stable sans information personnelle, réinitialisé en supprimant le dossier des métriques partagées.',- consentWindow:- 'Seuls les paquets dont toute la période de collecte tombe dans une fenêtre de consentement enregistrée sont envoyés — les données d’avant votre accord, ou de toute période où l’envoi était désactivé, restent sur cette machine. L’envoi peut être désactivé à tout moment.',+ sending:+ 'L’envoi transmet chaque paquet quotidien au service de télémétrie de Nous. Les paquets portent l’identifiant d’installation de ce profil : un UUID aléatoire stable sans information personnelle, réinitialisé en supprimant le dossier des métriques partagées. Seuls les paquets dont toute la période de collecte tombe dans une fenêtre de consentement enregistrée sont envoyés — les données d’avant votre accord, ou de toute période où l’envoi était désactivé, restent sur cette machine. L’envoi peut être désactivé à tout moment. Vous pouvez changer cela à tout moment dans Réglages → Sécurité.',readDocs: 'Lire tous les détails',share: 'Collecter et envoyer à Nous',local: 'Collecter en local uniquement',off: 'Non merci',- changeLater: 'Vous pouvez changer cela à tout moment dans Réglages → Sécurité.',saveFailed: 'Impossible d’enregistrer votre choix',collectLabel: 'Collecter les statistiques d’utilisation',collectDesc:diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex a23d3ca5722..a87c5cdc5c0 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -12,10 +12,10 @@ export const ja = defineLocale({},sharedMetrics: {consentTitle: 'Hermes の改善に協力しますか?',+ dialogTitle: 'Hermes の改善に協力しますか?',consentBody:'共有メトリクスは上限付きのカウンターだけです。プロンプト、ファイル、パス、エラーテキストは含みません。収集はローカルで行われ、Nous への送信は別途オプトインです。',whatIsCollected: '収集される内容',- collectedIntro: '上限付きのカウンターのみ:',collectedActivity: 'アクティビティ、セッションの長さ、結果、エラーの分類',collectedModels: 'モデルのルートとトークン合計',collectedNames: '組み込みツール、コマンド、カタログの名前',@@ -26,15 +26,12 @@ export const ja = defineLocale({'Hermes の使われ方:エージェントの精度と効率(編集の適用結果、ループ、エラーからの回復、タスクごとのトークン数とツール呼び出し数、キャッシュの破棄)、画面・Desktop モードごとのアクティブ時間、アプリのどの領域・操作・設定が使われ、すぐ閉じられ、オフにされたか、プロバイダー設定の結果',collectedMachine:'大まかなマシン情報:RAM の範囲、GPU の種類、Hermes バージョンの古さとリリースチャネル、未適用の更新数、ローカルモデルサーバーの使用有無',- installId:- '送信すると、日次パッケージが Nous のテレメトリサービスにアップロードされます。パッケージにはこのプロファイルのインストール ID(個人情報を含まない固定のランダム UUID。共有メトリクスのディレクトリを削除するとリセット)が付きます。',- consentWindow:- '収集期間全体が記録済みの同意期間内に収まるパッケージだけが送信されます。オプトイン前のデータや、送信オフ中のデータはこのマシンに残ります。送信はいつでもオフに戻せます。',+ sending:+ '送信すると、日次パッケージが Nous のテレメトリサービスにアップロードされます。パッケージにはこのプロファイルのインストール ID(個人情報を含まない固定のランダム UUID。共有メトリクスのディレクトリを削除するとリセット)が付きます。収集期間全体が記録済みの同意期間内に収まるパッケージだけが送信されます。オプトイン前のデータや、送信オフ中のデータはこのマシンに残ります。送信はいつでもオフに戻せます。設定 → 安全性 からいつでも変更できます。',readDocs: '詳細を読む',share: '収集して Nous に送信する',local: 'ローカルでのみ収集する',off: '共有しない',- changeLater: '設定 → 安全性 からいつでも変更できます。',saveFailed: '選択を保存できませんでした',collectLabel: '利用統計を収集する',collectDesc:diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.tsindex d4033bc3005..df082d27658 100644--- a/apps/desktop/src/i18n/ru.ts+++ b/apps/desktop/src/i18n/ru.ts@@ -26,10 +26,10 @@ const RU_NOUN = (count: number | string, one: string, few: string, many: string)export const ru = defineLocale({sharedMetrics: {consentTitle: 'Помочь улучшить Hermes?',+ dialogTitle: 'Помочь улучшить Hermes?',consentBody:'Общие метрики — это только ограниченные счётчики. Никаких запросов, файлов, путей или текстов ошибок. Сбор идёт локально. Отправка в Nous — отдельное согласие.',whatIsCollected: 'Что собирается',- collectedIntro: 'Только ограниченные счётчики:',collectedActivity: 'Активность, длительность сеансов, результаты и классы ошибок',collectedModels: 'Маршруты моделей и суммы токенов',collectedNames: 'Названия встроенных инструментов, команд и элементов каталога',@@ -40,15 +40,12 @@ export const ru = defineLocale({'Как используется Hermes: точность и эффективность агента (успешные правки, зацикливания, восстановление после ошибок, токены и вызовы инструментов на задачу, сбросы кэша), активное время по интерфейсам и режимам Desktop, какие разделы, действия и настройки приложения используются, быстро закрываются или отключаются, и итоги настройки провайдеров',collectedMachine:'Общие сведения о машине: диапазон ОЗУ, тип GPU, возраст и канал версии Hermes, число пропущенных обновлений, используется ли локальный сервер моделей',- installId:- 'При отправке ежедневный пакет загружается в сервис телеметрии Nous. Пакеты содержат идентификатор установки этого профиля — постоянный случайный UUID без личных данных; он сбрасывается удалением каталога общих метрик.',- consentWindow:- 'Отправляются только пакеты, весь период сбора которых попадает в записанное окно согласия: данные до согласия и за время, когда отправка была выключена, остаются на этом компьютере. Отправку можно снова выключить в любой момент.',+ sending:+ 'При отправке ежедневный пакет загружается в сервис телеметрии Nous. Пакеты содержат идентификатор установки этого профиля — постоянный случайный UUID без личных данных; он сбрасывается удалением каталога общих метрик. Отправляются только пакеты, весь период сбора которых попадает в записанное окно согласия: данные до согласия и за время, когда отправка была выключена, остаются на этом компьютере. Отправку можно снова выключить в любой момент. Это можно изменить в любой момент в разделе Настройки → Безопасность.',readDocs: 'Подробнее',share: 'Собирать и отправлять в Nous',local: 'Собирать только локально',off: 'Нет, спасибо',- changeLater: 'Это можно изменить в любой момент в разделе Настройки → Безопасность.',saveFailed: 'Не удалось сохранить выбор',collectLabel: 'Собирать статистику использования',collectDesc: 'Ограниченные счётчики хранятся на этом устройстве. Без запросов, файлов, путей и текстов ошибок.',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex f4906b4da37..cde992965ef 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -71,9 +71,9 @@ export interface Translations {/** Shared-metrics consent: first-run dialog + Settings › Safety toggles. */sharedMetrics: {consentTitle: string+ dialogTitle: stringconsentBody: stringwhatIsCollected: string- collectedIntro: stringcollectedActivity: stringcollectedModels: stringcollectedNames: string@@ -81,13 +81,11 @@ export interface Translations {collectedReliability: stringcollectedUsage: stringcollectedMachine: string- installId: string- consentWindow: string+ sending: stringreadDocs: stringshare: stringlocal: stringoff: string- changeLater: stringsaveFailed: stringcollectLabel: stringcollectDesc: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex c4add8a9af0..26b208533e1 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -12,10 +12,10 @@ export const zhHant = defineLocale({},sharedMetrics: {consentTitle: '協助改進 Hermes?',+ dialogTitle: '協助改進 Hermes?',consentBody:'共享指標只包含有上限的計數,絕不包含提示詞、檔案、路徑或錯誤文字。收集僅在本機進行;傳送給 Nous 需要另行同意。',whatIsCollected: '收集哪些內容',- collectedIntro: '僅限有上限的計數:',collectedActivity: '活動、工作階段長度、結果和錯誤類別',collectedModels: '模型路由和 token 總量',collectedNames: '內建工具、指令和目錄項名稱',@@ -25,15 +25,12 @@ export const zhHant = defineLocale({'Hermes 的使用方式:代理的準確度與效率(編輯是否成功、迴圈、錯誤後的恢復、每個任務的 token 與工具呼叫數、快取中斷),各介面與 Desktop 模式的活躍時間,哪些應用程式區域、操作與設定被使用、很快關閉或被關閉,以及供應商設定的結果',collectedMachine:'概略的機器資訊:記憶體範圍、GPU 類型、Hermes 版本新舊與發行通道、落後的更新數、是否使用本機模型伺服器',- installId:- '傳送會把每日資料包上傳到 Nous 遙測服務。資料包帶有此設定檔的安裝 ID:一個不含個人資訊的固定隨機 UUID,刪除共享指標目錄即可重設。',- consentWindow:- '只有整個收集期間都落在已記錄同意時段內的資料包才會被傳送——你同意之前的資料,或傳送關閉期間的資料,都會留在本機。你可以隨時再次關閉傳送。',+ sending:+ '傳送會把每日資料包上傳到 Nous 遙測服務。資料包帶有此設定檔的安裝 ID:一個不含個人資訊的固定隨機 UUID,刪除共享指標目錄即可重設。只有整個收集期間都落在已記錄同意時段內的資料包才會被傳送——你同意之前的資料,或傳送關閉期間的資料,都會留在本機。你可以隨時再次關閉傳送。你可以隨時在 設定 → 安全性 中變更。',readDocs: '查看完整說明',share: '收集並傳送給 Nous',local: '僅在本機收集',off: '不用了',- changeLater: '你可以隨時在 設定 → 安全性 中變更。',saveFailed: '無法儲存你的選擇',collectLabel: '收集使用統計',collectDesc: '在此裝置上保存有上限的計數。絕不包含提示詞、檔案、路徑或錯誤文字。',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex c8c41acca39..4682ab458d6 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -12,10 +12,10 @@ export const zh = defineLocale({},sharedMetrics: {consentTitle: '帮助改进 Hermes?',+ dialogTitle: '帮助改进 Hermes?',consentBody:'共享指标只包含有上限的计数,绝不包含提示词、文件、路径或错误文本。收集仅在本地进行;发送给 Nous 需要另行同意。',whatIsCollected: '收集哪些内容',- collectedIntro: '仅限有上限的计数:',collectedActivity: '活动、会话时长、结果和错误类别',collectedModels: '模型路由和 token 总量',collectedNames: '内置工具、命令和目录项名称',@@ -25,15 +25,12 @@ export const zh = defineLocale({'Hermes 的使用方式:代理的准确度与效率(编辑是否成功、循环、错误后的恢复、每个任务的 token 与工具调用数、缓存中断),各界面与 Desktop 模式的活跃时间,哪些应用区域、操作与设置被使用、很快关闭或被关闭,以及提供商设置的结果',collectedMachine:'概略的机器信息:内存范围、GPU 类型、Hermes 版本新旧与发布通道、落后的更新数、是否使用本地模型服务器',- installId:- '发送会把每日数据包上传到 Nous 遥测服务。数据包带有此配置文件的安装 ID:一个不含个人信息的固定随机 UUID,删除共享指标目录即可重置。',- consentWindow:- '只有整个收集周期都落在已记录同意时段内的数据包才会被发送——你同意之前的数据,或发送关闭期间的数据,都会留在本机。你可以随时再次关闭发送。',+ sending:+ '发送会把每日数据包上传到 Nous 遥测服务。数据包带有此配置文件的安装 ID:一个不含个人信息的固定随机 UUID,删除共享指标目录即可重置。只有整个收集周期都落在已记录同意时段内的数据包才会被发送——你同意之前的数据,或发送关闭期间的数据,都会留在本机。你可以随时再次关闭发送。你可以随时在 设置 → 安全 中更改。',readDocs: '查看完整说明',share: '收集并发送给 Nous',local: '仅在本地收集',off: '不用了',- changeLater: '你可以随时在 设置 → 安全 中更改。',saveFailed: '无法保存你的选择',collectLabel: '收集使用统计',collectDesc: '在此设备上保存有上限的计数。绝不包含提示词、文件、路径或错误文本。',diff --git a/apps/desktop/src/store/onboarding-gate.ts b/apps/desktop/src/store/onboarding-gate.tsindex 378e795cd5d..7c37540c640 100644--- a/apps/desktop/src/store/onboarding-gate.ts+++ b/apps/desktop/src/store/onboarding-gate.ts@@ -25,7 +25,22 @@ export const $onboardingGate = atom<OnboardingGateState>({ phase: 'idle', guideQconst $onboardingStateRead = atom(false)+/** The setup profile's name, from `onboarding.state` or from the kickoff that creates it; `null` when none is known. */+export const $setupProfileName = atom<null | string>(null)+let guideKickoff: GuideKickoff = { status: 'idle' }++const guidedPhase = (phase: OnboardingPhase) => phase === 'pending' || phase === 'guided' || phase === 'handoff'++/**+ * Guided first run is behind the user: finished, skipped, or never due. The phase is only+ * trusted once the backend's `onboarding.state` (its `intro`) has been read.+ */+export const $guidedOnboardingSettled = computed(+ [$onboardingGate, $onboardingStateRead],+ (gate, read) => !isOnboardingEnabled() || (read && !guidedPhase(gate.phase))+)+export const $guideOpening = computed($onboardingGate,gate =>@@ -51,7 +66,7 @@ function reportOnboarding(method: 'onboarding.mark_seen' | 'onboarding.record_faexport function guidedOnboardingActive(): boolean {const { phase } = $onboardingGate.get()- return isOnboardingEnabled() && (phase === 'pending' || phase === 'guided' || phase === 'handoff')+ return isOnboardingEnabled() && guidedPhase(phase)}export function markOnboardingStateRead(): void {diff --git a/apps/shared/src/gateway-contract.generated.ts b/apps/shared/src/gateway-contract.generated.tsindex 1cd66ec9f43..109c66c8cb1 100644--- a/apps/shared/src/gateway-contract.generated.ts+++ b/apps/shared/src/gateway-contract.generated.ts@@ -2113,6 +2113,7 @@ export interface OnboardingStateResult {intro: OnboardingIntrofailed_starts: numbercompleted_at?: string | null+ profile?: string | null}export type OnboardingIntro = 'unseen' | 'seen'export interface OnboardingResetSetupProfileResult {diff --git a/apps/shared/src/gateway-contract.openrpc.json b/apps/shared/src/gateway-contract.openrpc.jsonindex fd3eacfc02c..c54dc2da14f 100644--- a/apps/shared/src/gateway-contract.openrpc.json+++ b/apps/shared/src/gateway-contract.openrpc.json@@ -19824,6 +19824,18 @@],"default": null,"title": "Completed At"+ },+ "profile": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "title": "Profile"}},"required": [diff --git a/tui_gateway/contracts/profiles_vault_complete_foreign_subagents.py b/tui_gateway/contracts/profiles_vault_complete_foreign_subagents.pyindex 2d9a285519d..b73e701c050 100644--- a/tui_gateway/contracts/profiles_vault_complete_foreign_subagents.py+++ b/tui_gateway/contracts/profiles_vault_complete_foreign_subagents.py@@ -417,6 +417,7 @@ class OnboardingStateResult(Result):intro: OnboardingIntrofailed_starts: intcompleted_at: str | None = None+ profile: str | None = Nonemethod("onboarding.state", params=Params, result=OnboardingStateResult)diff --git a/tui_gateway/methods_onboarding.py b/tui_gateway/methods_onboarding.pyindex 559d916ec29..fef089c732a 100644--- a/tui_gateway/methods_onboarding.py+++ b/tui_gateway/methods_onboarding.py@@ -72,12 +72,13 @@ def _(rid, params: dict) -> dict:def _onboarding_state_result(rid, change) -> dict:- from hermes_cli.setup_profile import onboarding_eligible+ from hermes_cli.setup_profile import find_setup_profile, onboarding_eligibletry:state = change()+ found = find_setup_profile()except Exception as e:return _err(rid, 5076, str(e))- return _ok(rid, {"eligible": onboarding_eligible(), **state})+ return _ok(rid, {"eligible": onboarding_eligible(), "profile": found[0] if found else None, **state})def _clear_setup_sessions(profile_dir) -> None:diff --git a/website/docs/developer-guide/relay-shared-metrics.md b/website/docs/developer-guide/relay-shared-metrics.mdindex c5bca3df9a1..5413cb35f0f 100644--- a/website/docs/developer-guide/relay-shared-metrics.md+++ b/website/docs/developer-guide/relay-shared-metrics.md@@ -574,9 +574,10 @@ telemetry:Both keys are asked once per profile: by the Shared Metrics section of`hermes setup`, or in Hermes Desktop by an offer strip above the composer-(Send to Nous / Local only / No thanks, with a Details view). The Desktop offer-never blocks the composer or takes focus, appears only after first-run-onboarding, and stays until answered. A profile whose `config.yaml` already+(Share with Nous / Keep on this computer / No thanks, with a Details view). The+Desktop offer never blocks the composer or takes focus, appears only after+first-run onboarding is finished or skipped, never in the internal setup+profile that hosts the welcome chat, and stays until answered. A profile whose `config.yaml` alreadycarries either key is never asked again on any surface. Settings › Safety ›Privacy & network toggles both keys later.