Skip to content

The agent that grows with you

feat(desktop): Terms and Privacy butterbar for free-tier users

Brooklyn Nicholson117625538141
diff --git a/apps/desktop/src/app/contrib/controller.tsx b/apps/desktop/src/app/contrib/controller.tsx
index 1ac6c520487..337bae9ff10 100644
--- a/apps/desktop/src/app/contrib/controller.tsx
+++ b/apps/desktop/src/app/contrib/controller.tsx
@@ -119,6 +119,7 @@ import { $terminalTakeover, setTerminalTakeover } from '../right-sidebar/store'
import { terminalPaletteToggle } from '../right-sidebar/terminal/reveal-focus'
import { $workspaceIsPage, WORKSPACE_PAGE_HEADER_AREA } from '../routes'
import { Butterbar } from '../shell/butterbar'
+import { TermsButterbar } from '../shell/terms-butterbar'
import { BASIC_TREE, DEFAULT_TREE, registerLayoutPresets } from './layout-presets'
import { bindLayoutSides } from './layout-sides'
@@ -857,6 +858,7 @@ export function ContribController() {
{/* Notices registered through `registerButterbar` / `useButterbar`;
renders nothing while none are registered. */}
<Butterbar />
+ <TermsButterbar />
{statusbarVisible && <WiredPane part="statusbar" />}
</div>
</ContribWiring>
diff --git a/apps/desktop/src/app/shell/terms-butterbar.tsx b/apps/desktop/src/app/shell/terms-butterbar.tsx
new file mode 100644
index 00000000000..d629a014ad6
--- /dev/null
+++ b/apps/desktop/src/app/shell/terms-butterbar.tsx
@@ -0,0 +1,40 @@
+import { useStore } from '@nanostores/react'
+
+import { useI18n } from '@/i18n'
+import { ExternalLink } from '@/lib/external-link'
+import { type ButterbarItem, useButterbar } from '@/store/butterbar'
+import { $freeTierStatus } from '@/store/free-tier'
+
+const TERMS_URL = 'https://portal.nousresearch.com/terms'
+const PRIVACY_URL = 'https://portal.nousresearch.com/privacy'
+
+function TermsNotice() {
+ const copy = useI18n().t.butterbar.legal
+
+ return (
+ <>
+ {copy.before}
+ <ExternalLink href={TERMS_URL} native>
+ {copy.terms}
+ </ExternalLink>
+ {copy.between}
+ <ExternalLink href={PRIVACY_URL} native>
+ {copy.privacy}
+ </ExternalLink>
+ {copy.after}
+ </>
+ )
+}
+
+// Module-level so the item keeps one identity across renders.
+const TERMS_BUTTERBAR: ButterbarItem = { id: 'portal-terms', node: <TermsNotice />, priority: -1, tone: 'neutral' }
+
+/** Accountless free-tier users get a persistent link to the Terms and Privacy
+ * Policy. Not closeable: it stands for as long as they use the free tier. */
+export function TermsButterbar() {
+ const freeTier = useStore($freeTierStatus)
+
+ useButterbar(freeTier?.available ? TERMS_BUTTERBAR : null)
+
+ return null
+}
diff --git a/apps/desktop/src/i18n/ar_boot.ts b/apps/desktop/src/i18n/ar_boot.ts
index 618e7cdebe8..c6833a5d73b 100644
--- a/apps/desktop/src/i18n/ar_boot.ts
+++ b/apps/desktop/src/i18n/ar_boot.ts
@@ -58,7 +58,14 @@ export const arBoot = {
message: reason => `العرض البرمجي نشط — تم اكتشاف شاشة بعيدة (${reason}). تم تعطيل تسريع GPU لمنع الوميض.`
},
butterbar: {
- goTo: (index, total) => `عرض الإشعار ${index} من ${total}`
+ goTo: (index, total) => `عرض الإشعار ${index} من ${total}`,
+ legal: {
+ before: 'يخضع استخدام Hermes Agent لـ',
+ terms: 'شروط الخدمة',
+ between: ' و',
+ privacy: 'سياسة الخصوصية',
+ after: ' الخاصة بنا.'
+ }
},
updates: {
discontinuedTitle: 'لم يعد إصدار Hermes هذا مدعومًا',
diff --git a/apps/desktop/src/i18n/de_notices.ts b/apps/desktop/src/i18n/de_notices.ts
index d861ddd33d2..35d96396b9b 100644
--- a/apps/desktop/src/i18n/de_notices.ts
+++ b/apps/desktop/src/i18n/de_notices.ts
@@ -7,6 +7,13 @@ export const deNotices = {
`Software-Rendering aktiv — Remote-Display erkannt (${reason}). GPU-Beschleunigung ist deaktiviert, um Flackern zu verhindern.`
},
butterbar: {
- goTo: (index, total) => `Hinweis ${index} von ${total} anzeigen`
+ goTo: (index, total) => `Hinweis ${index} von ${total} anzeigen`,
+ legal: {
+ before: 'Die Nutzung von Hermes Agent unterliegt unseren ',
+ terms: 'Nutzungsbedingungen',
+ between: ' und unserer ',
+ privacy: 'Datenschutzerklärung',
+ after: '.'
+ }
}
} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>
diff --git a/apps/desktop/src/i18n/en_notices.ts b/apps/desktop/src/i18n/en_notices.ts
index 63988104280..a668aff823f 100644
--- a/apps/desktop/src/i18n/en_notices.ts
+++ b/apps/desktop/src/i18n/en_notices.ts
@@ -7,6 +7,13 @@ export const enNotices = {
`Software rendering active — remote display detected (${reason}). GPU acceleration is disabled to prevent flickering.`
},
butterbar: {
- goTo: (index, total) => `Show notice ${index} of ${total}`
+ goTo: (index, total) => `Show notice ${index} of ${total}`,
+ legal: {
+ before: 'Use of Hermes Agent is subject to our ',
+ terms: 'Terms of Service',
+ between: ' and ',
+ privacy: 'Privacy Policy',
+ after: '.'
+ }
}
} satisfies Pick<Translations, 'remoteDisplayBanner' | 'butterbar'>
diff --git a/apps/desktop/src/i18n/es_notices.ts b/apps/desktop/src/i18n/es_notices.ts
index f69691e8d23..c9c2affffdb 100644
--- a/apps/desktop/src/i18n/es_notices.ts
+++ b/apps/desktop/src/i18n/es_notices.ts
@@ -7,6 +7,13 @@ export const esNotices = {
`Renderizado por software activo — se detectó una pantalla remota (${reason}). Se desactivó la aceleración por GPU para evitar parpadeos.`
},
butterbar: {
- goTo: (index, total) => `Mostrar aviso ${index} de ${total}`
+ goTo: (index, total) => `Mostrar aviso ${index} de ${total}`,
+ legal: {
+ before: 'El uso de Hermes Agent está sujeto a nuestros ',
+ terms: 'Términos del servicio',
+ between: ' y a nuestra ',
+ privacy: 'Política de privacidad',
+ after: '.'
+ }
}
} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>
diff --git a/apps/desktop/src/i18n/fr_notices.ts b/apps/desktop/src/i18n/fr_notices.ts
index b5d6dfa5964..2262902e386 100644
--- a/apps/desktop/src/i18n/fr_notices.ts
+++ b/apps/desktop/src/i18n/fr_notices.ts
@@ -7,6 +7,13 @@ export const frNotices = {
`Rendu logiciel actif — affichage distant détecté (${reason}). L'accélération GPU est désactivée pour éviter les scintillements.`
},
butterbar: {
- goTo: (index, total) => `Afficher l'avis ${index} sur ${total}`
+ goTo: (index, total) => `Afficher l'avis ${index} sur ${total}`,
+ legal: {
+ before: "L'utilisation de Hermes Agent est soumise à nos ",
+ terms: "Conditions d'utilisation",
+ between: ' et à notre ',
+ privacy: 'Politique de confidentialité',
+ after: '.'
+ }
}
} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>
diff --git a/apps/desktop/src/i18n/ja_notices.ts b/apps/desktop/src/i18n/ja_notices.ts
index e73af9728b9..1307b347757 100644
--- a/apps/desktop/src/i18n/ja_notices.ts
+++ b/apps/desktop/src/i18n/ja_notices.ts
@@ -7,6 +7,13 @@ export const jaNotices = {
`ソフトウェアレンダリングが有効です — リモートディスプレイを検出しました(${reason})。ちらつきを防ぐため GPU アクセラレーションは無効化されています。`
},
butterbar: {
- goTo: (index, total) => `お知らせ ${index} / ${total} を表示`
+ goTo: (index, total) => `お知らせ ${index} / ${total} を表示`,
+ legal: {
+ before: 'Hermes Agent のご利用には',
+ terms: '利用規約',
+ between: 'および',
+ privacy: 'プライバシーポリシー',
+ after: 'が適用されます。'
+ }
}
} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>
diff --git a/apps/desktop/src/i18n/ru_notices.ts b/apps/desktop/src/i18n/ru_notices.ts
index a013d4c573d..6b41c5de16a 100644
--- a/apps/desktop/src/i18n/ru_notices.ts
+++ b/apps/desktop/src/i18n/ru_notices.ts
@@ -7,6 +7,13 @@ export const ruNotices = {
`Включён программный рендеринг — обнаружен удалённый дисплей (${reason}). GPU-ускорение отключено, чтобы избежать мерцания.`
},
butterbar: {
- goTo: (index, total) => `Показать уведомление ${index} из ${total}`
+ goTo: (index, total) => `Показать уведомление ${index} из ${total}`,
+ legal: {
+ before: 'Использование Hermes Agent регулируется нашими ',
+ terms: 'Условиями обслуживания',
+ between: ' и ',
+ privacy: 'Политикой конфиденциальности',
+ after: '.'
+ }
}
} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>
diff --git a/apps/desktop/src/i18n/types_notices.ts b/apps/desktop/src/i18n/types_notices.ts
index 3769298c73d..14a52bbbd63 100644
--- a/apps/desktop/src/i18n/types_notices.ts
+++ b/apps/desktop/src/i18n/types_notices.ts
@@ -7,5 +7,6 @@ export interface NoticeTranslations {
butterbar: {
goTo: (index: number, total: number) => string
+ legal: { before: string; terms: string; between: string; privacy: string; after: string }
}
}
diff --git a/apps/desktop/src/i18n/zh-hant_boot.ts b/apps/desktop/src/i18n/zh-hant_boot.ts
index 82c8ddd4163..6d5fcdd6db7 100644
--- a/apps/desktop/src/i18n/zh-hant_boot.ts
+++ b/apps/desktop/src/i18n/zh-hant_boot.ts
@@ -62,7 +62,14 @@ export const zhHantBoot = {
message: reason => `軟體繪圖已啟用 — 偵測到遠端顯示(${reason})。為防止畫面閃爍,已停用 GPU 加速。`
},
butterbar: {
- goTo: (index, total) => `顯示第 ${index} 則通知,共 ${total} 則`
+ goTo: (index, total) => `顯示第 ${index} 則通知,共 ${total} 則`,
+ legal: {
+ before: '使用 Hermes Agent 即表示受我們的',
+ terms: '服務條款',
+ between: '和',
+ privacy: '隱私權政策',
+ after: '約束。'
+ }
},
updates: {
diff --git a/apps/desktop/src/i18n/zh_notices.ts b/apps/desktop/src/i18n/zh_notices.ts
index ea60ba7e601..12186636040 100644
--- a/apps/desktop/src/i18n/zh_notices.ts
+++ b/apps/desktop/src/i18n/zh_notices.ts
@@ -6,6 +6,13 @@ export const zhNotices = {
message: reason => `软件渲染已启用 — 检测到远程显示(${reason})。为防止画面闪烁,已禁用 GPU 加速。`
},
butterbar: {
- goTo: (index, total) => `显示第 ${index} 条通知,共 ${total} 条`
+ goTo: (index, total) => `显示第 ${index} 条通知,共 ${total} 条`,
+ legal: {
+ before: '使用 Hermes Agent 即表示受我们的',
+ terms: '服务条款',
+ between: '和',
+ privacy: '隐私政策',
+ after: '约束。'
+ }
}
} satisfies Pick<TranslationOverrides, 'remoteDisplayBanner' | 'butterbar'>
diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.json
index 74f86f8535f..b647609279b 100644
--- a/locales/_keys.desktop.json
+++ b/locales/_keys.desktop.json
@@ -565,6 +565,11 @@
"boot.updateHold.titleUnverified",
"boot.updateHold.unverified",
"butterbar.goTo",
+ "butterbar.legal.after",
+ "butterbar.legal.before",
+ "butterbar.legal.between",
+ "butterbar.legal.privacy",
+ "butterbar.legal.terms",
"commandCenter.actionDone",
"commandCenter.actionFailed",
"commandCenter.actionRunning",