From 4052d63594e6c208dfff285199ed5aa0f96985c6 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Sun, 20 Sep 2026 18:48:22 -0500 Subject: [PATCH] feat: Version Number on offline servers (#1291) https://github.com/Termix-SSH/Support/issues/1291 --- src/ui/sidebar/UserProfilePanel.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/ui/sidebar/UserProfilePanel.tsx b/src/ui/sidebar/UserProfilePanel.tsx index 905c7f401..d0ba4e931 100644 --- a/src/ui/sidebar/UserProfilePanel.tsx +++ b/src/ui/sidebar/UserProfilePanel.tsx @@ -830,7 +830,22 @@ export function UserProfilePanel({ setVersionStatus(info.status ?? "unknown"); setReleaseUrl(releaseUrlFrom(info)); }) - .catch(() => {}); + .catch(() => { + // Backend/network unreachable (offline machine). The installer + // version is still known locally via Electron, so use that instead + // of leaving the version blank. + if (isElectron()) { + window.electronAPI + ?.getAppVersion?.() + .then((appVersion) => { + if (appVersion) { + setVersion(appVersion); + setVersionStatus("unknown"); + } + }) + .catch(() => {}); + } + }); }, [t]); // The rail can toggle these from its right-click menu while this panel is