From 745bd737a9fd35e4174f2d08adfc310e4b1f4f99 Mon Sep 17 00:00:00 2001 From: Larry Pang <48111293+larrypang@users.noreply.github.com> Date: Fri, 25 Sep 2026 14:25:33 +0530 Subject: [PATCH] fix(desktop): name the backend when a remote update needs a manual command When the connected backend refuses a dashboard update and returns a real command (docker/nix installs), the manual dialog said "You installed Hermes from the command line" -- untrue for a remote backend. Use backend-aware copy instead. Salvaged from #78958. The PR's backend half (returning recommended_update_command() from the managed-externally refusal) is not carried: that branch only fires for hosted /opt/data and pip/docker container installs, where the recommended command is exactly the update the guard blocks. The earlier commit in this series returns an empty command there instead. --- apps/desktop/src/app/updates-overlay.tsx | 13 +++++++++++-- apps/desktop/src/i18n/ar.ts | 2 ++ apps/desktop/src/i18n/en.ts | 2 ++ apps/desktop/src/i18n/ja.ts | 3 +++ apps/desktop/src/i18n/types.ts | 2 ++ apps/desktop/src/i18n/zh-hant.ts | 2 ++ apps/desktop/src/i18n/zh.ts | 2 ++ 7 files changed, 24 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/app/updates-overlay.tsx b/apps/desktop/src/app/updates-overlay.tsx index 209c53d1a7..3b0be07dc6 100644 --- a/apps/desktop/src/app/updates-overlay.tsx +++ b/apps/desktop/src/app/updates-overlay.tsx @@ -130,6 +130,7 @@ export function UpdatesOverlay() { {phase === 'manual' && ( handleClose(false)} refused={apply.error !== null} @@ -338,11 +339,13 @@ function IdleView({ function ManualView({ command, + isBackend, message, onDone, refused = false }: { command: string | null + isBackend: boolean message?: string onDone: () => void refused?: boolean @@ -390,7 +393,9 @@ function ManualView({ {u.manualTitle} - {guidance ?? u.manualBody} + + {guidance ?? (isBackend ? u.manualBodyBackend : u.manualBody)} + - {!guidance &&

{u.manualPickedUp}

} + {!guidance && ( +

+ {isBackend ? u.manualPickedUpBackend : u.manualPickedUp} +

+ )}