The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
polish(desktop): cloud-down overlay gets Portal/Discord action buttons
Tekniuma9ddd0f0bd04
diff --git a/apps/desktop/src/components/boot-failure-overlay.test.tsx b/apps/desktop/src/components/boot-failure-overlay.test.tsxindex a0dc71b0240..db03d6d046e 100644--- a/apps/desktop/src/components/boot-failure-overlay.test.tsx+++ b/apps/desktop/src/components/boot-failure-overlay.test.tsx@@ -116,10 +116,13 @@ describe('BootFailureOverlay', () => {try {render(<BootFailureOverlay />)- // Cloud-specific title + actionable portal guidance instead of the- // generic remote-failure copy.+ // Cloud-specific title + actionable recovery instead of the generic+ // remote-failure copy.expect(await screen.findByText(/Nous Cloud agent is down/i)).toBeTruthy()- expect(screen.getByText(/portal\.nousresearch\.com/i)).toBeTruthy()+ // Portal and Discord are dedicated action buttons (localized labels+ // can't drift the URLs, which live in code).+ expect(screen.getByRole('button', { name: /check portal status/i })).toBeTruthy()+ expect(screen.getByRole('button', { name: /get help on discord/i })).toBeTruthy()// Cloud-down is a remote failure: local-only Repair is dropped; the// actionable paths are Gateway settings + Use local gateway.expect(screen.queryByRole('button', { name: /repair/i })).toBeNull()diff --git a/apps/desktop/src/components/boot-failure-overlay.tsx b/apps/desktop/src/components/boot-failure-overlay.tsxindex 246b9525df3..2d71eca10c6 100644--- a/apps/desktop/src/components/boot-failure-overlay.tsx+++ b/apps/desktop/src/components/boot-failure-overlay.tsx@@ -7,7 +7,8 @@ import { Loader } from '@/components/ui/loader'import { LogView } from '@/components/ui/log-view'import type { DesktopConnectionConfig } from '@/global'import { useI18n } from '@/i18n'-import { ChevronLeft, FileText, Loader2, LogIn, RefreshCw, SlidersHorizontal, Wrench } from '@/lib/icons'+import { openExternalLink } from '@/lib/external-link'+import { ChevronLeft, ExternalLink, FileText, Loader2, LogIn, RefreshCw, SlidersHorizontal, Wrench } from '@/lib/icons'import { $desktopBoot } from '@/store/boot'import { notify, notifyError } from '@/store/notifications'import { $desktopOnboarding } from '@/store/onboarding'@@ -268,9 +269,28 @@ export function BootFailureOverlay() {hint = copy.remoteSignInHint(label)} else if (cloudDown) {// A Nous Cloud agent is down — the user cannot restart the managed- // instance and Repair is local-only, so the actionable paths are Gateway- // settings (switch host / use local), a secondary Retry, and open logs.- actions = [settingsAction, { ...retryAction, variant: 'secondary' }, localAction]+ // instance and Repair is local-only. Lead with the paths that actually+ // resolve it: check the portal (status/instance controls), switch to the+ // local gateway, retry, or get support on Discord. Portal/Discord are+ // buttons (not URLs buried in the hint prose) so localized hints can't+ // drift the links.+ actions = [+ {+ key: 'portal',+ label: copy.cloudDownCheckPortal,+ onClick: () => openExternalLink('https://portal.nousresearch.com'),+ icon: <ExternalLink />+ },+ localAction,+ { ...retryAction, variant: 'secondary' },+ {+ key: 'discord',+ label: copy.cloudDownDiscord,+ onClick: () => openExternalLink('https://discord.gg/NousResearch'),+ variant: 'ghost'+ },+ { ...settingsAction, variant: 'ghost' }+ ]hint = copy.cloudDownHint} else if (remoteFailure) {actions = [settingsAction, { ...retryAction, variant: 'secondary' }, localAction]diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex 43a71123e9c..e029b9f1bf6 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -87,7 +87,9 @@ export const ar = defineLocale({useLocalGateway: 'استخدام البوابة المحلية',cloudDownTitle: 'عامل Nous Cloud معطّل',cloudDownDescription: 'يعيد عامل السحابة المُدار من Nous الذي يتصل به هذا البوابة خطأً من الخادم. لا يمكن إعادة تشغيله من هنا — تحقق من حالته، أو بدّل إلى البوابة المحلية، أو احصل على الدعم.',- cloudDownHint: 'تحقق من https://portal.nousresearch.com لحالة الخادم، أو استخدم البوابة المحلية أدناه، أو تواصل معنا عبر Discord (discord.gg/NousResearch).',+ cloudDownHint: 'تفتح الأزرار أدناه بوابة Nous (حالة المثيل وعناصر التحكم) أو Discord للحصول على الدعم.',+ cloudDownCheckPortal: 'التحقق من حالة البوابة',+ cloudDownDiscord: 'الحصول على مساعدة عبر Discord',openLogs: 'فتح السجلات',repairHint: 'يعيد الإصلاح تشغيل المثبت وقد يستغرق بضع دقائق على جهاز جديد.',remoteSignInHint: signInLabel =>diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 6db27de9f70..1adb019c812 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -106,7 +106,9 @@ export const en: Translations = {cloudDownDescription:'The Nous-managed cloud agent this gateway connects to is returning a server error. It cannot be restarted from here — check its status, switch to the local gateway, or get support.',cloudDownHint:- 'Check https://portal.nousresearch.com for backend status, use the local gateway below, or reach out on Discord (discord.gg/NousResearch).',+ 'The buttons below open the Nous Portal (instance status and controls) and our Discord for support.',+ cloudDownCheckPortal: 'Check Portal status',+ cloudDownDiscord: 'Get help on Discord',hideRecentLogs: 'Hide recent logs',showRecentLogs: 'Show recent logs',signedInTitle: 'Signed in',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex 2ec6066b74b..5e522df6dd0 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -107,7 +107,9 @@ export const ja = defineLocale({cloudDownDescription:'このゲートウェイが接続している Nous 管理のクラウドエージェントがサーバーエラーを返しています。ここから再起動することはできません。ステータスを確認するか、ローカルゲートウェイに切り替えるか、サポートに連絡してください。',cloudDownHint:- 'https://portal.nousresearch.com でバックエンドのステータスを確認するか、下のローカルゲートウェイを使用するか、Discord (discord.gg/NousResearch) でご連絡ください。',+ '下のボタンから Nous Portal(インスタンスの状態と操作)を開くか、Discord でサポートを受けられます。',+ cloudDownCheckPortal: 'Portal のステータスを確認',+ cloudDownDiscord: 'Discord でサポートを受ける',hideRecentLogs: '最近のログを非表示',showRecentLogs: '最近のログを表示',signedInTitle: 'サインインしました',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex a28249ee49f..4440e5134f9 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -148,6 +148,8 @@ export interface Translations {cloudDownTitle: stringcloudDownDescription: stringcloudDownHint: string+ cloudDownCheckPortal: string+ cloudDownDiscord: stringhideRecentLogs: stringshowRecentLogs: stringsignedInTitle: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex 505e799dc10..9178997e1ea 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -102,7 +102,9 @@ export const zhHant = defineLocale({remoteFailureHint: '在「閘道設定」中檢查閘道 URL 與登入,或切換至本機閘道。',cloudDownTitle: 'Nous Cloud 代理已停機',cloudDownDescription: '此閘道連線的 Nous 託管雲端代理正在回傳伺服器錯誤。無法在此處重新啟動——請檢查其狀態、切換至本機閘道,或取得支援。',- cloudDownHint: '請前往 https://portal.nousresearch.com 查看後端狀態,使用下方的本機閘道,或在 Discord (discord.gg/NousResearch) 上與我們聯繫。',+ cloudDownHint: '使用下方按鈕開啟 Nous Portal(檢視執行個體狀態與操作)或加入 Discord 取得支援。',+ cloudDownCheckPortal: '查看 Portal 狀態',+ cloudDownDiscord: '在 Discord 取得協助',hideRecentLogs: '隱藏最近記錄',showRecentLogs: '顯示最近記錄',signedInTitle: '已登入',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex db548684dda..5423d13af88 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -102,7 +102,9 @@ export const zh: Translations = {remoteFailureHint: '在“网关设置”中检查网关 URL 和登录,或切换到本地网关。',cloudDownTitle: 'Nous Cloud 代理已宕机',cloudDownDescription: '此网关连接的 Nous 托管云代理正在返回服务器错误。无法在此处重启——请检查其状态、切换到本地网关或获取支持。',- cloudDownHint: '请访问 https://portal.nousresearch.com 查看后端状态,使用下方的本地网关,或在 Discord (discord.gg/NousResearch) 上联系我们。',+ cloudDownHint: '使用下方按钮打开 Nous Portal(查看实例状态与操作)或加入 Discord 获取支持。',+ cloudDownCheckPortal: '查看 Portal 状态',+ cloudDownDiscord: '在 Discord 获取帮助',hideRecentLogs: '隐藏最近日志',showRecentLogs: '显示最近日志',signedInTitle: '已登录',