The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(webapp): read the served profile through browserLaunchProfileOrDefault
unsupportedpastelsc714c42431e5
diff --git a/apps/desktop/src/lib/browser-served-profiles.ts b/apps/desktop/src/lib/browser-served-profiles.tsindex 84520c63069..057f49fd721 100644--- a/apps/desktop/src/lib/browser-served-profiles.ts+++ b/apps/desktop/src/lib/browser-served-profiles.ts@@ -1,5 +1,5 @@import type { HermesApiRequest } from '@/global'-import { browserLaunchProfile } from '@/lib/platform'+import { browserLaunchProfileOrDefault } from '@/lib/platform'// The multiplexer applies a park, unpark or standalone change on its 30 s profile rescan, and none// of those changes the installed list, so a known served set is re-read on that cadence.@@ -51,7 +51,7 @@ export function createServedProfiles(api: <T>(request: HermesApiRequest) => Prom// Absent on a backend older than the field; [] on a gateway that serves only its own profile.served = Array.isArray(shared)- ? new Set([...shared.map(name => profileKey(String(name))), profileKey(browserLaunchProfile())])+ ? new Set([...shared.map(name => profileKey(String(name))), browserLaunchProfileOrDefault()]): null} catch {// A failed read keeps the last answer: a status blip must not change which profiles are reachable.diff --git a/apps/desktop/src/lib/platform.ts b/apps/desktop/src/lib/platform.tsindex bdbb2953998..837bf32ba0d 100644--- a/apps/desktop/src/lib/platform.ts+++ b/apps/desktop/src/lib/platform.ts@@ -76,5 +76,5 @@ export function isBrowserHostedDesktop() {* not serve, and it refuses them (`profile_mismatch`). Native Desktop starts on `default`.*/export function initialGatewayProfile(): string {- return (isBrowserHostedDesktop() && browserLaunchProfile()) || 'default'+ return isBrowserHostedDesktop() ? browserLaunchProfileOrDefault() : 'default'}