From ef3bf57117296f191dfa847ba21bbbd01592377a Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Tue, 7 Jul 2026 05:33:31 -0700 Subject: [PATCH] chore(desktop): rename Hermes Cloud beta gate env var BETA -> HERMESCLOUD_BETA Generic BETA is too broad a name for a single-feature gate; scope it to the Hermes Cloud selector. Parsing semantics unchanged (1/true/yes/on, case- insensitive). --- apps/desktop/electron/main.cjs | 10 +++++----- apps/desktop/src/app/settings/gateway-settings.tsx | 2 +- apps/desktop/src/global.d.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/desktop/electron/main.cjs b/apps/desktop/electron/main.cjs index 85ae186a122..630c2eb05ae 100644 --- a/apps/desktop/electron/main.cjs +++ b/apps/desktop/electron/main.cjs @@ -6712,12 +6712,12 @@ ipcMain.handle('hermes:cloud:status', async () => ({ signedIn: await hasLivePortalSession() })) -// Whether the Hermes Cloud gateway selector is enabled — gated behind a BETA -// env flag while the feature is in beta. Truthy values: '1', 'true', 'yes', -// 'on' (case-insensitive). Absent, empty, 'false', '0', etc. → disabled, so the -// renderer hides the Cloud ModeCard entirely. +// Whether the Hermes Cloud gateway selector is enabled — gated behind a +// HERMESCLOUD_BETA env flag while the feature is in beta. Truthy values: '1', +// 'true', 'yes', 'on' (case-insensitive). Absent, empty, 'false', '0', etc. → +// disabled, so the renderer hides the Cloud ModeCard entirely. function betaFeaturesEnabled() { - const raw = String(process.env.BETA ?? '').trim().toLowerCase() + const raw = String(process.env.HERMESCLOUD_BETA ?? '').trim().toLowerCase() return raw === '1' || raw === 'true' || raw === 'yes' || raw === 'on' } diff --git a/apps/desktop/src/app/settings/gateway-settings.tsx b/apps/desktop/src/app/settings/gateway-settings.tsx index 0ff4244a35b..f7b35e9b4b9 100644 --- a/apps/desktop/src/app/settings/gateway-settings.tsx +++ b/apps/desktop/src/app/settings/gateway-settings.tsx @@ -142,7 +142,7 @@ export function GatewaySettings() { } // Hermes Cloud is beta-gated: the selector ModeCard only appears when the main - // process reports the BETA env flag is enabled. Default hidden until the async + // process reports the HERMESCLOUD_BETA env flag is enabled. Default hidden until the async // check resolves, so it never flashes in for non-beta users. const [cloudBetaEnabled, setCloudBetaEnabled] = useState(false) useEffect(() => { diff --git a/apps/desktop/src/global.d.ts b/apps/desktop/src/global.d.ts index 90f5c0576d1..98577c242f9 100644 --- a/apps/desktop/src/global.d.ts +++ b/apps/desktop/src/global.d.ts @@ -59,7 +59,7 @@ declare global { // sign-in (cloud-auto-discovery Phase 3). cloud: { status: () => Promise - // Whether the BETA env flag enables the Hermes Cloud gateway selector. + // Whether the HERMESCLOUD_BETA env flag enables the Hermes Cloud gateway selector. betaEnabled: () => Promise login: () => Promise logout: () => Promise