The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#133780)
hermes-seaeye[bot]6cf3104d749b
diff --git a/apps/desktop/electron/backend-env.test.ts b/apps/desktop/electron/backend-env.test.tsindex 805a1724796..fbbd82858e5 100644--- a/apps/desktop/electron/backend-env.test.ts+++ b/apps/desktop/electron/backend-env.test.ts@@ -326,7 +326,11 @@ test('the launch profile pooled backend keeps its TERMINAL_CWD', () => {platform: 'linux'})- assert.equal(env.TERMINAL_CWD, undefined, 'the pooled helper never carries the global pin; main.ts owns that decision')+ assert.equal(+ env.TERMINAL_CWD,+ undefined,+ 'the pooled helper never carries the global pin; main.ts owns that decision'+ )assert.equal(env.PATH, '/usr/bin')})})diff --git a/apps/desktop/electron/windows-remote-lifecycle.test.ts b/apps/desktop/electron/windows-remote-lifecycle.test.tsindex 623c06d9d8c..670c4d5c9f3 100644--- a/apps/desktop/electron/windows-remote-lifecycle.test.ts+++ b/apps/desktop/electron/windows-remote-lifecycle.test.ts@@ -266,7 +266,11 @@ test('Windows probe tolerates CLIXML progress-stream pollution around the probetest('Windows probe still rejects output that is not platform JSON', async () => {await assert.rejects(probeWindowsRemote(sshWith(async () => 'hermes is not installed on this host')))- await assert.rejects(probeWindowsRemote(sshWith(async () => JSON.stringify({ os: 'Windows' })+'\n'+JSON.stringify({unrelated:true}) )))+ await assert.rejects(+ probeWindowsRemote(+ sshWith(async () => JSON.stringify({ os: 'Windows' }) + '\n' + JSON.stringify({ unrelated: true }))+ )+ )})test('the update marker gate stays CLEAR when CLIXML lands after the final Write-Output', async () => {@@ -279,12 +283,18 @@ test('the update marker gate stays CLEAR when CLIXML lands after the final Write`${CLIXML_PROGRESS}\r\nCLEAR`,`\uFEFFCLEAR\r\n${CLIXML_PROGRESS}\r\n${CLIXML_PROGRESS}`]) {- await assertWindowsRemoteInstallUpdateClear(sshWith(async () => observation), 'C:\\h')+ await assertWindowsRemoteInstallUpdateClear(+ sshWith(async () => observation),+ 'C:\\h'+ )}// The verdict itself is untouched: a LIVE marker still pauses startup.await assert.rejects(- assertWindowsRemoteInstallUpdateClear(sshWith(async () => `LIVE:4242\r\n${CLIXML_PROGRESS}`), 'C:\\h'),+ assertWindowsRemoteInstallUpdateClear(+ sshWith(async () => `LIVE:4242\r\n${CLIXML_PROGRESS}`),+ 'C:\\h'+ ),(err: any) => err.kind === 'update-in-progress' && /4242/.test(err.message))})diff --git a/apps/desktop/electron/windows-remote-lifecycle.ts b/apps/desktop/electron/windows-remote-lifecycle.tsindex 2e259c95b3a..830c6239539 100644--- a/apps/desktop/electron/windows-remote-lifecycle.ts+++ b/apps/desktop/electron/windows-remote-lifecycle.ts@@ -97,7 +97,9 @@ async function probeWindowsRemote(ssh, explicitHermesPath = '') {const parsed = JSON.parse(lines[lines.length - 1] || 'null')if (!parsed?.os || !parsed?.arch) {- throw new Error(`Windows probe did not return the expected platform JSON: ${String(lines[lines.length - 1] ?? '').slice(0, 200)}`)+ throw new Error(+ `Windows probe did not return the expected platform JSON: ${String(lines[lines.length - 1] ?? '').slice(0, 200)}`+ )}return parseddiff --git a/apps/desktop/src/app/cron/job-state.ts b/apps/desktop/src/app/cron/job-state.tsindex 206e392f2a9..e8bf1efa50a 100644--- a/apps/desktop/src/app/cron/job-state.ts+++ b/apps/desktop/src/app/cron/job-state.ts@@ -35,7 +35,9 @@ export function truncateText(value: string, max: number): string {export function jobTitle(job: CronJob): string {const pick = (v: unknown) => (typeof v === 'string' ? v.trim() : '')- return pick(job.name) || truncateText(pick(job.prompt), 60) || truncateText(pick(job.script), 60) || job.id || 'Cron job'+ return (+ pick(job.name) || truncateText(pick(job.prompt), 60) || truncateText(pick(job.script), 60) || job.id || 'Cron job'+ )}// Mirrors hermes_cli/cron.py `_OVERDUE_GRACE_SECONDS`: a busy tick can dispatch a few minutes late.diff --git a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsxindex 05276a3fbb7..d3d57a98303 100644--- a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx+++ b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx@@ -2667,7 +2667,7 @@ describe('resumeSession failure recovery', () => {expect(getSessionOwnerHint('stored-1')).toBeUndefined()})- it('keeps a current owner hint that agrees with the row\'s connection tag', async () => {+ it("keeps a current owner hint that agrees with the row's connection tag", async () => {_resetSessionOwnerHintsForTests({ storage: true })setSessionOwnerHint('stored-1', { connectionId: 'ssh-proxmox', profile: 'default' })// A connection-tagged row is the authority: the hint naming the same@@ -2698,7 +2698,7 @@ describe('resumeSession failure recovery', () => {expect(getSessionOwnerHint('stored-1')).toMatchObject({ connectionId: 'ssh-proxmox' })})- it('drops a remembered hint whose connection disagrees with the row\'s tag', async () => {+ it("drops a remembered hint whose connection disagrees with the row's tag", async () => {_resetSessionOwnerHintsForTests({ storage: true })// The hint names a different connection than the row: the row wins.setSessionOwnerHint('stored-1', { connectionId: 'ssh-proxmox', profile: 'default' })diff --git a/apps/desktop/src/app/session/hooks/use-session-actions/remembered-owner.test.ts b/apps/desktop/src/app/session/hooks/use-session-actions/remembered-owner.test.tsindex 919b509e8d1..94fe3fd3195 100644--- a/apps/desktop/src/app/session/hooks/use-session-actions/remembered-owner.test.ts+++ b/apps/desktop/src/app/session/hooks/use-session-actions/remembered-owner.test.ts@@ -1,11 +1,6 @@import { afterEach, beforeEach, describe, expect, it } from 'vitest'-import {- $sessions,- _resetSessionOwnerHintsForTests,- getSessionOwnerHint,- setSessionOwnerHint-} from '@/store/session'+import { $sessions, _resetSessionOwnerHintsForTests, getSessionOwnerHint, setSessionOwnerHint } from '@/store/session'import type { SessionInfo } from '@/types/hermes'import { rememberedOwnerForResume } from './remembered-owner'diff --git a/apps/desktop/src/app/settings/gateway-settings.test.tsx b/apps/desktop/src/app/settings/gateway-settings.test.tsxindex 9bc9ff12f83..ed659cd31f9 100644--- a/apps/desktop/src/app/settings/gateway-settings.test.tsx+++ b/apps/desktop/src/app/settings/gateway-settings.test.tsx@@ -561,12 +561,12 @@ describe('GatewaySettings', () => {try {await waitFor(() =>expect($notifications.get()).toEqual(- expect.arrayContaining([expect.objectContaining({ kind: 'error', message: expect.stringContaining('ssh <host> true') })])+ expect.arrayContaining([+ expect.objectContaining({ kind: 'error', message: expect.stringContaining('ssh <host> true') })+ ])))- expect(- $notifications.get().some((n: { message?: string }) => n.message === 'SSH connection failed.')- ).toBe(false)+ expect($notifications.get().some((n: { message?: string }) => n.message === 'SSH connection failed.')).toBe(false)} finally {$notifications.set([])}diff --git a/apps/desktop/src/app/settings/model-settings.test.tsx b/apps/desktop/src/app/settings/model-settings.test.tsxindex da73f06c8de..5eeedabc74d 100644--- a/apps/desktop/src/app/settings/model-settings.test.tsx+++ b/apps/desktop/src/app/settings/model-settings.test.tsx@@ -420,9 +420,13 @@ describe('ModelSettings', () => {fireEvent.click(follow[0])await waitFor(() =>- expect(setModelAssignment).toHaveBeenCalledWith(- { model: '', provider: 'auto', reasoning_effort: null, scope: 'auxiliary', task: 'pinned_task' }- )+ expect(setModelAssignment).toHaveBeenCalledWith({+ model: '',+ provider: 'auto',+ reasoning_effort: null,+ scope: 'auxiliary',+ task: 'pinned_task'+ }))})diff --git a/apps/desktop/src/app/settings/plugin-settings-form.test.tsx b/apps/desktop/src/app/settings/plugin-settings-form.test.tsxindex d646eb11b7d..093c9b35adc 100644--- a/apps/desktop/src/app/settings/plugin-settings-form.test.tsx+++ b/apps/desktop/src/app/settings/plugin-settings-form.test.tsx@@ -48,7 +48,9 @@ describe('PluginSettingsForm (#46600, #87934)', () => {afterEach(cleanup)it('renders one control per schema type from the table, secrets masked with no value echoed', () => {- render(<PluginSettingsForm disabled={false} fields={FIELDS} idPrefix="p" onSave={vi.fn(async () => true)} title="Demo" />)+ render(+ <PluginSettingsForm disabled={false} fields={FIELDS} idPrefix="p" onSave={vi.fn(async () => true)} title="Demo" />+ )expect((screen.getByLabelText('API URL') as HTMLInputElement).value).toBe('https://a')expect((screen.getByLabelText(/^Retries/) as HTMLInputElement).type).toBe('number')@@ -84,7 +86,14 @@ describe('PluginSettingsForm (#46600, #87934)', () => {it('labels raw keys like native rows and joins helper sentences with punctuation', () => {const fields: PluginSettingField[] = [- { description: 'Per-day budget', key: 'daily_budget', label: 'daily_budget', required: false, type: 'number', value: 1 },+ {+ description: 'Per-day budget',+ key: 'daily_budget',+ label: 'daily_budget',+ required: false,+ type: 'number',+ value: 1+ },{description: 'Optional maps key for travel-time estimates',env: 'TRIP_NOTES_MAPS_API_KEY',@@ -96,7 +105,9 @@ describe('PluginSettingsForm (#46600, #87934)', () => {}]- render(<PluginSettingsForm disabled={false} fields={fields} idPrefix="t" onSave={vi.fn(async () => true)} title="Trip" />)+ render(+ <PluginSettingsForm disabled={false} fields={fields} idPrefix="t" onSave={vi.fn(async () => true)} title="Trip" />+ )expect(screen.getByLabelText('Daily budget')).toBeTruthy()expect(screen.getByLabelText('Maps API key')).toBeTruthy()diff --git a/apps/desktop/src/app/settings/plugin-settings-form.tsx b/apps/desktop/src/app/settings/plugin-settings-form.tsxindex 0a216c068c3..5d35b216485 100644--- a/apps/desktop/src/app/settings/plugin-settings-form.tsx+++ b/apps/desktop/src/app/settings/plugin-settings-form.tsx@@ -104,7 +104,9 @@ export function fieldLabel(field: Pick<PluginSettingField, 'key' | 'label'>): stexport function joinSentences(...parts: (null | string | undefined)[]): string {const kept = parts.map(part => part?.trim() ?? '').filter(Boolean)- return kept.map((part, index) => (index < kept.length - 1 && !/[.!?。!?…:;]$/.test(part) ? `${part}.` : part)).join(' ')+ return kept+ .map((part, index) => (index < kept.length - 1 && !/[.!?。!?…:;]$/.test(part) ? `${part}.` : part))+ .join(' ')}/** What the input shows before the user touches it. */@@ -328,7 +330,9 @@ export function PluginSettingsForm({if (await onSave(changes)) {// Secrets are never echoed back; clear them so the placeholder shows "set".setDraft(current =>- Object.fromEntries(fields.map(field => [field.key, field.type === 'secret' ? '' : (current[field.key] ?? '')]))+ Object.fromEntries(+ fields.map(field => [field.key, field.type === 'secret' ? '' : (current[field.key] ?? '')])+ ))}} finally {diff --git a/apps/desktop/src/app/shell/hooks/use-status-snapshot.test.ts b/apps/desktop/src/app/shell/hooks/use-status-snapshot.test.tsindex ef647eebc87..58f98488b1c 100644--- a/apps/desktop/src/app/shell/hooks/use-status-snapshot.test.ts+++ b/apps/desktop/src/app/shell/hooks/use-status-snapshot.test.ts@@ -409,7 +409,8 @@ describe('useStatusSnapshot', () => {it('does not force a background poll on non-success onboarding transitions while unfocused', async () => {const requestGateway = vi.fn(- async (method: string) => (method === 'setup.runtime_check' ? { ok: true } : { provider_configured: true }) as never+ async (method: string) =>+ (method === 'setup.runtime_check' ? { ok: true } : { provider_configured: true }) as never) as unknown as GatewayRequestervi.mocked(document.hasFocus).mockReturnValue(false)diff --git a/apps/desktop/src/components/pane-shell/tree/renderer/main-placement-floor.test.tsx b/apps/desktop/src/components/pane-shell/tree/renderer/main-placement-floor.test.tsxindex 91aeb3bf12b..bbfeffd30b8 100644--- a/apps/desktop/src/components/pane-shell/tree/renderer/main-placement-floor.test.tsx+++ b/apps/desktop/src/components/pane-shell/tree/renderer/main-placement-floor.test.tsx@@ -99,10 +99,7 @@ describe('the main placement floor in the renderer', () => {describe('vertical sash vs leading-pane scrollbar (#99867)', () => {it('keeps the grab band entirely in the trailing pane', () => {- const tree = split('row', [- group(['sessions'], { id: 'grp-sessions' }),- group(['workspace'], { id: 'grp-main' })- ])+ const tree = split('row', [group(['sessions'], { id: 'grp-sessions' }), group(['workspace'], { id: 'grp-main' })])$layoutTree.set(tree)render(<TreeSplit node={tree} root rootRow />)@@ -110,6 +107,7 @@ describe('vertical sash vs leading-pane scrollbar (#99867)', () => {const sashes = document.querySelectorAll('[data-sash-overlap="trailing"]')expect(sashes.length).toBeGreaterThan(0)+for (const sash of sashes) {expect(sash.className).toContain('w-[8px]')expect(sash.className).not.toContain('-translate-x-[1px]')diff --git a/apps/desktop/src/components/shared-metrics/consent-dialog.tsx b/apps/desktop/src/components/shared-metrics/consent-dialog.tsxindex 09c9b931c3c..e6e6b3812ec 100644--- a/apps/desktop/src/components/shared-metrics/consent-dialog.tsx+++ b/apps/desktop/src/components/shared-metrics/consent-dialog.tsx@@ -61,10 +61,7 @@ export function SharedMetricsConsentDialog({ enabled, profile, requestGateway }:const [expanded, setExpanded] = useState(true)const [saving, setSaving] = useState(false)- const scopedRequest = useMemo(- () => sharedMetricsProfileRequester(requestGateway, profile),- [profile, requestGateway]- )+ const scopedRequest = useMemo(() => sharedMetricsProfileRequester(requestGateway, profile), [profile, requestGateway])// Never over the provider picker, the free-tier welcome or the guided chat:// the question belongs to the moment after setup.diff --git a/apps/desktop/src/components/shared-metrics/consent-strip.test.tsx b/apps/desktop/src/components/shared-metrics/consent-strip.test.tsxindex 7b74b3184da..7c9dd778d71 100644--- a/apps/desktop/src/components/shared-metrics/consent-strip.test.tsx+++ b/apps/desktop/src/components/shared-metrics/consent-strip.test.tsx@@ -58,4 +58,4 @@ describe('SharedMetricsConsentStrip', () => {}))})-})\ No newline at end of file+})diff --git a/apps/desktop/src/components/shared-metrics/consent-strip.tsx b/apps/desktop/src/components/shared-metrics/consent-strip.tsxindex 4408d77fe5f..150b49429c0 100644--- a/apps/desktop/src/components/shared-metrics/consent-strip.tsx+++ b/apps/desktop/src/components/shared-metrics/consent-strip.tsx@@ -32,10 +32,7 @@ export function SharedMetricsConsentStrip() {const reask = useStore($sharedMetricsConsent)?.reask === trueconst [saving, setSaving] = useState(false)- const scopedRequest = useMemo(- () => sharedMetricsProfileRequester(requestGateway, profile),- [profile, requestGateway]- )+ const scopedRequest = useMemo(() => sharedMetricsProfileRequester(requestGateway, profile), [profile, requestGateway])const choose = async (choice: SharedMetricsChoice) => {setSaving(true)diff --git a/apps/desktop/src/i18n/ar_common.ts b/apps/desktop/src/i18n/ar_common.tsindex 141fdbd5437..8d9e6e0d0a2 100644--- a/apps/desktop/src/i18n/ar_common.ts+++ b/apps/desktop/src/i18n/ar_common.ts@@ -7,7 +7,8 @@ export const arCommon = {'تحتوي المقاييس المشتركة على عدّادات محدودة فقط، ولا تتضمن أبدًا المطالبات أو الملفات أو المسارات أو نصوص الأخطاء. الجمع محلي، وإرسالها إلى Nous موافقة منفصلة.',whatIsCollected: 'ما الذي يُجمع',collectedIntro: 'عدّادات محدودة فقط:',- collectedActivity: 'النشاط وطول الجلسات والنتائج وفئات الأخطاء، بما في ذلك سبب من قائمة ثابتة عند رفض كتابة في الذاكرة أو ضغط السياق أو فشلها أو تخطيها',+ collectedActivity:+ 'النشاط وطول الجلسات والنتائج وفئات الأخطاء، بما في ذلك سبب من قائمة ثابتة عند رفض كتابة في الذاكرة أو ضغط السياق أو فشلها أو تخطيها',collectedModels: 'مسارات النماذج وإجمالي الرموز',collectedNames: 'أسماء الأدوات والأوامر وعناصر الفهرس المدمجة',collectedMilestones: 'أعداد الإعداد ضمن فئات',diff --git a/apps/desktop/src/i18n/de_shared_metrics.ts b/apps/desktop/src/i18n/de_shared_metrics.tsindex 564c704c513..7205cc978d2 100644--- a/apps/desktop/src/i18n/de_shared_metrics.ts+++ b/apps/desktop/src/i18n/de_shared_metrics.ts@@ -1,11 +1,11 @@-export const deSharedMetrics = {consentTitle: '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, einschließlich eines Grunds aus einer festen Liste, wenn ein Speicherschreibvorgang oder eine Kontextkomprimierung abgelehnt wird, fehlschlägt oder übersprungen wird',+ collectedActivity:+ 'Aktivität, Session-Länge, Ergebnisse und Fehlerklassen, einschließlich eines Grunds aus einer festen Liste, wenn ein Speicherschreibvorgang oder eine Kontextkomprimierung abgelehnt wird, fehlschlägt oder übersprungen wird',collectedModels: 'Modellrouten und Token-Summen',collectedNames: 'Namen integrierter Tools, Befehle und Katalogeinträge',collectedMilestones: 'Gruppierte Einrichtungszahlen',@@ -32,7 +32,8 @@ export const deSharedMetrics = {'Jedes Tagespaket an den Nous-Telemetriedienst hochladen. Nur Daten aus einem Zustimmungsfenster werden gesendet. Erfordert aktive Erfassung.',unavailable: 'Aktualisieren Sie das Hermes-Backend, um diese Einstellung zu ändern.',stripBody: 'Nur begrenzte Zähler, niemals Prompts oder Dateien.',- stripReaskBody: 'Wir fragen noch einmal: Eine frühere Version konnte „Nein danke“ speichern, bevor Sie diese Frage gesehen haben.',+ stripReaskBody:+ 'Wir fragen noch einmal: Eine frühere Version konnte „Nein danke“ speichern, bevor Sie diese Frage gesehen haben.',stripChoices: { share: 'An Nous senden', local: 'Nur lokal', off: 'Nein danke' },stripDetails: 'Details'}diff --git a/apps/desktop/src/i18n/en_shared_metrics.ts b/apps/desktop/src/i18n/en_shared_metrics.tsindex db09473f216..3927d802059 100644--- a/apps/desktop/src/i18n/en_shared_metrics.ts+++ b/apps/desktop/src/i18n/en_shared_metrics.ts@@ -6,7 +6,8 @@ export const enSharedMetrics: Translations['sharedMetrics'] = {'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, including a fixed-list reason when a memory write or context compression is refused, fails or is skipped',+ collectedActivity:+ 'Activity, session length, outcomes and error classes, including a fixed-list reason when a memory write or context compression is refused, fails or is skipped',collectedModels: 'Model routes and token totals',collectedNames: 'Built-in tool, command and catalog names',collectedMilestones: 'Bucketed setup counts',diff --git a/apps/desktop/src/i18n/es_shared_metrics.ts b/apps/desktop/src/i18n/es_shared_metrics.tsindex ef650e77402..7d8268ac750 100644--- a/apps/desktop/src/i18n/es_shared_metrics.ts+++ b/apps/desktop/src/i18n/es_shared_metrics.ts@@ -1,11 +1,11 @@-export const esSharedMetrics = {consentTitle: '¿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, incluido un motivo de una lista fija cuando una escritura en memoria o una compresión de contexto se rechaza, falla o se omite',+ collectedActivity:+ 'Actividad, duración de sesiones, resultados y clases de error, incluido un motivo de una lista fija cuando una escritura en memoria o una compresión de contexto se rechaza, falla o se omite',collectedModels: 'Rutas de modelo y totales de tokens',collectedNames: 'Nombres de herramientas, comandos y elementos del catálogo integrados',collectedMilestones: 'Recuentos de configuración agrupados',@@ -26,14 +26,14 @@ export const esSharedMetrics = {changeLater: 'Puedes cambiarlo cuando quieras en Ajustes → Seguridad.',saveFailed: 'No se pudo guardar tu elección',collectLabel: 'Recopilar estadísticas de uso',- collectDesc:- 'Contadores acotados guardados en este dispositivo. Nunca prompts, archivos, rutas ni textos de error.',+ collectDesc: 'Contadores acotados guardados en este dispositivo. Nunca prompts, archivos, rutas ni textos de error.',sendLabel: 'Enviar estadísticas de uso a Nous',sendDesc:'Sube cada paquete diario al servicio de telemetría de Nous. Solo se envían datos de una ventana de consentimiento. Requiere la recopilación activada.',unavailable: 'Actualiza el backend de Hermes para cambiar este ajuste.',stripBody: 'Solo contadores acotados, nunca prompts ni archivos.',- stripReaskBody: 'Te lo preguntamos de nuevo: una versión anterior podía guardar «No, gracias» antes de que vieras esta pregunta.',+ stripReaskBody:+ 'Te lo preguntamos de nuevo: una versión anterior podía guardar «No, gracias» antes de que vieras esta pregunta.',stripChoices: { share: 'Enviar a Nous', local: 'Solo local', off: 'No, gracias' },stripDetails: 'Detalles'}diff --git a/apps/desktop/src/i18n/fr.ts b/apps/desktop/src/i18n/fr.tsindex 4960545646a..f605cb43385 100644--- a/apps/desktop/src/i18n/fr.ts+++ b/apps/desktop/src/i18n/fr.ts@@ -1988,7 +1988,7 @@ export const frOverrides = {sshErrTimeout: "Expiration de la connexion SSH. L'hôte peut être inaccessible ou en veille.",sshErrUpdateRequired: "Mettez à jour Hermes sur l'hôte distant avant de vous connecter avec Desktop SSH.",sshErrInteractiveAuth:- "Tailscale SSH exige une vérification interactive dans le navigateur. Exécutez `ssh <host> true` dans le terminal, terminez la vérification, puis réessayez — Hermes exécute SSH de façon non interactive.",+ 'Tailscale SSH exige une vérification interactive dans le navigateur. Exécutez `ssh <host> true` dans le terminal, terminez la vérification, puis réessayez — Hermes exécute SSH de façon non interactive.',sshErrUnknown: 'Échec de la connexion SSH.'},keys: {diff --git a/apps/desktop/src/i18n/fr_shared_metrics.ts b/apps/desktop/src/i18n/fr_shared_metrics.tsindex 49f46dad898..49a7f100df8 100644--- a/apps/desktop/src/i18n/fr_shared_metrics.ts+++ b/apps/desktop/src/i18n/fr_shared_metrics.ts@@ -1,11 +1,11 @@-export const frSharedMetrics = {consentTitle: '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, y compris un motif issu d’une liste fixe quand une écriture en mémoire ou une compression du contexte est refusée, échoue ou est ignorée',+ collectedActivity:+ 'Activité, durée des sessions, résultats et classes d’erreur, y compris un motif issu d’une liste fixe quand une écriture en mémoire ou une compression du contexte est refusée, échoue ou est ignorée',collectedModels: 'Routes de modèles et totaux de tokens',collectedNames: 'Noms des outils, commandes et éléments du catalogue intégrés',collectedMilestones: 'Comptes de configuration regroupés',@@ -26,14 +26,14 @@ export const frSharedMetrics = {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:- 'Compteurs bornés conservés sur cet appareil. Jamais de prompts, fichiers, chemins ni textes d’erreur.',+ collectDesc: 'Compteurs bornés conservés sur cet appareil. Jamais de prompts, fichiers, chemins ni textes d’erreur.',sendLabel: 'Envoyer les statistiques d’utilisation à Nous',sendDesc:'Envoyer chaque paquet quotidien au service de télémétrie de Nous. Seules les données d’une fenêtre de consentement sont envoyées. Nécessite la collecte activée.',unavailable: 'Mettez à jour le backend Hermes pour modifier ce réglage.',stripBody: 'Uniquement des compteurs bornés, jamais de prompts ni de fichiers.',- stripReaskBody: 'Nouvelle demande : une version précédente pouvait enregistrer « Non merci » avant que vous ne voyiez cette question.',+ stripReaskBody:+ 'Nouvelle demande : une version précédente pouvait enregistrer « Non merci » avant que vous ne voyiez cette question.',stripChoices: { share: 'Envoyer à Nous', local: 'Local uniquement', off: 'Non merci' },stripDetails: 'Détails'}diff --git a/apps/desktop/src/i18n/ja_shared_metrics.ts b/apps/desktop/src/i18n/ja_shared_metrics.tsindex 5d88f15eb2c..f55c451d882 100644--- a/apps/desktop/src/i18n/ja_shared_metrics.ts+++ b/apps/desktop/src/i18n/ja_shared_metrics.ts@@ -1,11 +1,11 @@-export const jaSharedMetrics = {consentTitle: 'Hermes の改善に協力しますか?',consentBody:'共有メトリクスは上限付きのカウンターだけです。プロンプト、ファイル、パス、エラーテキストは含みません。収集はローカルで行われ、Nous への送信は別途オプトインです。',whatIsCollected: '収集される内容',collectedIntro: '上限付きのカウンターのみ:',- collectedActivity: 'アクティビティ、セッションの長さ、結果、エラーの分類(メモリへの書き込みやコンテキスト圧縮が拒否・失敗・スキップされたときの、固定リストから選ばれた理由を含む)',+ collectedActivity:+ 'アクティビティ、セッションの長さ、結果、エラーの分類(メモリへの書き込みやコンテキスト圧縮が拒否・失敗・スキップされたときの、固定リストから選ばれた理由を含む)',collectedModels: 'モデルのルートとトークン合計',collectedNames: '組み込みツール、コマンド、カタログの名前',collectedMilestones: '区分けされたセットアップの件数',@@ -33,7 +33,8 @@ export const jaSharedMetrics = {'日次パッケージを Nous のテレメトリサービスにアップロードします。同意期間内のデータだけが送信されます。収集がオンである必要があります。',unavailable: 'この設定を変更するには Hermes バックエンドを更新してください。',stripBody: '上限付きのカウンターのみ。プロンプトやファイルは含みません。',- stripReaskBody: '改めてお尋ねします:以前のバージョンでは、この質問が表示される前に「今はしない」が保存されることがありました。',+ stripReaskBody:+ '改めてお尋ねします:以前のバージョンでは、この質問が表示される前に「今はしない」が保存されることがありました。',stripChoices: { share: 'Nous に送信', local: 'ローカルのみ', off: '今はしない' },stripDetails: '詳細'}diff --git a/apps/desktop/src/i18n/ru_shared_metrics.ts b/apps/desktop/src/i18n/ru_shared_metrics.tsindex d9dab2253c4..09cff4240b1 100644--- a/apps/desktop/src/i18n/ru_shared_metrics.ts+++ b/apps/desktop/src/i18n/ru_shared_metrics.ts@@ -1,11 +1,11 @@-export const ruSharedMetrics = {consentTitle: 'Помочь улучшить Hermes?',consentBody:'Общие метрики — это только ограниченные счётчики. Никаких запросов, файлов, путей или текстов ошибок. Сбор идёт локально. Отправка в Nous — отдельное согласие.',whatIsCollected: 'Что собирается',collectedIntro: 'Только ограниченные счётчики:',- collectedActivity: 'Активность, длительность сеансов, результаты и классы ошибок, включая причину из фиксированного списка, когда запись в память или сжатие контекста отклонены, не удались или пропущены',+ collectedActivity:+ 'Активность, длительность сеансов, результаты и классы ошибок, включая причину из фиксированного списка, когда запись в память или сжатие контекста отклонены, не удались или пропущены',collectedModels: 'Маршруты моделей и суммы токенов',collectedNames: 'Названия встроенных инструментов, команд и элементов каталога',collectedMilestones: 'Сгруппированные счётчики настройки',@@ -32,7 +32,8 @@ export const ruSharedMetrics = {'Загружать ежедневный пакет в сервис телеметрии Nous. Отправляются только данные из окна согласия. Требует включённого сбора.',unavailable: 'Обновите бэкенд Hermes, чтобы изменить этот параметр.',stripBody: 'Только ограниченные счётчики, никаких промптов и файлов.',- stripReaskBody: 'Спрашиваем ещё раз: прежняя версия могла сохранить «Нет, спасибо» до того, как вы увидели этот вопрос.',+ stripReaskBody:+ 'Спрашиваем ещё раз: прежняя версия могла сохранить «Нет, спасибо» до того, как вы увидели этот вопрос.',stripChoices: { share: 'Отправлять в Nous', local: 'Только локально', off: 'Нет, спасибо' },stripDetails: 'Подробнее'}diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex c70ac75e1d2..620b0b3a0d0 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -36,7 +36,8 @@ export const zhHant = defineLocale({'共享指標只包含有上限的計數,絕不包含提示詞、檔案、路徑或錯誤文字。收集僅在本機進行;傳送給 Nous 需要另行同意。',whatIsCollected: '收集哪些內容',collectedIntro: '僅限有上限的計數:',- collectedActivity: '活動、工作階段長度、結果和錯誤類別,包括記憶寫入或上下文壓縮被拒絕、失敗或略過時的原因(來自固定清單)',+ collectedActivity:+ '活動、工作階段長度、結果和錯誤類別,包括記憶寫入或上下文壓縮被拒絕、失敗或略過時的原因(來自固定清單)',collectedModels: '模型路由和 token 總量',collectedNames: '內建工具、指令和目錄項名稱',collectedMilestones: '分組的設定計數',diff --git a/apps/desktop/src/i18n/zh_shared_metrics.ts b/apps/desktop/src/i18n/zh_shared_metrics.tsindex b4b5d665378..3cfbb9f4a74 100644--- a/apps/desktop/src/i18n/zh_shared_metrics.ts+++ b/apps/desktop/src/i18n/zh_shared_metrics.ts@@ -1,11 +1,11 @@-export const zhSharedMetrics = {consentTitle: '帮助改进 Hermes?',consentBody:'共享指标只包含有上限的计数,绝不包含提示词、文件、路径或错误文本。收集仅在本地进行;发送给 Nous 需要另行同意。',whatIsCollected: '收集哪些内容',collectedIntro: '仅限有上限的计数:',- collectedActivity: '活动、会话时长、结果和错误类别,包括记忆写入或上下文压缩被拒绝、失败或跳过时的原因(来自固定列表)',+ collectedActivity:+ '活动、会话时长、结果和错误类别,包括记忆写入或上下文压缩被拒绝、失败或跳过时的原因(来自固定列表)',collectedModels: '模型路由和 token 总量',collectedNames: '内置工具、命令和目录项名称',collectedMilestones: '分桶的设置计数',diff --git a/apps/desktop/src/lib/gateway-health-pill.ts b/apps/desktop/src/lib/gateway-health-pill.tsindex fa21c77a847..860313f69f4 100644--- a/apps/desktop/src/lib/gateway-health-pill.ts+++ b/apps/desktop/src/lib/gateway-health-pill.ts@@ -107,7 +107,11 @@ export function statusBarGatewayHealth({? copy.connecting: copy.offline- const detail = restarting ? copy.restarting : messagingDown && connectionOpen ? messagingDetail(copy, downNames) : connectionDetail+ const detail = restarting+ ? copy.restarting+ : messagingDown && connectionOpen+ ? messagingDetail(copy, downNames)+ : connectionDetailreturn {degraded: Boolean(messagingDown && connectionOpen),diff --git a/apps/desktop/src/lib/json-rpc-gateway-heartbeat.test.ts b/apps/desktop/src/lib/json-rpc-gateway-heartbeat.test.tsindex 949d99eb00b..9e9c4081594 100644--- a/apps/desktop/src/lib/json-rpc-gateway-heartbeat.test.ts+++ b/apps/desktop/src/lib/json-rpc-gateway-heartbeat.test.ts@@ -152,7 +152,9 @@ describe('JsonRpcGatewayClient heartbeat recovery', () => {socket.message({ jsonrpc: '2.0', method: 'event', params: { type: 'gateway.ready', payload: { heartbeat: true } } })const pings = () =>- socket.sent.map(text => JSON.parse(text) as { id: string; method: string }).filter(f => f.method === 'gateway.ping')+ socket.sent+ .map(text => JSON.parse(text) as { id: string; method: string })+ .filter(f => f.method === 'gateway.ping')// One throttled tick: the clock moves 60 with only the last interval run.const throttledTick = async () => {diff --git a/apps/desktop/src/lib/provider-limit.ts b/apps/desktop/src/lib/provider-limit.tsindex 23c7b251623..8dbebb1fa14 100644--- a/apps/desktop/src/lib/provider-limit.ts+++ b/apps/desktop/src/lib/provider-limit.ts@@ -100,7 +100,13 @@ export function poolUsage(provider: ModelOptionProvider, nowMs = Date.now()) {const expired = resetMs !== null && resetMs <= nowMsconst stale = entry.state === 'ready' && windows.length === 0- return { id: entry.id, label: entry.label ?? '', windows, resetMs, state: expired || stale ? 'unknown' : entry.state }+ return {+ id: entry.id,+ label: entry.label ?? '',+ windows,+ resetMs,+ state: expired || stale ? 'unknown' : entry.state+ }})const limited = accounts.filter(entry => entry.state === 'limited')diff --git a/apps/desktop/src/lib/turn-done-notification-body.test.ts b/apps/desktop/src/lib/turn-done-notification-body.test.tsindex 354b741974c..1ab1561cf72 100644--- a/apps/desktop/src/lib/turn-done-notification-body.test.ts+++ b/apps/desktop/src/lib/turn-done-notification-body.test.ts@@ -1,10 +1,6 @@import { describe, expect, it } from 'vitest'-import {- TURN_DONE_BODY_FALLBACK,- TURN_DONE_BODY_MAX,- turnDoneNotificationBody-} from './turn-done-notification-body'+import { TURN_DONE_BODY_FALLBACK, TURN_DONE_BODY_MAX, turnDoneNotificationBody } from './turn-done-notification-body'// Mirrors the minified 0.20.0 Studio bundle helper quoted in #88488:// Xn(n?.content || e.title || "Message complete.", 140)diff --git a/apps/desktop/src/store/sidebar-archive.test.ts b/apps/desktop/src/store/sidebar-archive.test.tsindex 0b2a5bdee75..4017e65053c 100644--- a/apps/desktop/src/store/sidebar-archive.test.ts+++ b/apps/desktop/src/store/sidebar-archive.test.ts@@ -81,10 +81,16 @@ describe('listEveryArchivedSession', () => {// a riding pin. The next offset must stay 200/400 regardless.listAllProfileSessions.mockResolvedValueOnce({- sessions: [...page(0, PAGE_SIZE), pinnedRow('pin-x')], total: 401, limit: PAGE_SIZE, offset: 0+ sessions: [...page(0, PAGE_SIZE), pinnedRow('pin-x')],+ total: 401,+ limit: PAGE_SIZE,+ offset: 0}).mockResolvedValueOnce({- sessions: [...page(PAGE_SIZE, PAGE_SIZE), pinnedRow('pin-x')], total: 401, limit: PAGE_SIZE, offset: PAGE_SIZE+ sessions: [...page(PAGE_SIZE, PAGE_SIZE), pinnedRow('pin-x')],+ total: 401,+ limit: PAGE_SIZE,+ offset: PAGE_SIZE}).mockResolvedValueOnce({ sessions: [row('a-400')], total: 401, limit: PAGE_SIZE, offset: 2 * PAGE_SIZE })@@ -94,10 +100,8 @@ describe('listEveryArchivedSession', () => {expect(sessions).toHaveLength(402)expect(sessions.filter(s => s.id === 'pin-x')).toHaveLength(1)expect(sessions.filter(s => s.archived).map(s => s.id)).toContain('a-400')- expect(listAllProfileSessions).toHaveBeenNthCalledWith(- 2, PAGE_SIZE, 0, 'only', 'recent', 'all', {}, PAGE_SIZE)- expect(listAllProfileSessions).toHaveBeenNthCalledWith(- 3, PAGE_SIZE, 0, 'only', 'recent', 'all', {}, 2 * PAGE_SIZE)+ expect(listAllProfileSessions).toHaveBeenNthCalledWith(2, PAGE_SIZE, 0, 'only', 'recent', 'all', {}, PAGE_SIZE)+ expect(listAllProfileSessions).toHaveBeenNthCalledWith(3, PAGE_SIZE, 0, 'only', 'recent', 'all', {}, 2 * PAGE_SIZE)})it('loads every archived row when non-archived pins inflate each page', async () => {diff --git a/apps/desktop/src/store/sidebar-archive.ts b/apps/desktop/src/store/sidebar-archive.tsindex e9b04b24819..8f65c1111f1 100644--- a/apps/desktop/src/store/sidebar-archive.ts+++ b/apps/desktop/src/store/sidebar-archive.ts@@ -33,15 +33,7 @@ export async function listEveryArchivedSession(): Promise<SessionInfo[]> {let offset = 0while (true) {- const page = await listAllProfileSessions(- ARCHIVED_FETCH_PAGE_SIZE,- 0,- 'only',- 'recent',- 'all',- {},- offset- )+ const page = await listAllProfileSessions(ARCHIVED_FETCH_PAGE_SIZE, 0, 'only', 'recent', 'all', {}, offset)for (const session of page.sessions) {if (!seen.has(session.id)) {