Skip to content

The agent that grows with you

refactor(desktop): use shared local connection id

cmoiccoolf3ae1a0c3a6e
diff --git a/apps/desktop/src/store/profile.ts b/apps/desktop/src/store/profile.ts
index fbe7eca4841..046be8ad645 100644
--- a/apps/desktop/src/store/profile.ts
+++ b/apps/desktop/src/store/profile.ts
@@ -1,3 +1,4 @@
+import { LOCAL_CONNECTION_ID } from '@hermes/shared'
import { atom, batch, computed } from 'nanostores'
import type { HermesConnection } from '@/global'
@@ -647,7 +648,7 @@ export function selectProfile(name: string): void {
function activateOnCurrentSource(target: string): Promise<void> {
const connectionId = activeGatewayConnectionId()
- return connectionId && connectionId !== 'local'
+ return connectionId && connectionId !== LOCAL_CONNECTION_ID
? ensureGatewayAgent(connectionId, target)
: ensureGatewayProfile(target)
}