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