The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#126363)
hermes-seaeye[bot]365259378d33
diff --git a/apps/desktop/src/api/client.ts b/apps/desktop/src/api/client.tsindex 2f6c614e1fa..cdb8973d931 100644--- a/apps/desktop/src/api/client.ts+++ b/apps/desktop/src/api/client.ts@@ -255,10 +255,7 @@ export function setSessionOwnerResolver(resolver: SessionOwnerResolver | null):* this device when the primary is a remote registry source). When the caller* named no profile, the owner's backend-facing profile rides along: the* answering host resolves ?profile= against ITS OWN profiles. */-export function sessionReadOwnerPin(- id: string,- profile?: ProfileScope-): { connectionId?: string; profile?: string } {+export function sessionReadOwnerPin(id: string, profile?: ProfileScope): { connectionId?: string; profile?: string } {if (profile && typeof profile === 'object' && String(profile.connectionId ?? '').trim()) {return {}}diff --git a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsxindex 0538abe3f1f..bd12429db02 100644--- a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx+++ b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx@@ -23,7 +23,12 @@ import {import { createClientSessionState } from '@/lib/chat-runtime'import { $clarifyRequests, clearClarifyRequest, setClarifyRequest } from '@/store/clarify'import { clearSessionDraft, stashSessionDraft, takeSessionDraft } from '@/store/composer'-import { activeGatewayConnectionId, requestGatewayForAgent, requestGatewayForProfile, retainGatewayForAgent } from '@/store/gateway'+import {+ activeGatewayConnectionId,+ requestGatewayForAgent,+ requestGatewayForProfile,+ retainGatewayForAgent+} from '@/store/gateway'import { $pinnedSessionIds } from '@/store/layout'import {$activeGatewayProfile,diff --git a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts b/apps/desktop/src/app/session/hooks/use-session-actions/index.tsindex 27db93fe0cd..5d52b00b837 100644--- a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts+++ b/apps/desktop/src/app/session/hooks/use-session-actions/index.ts@@ -886,7 +886,9 @@ export function useSessionActions({// and land the session in the wrong profile (#124265). All-profiles// view has no owner and keeps the ordinary fallback.const projectOwnerProfile =- options?.profile === undefined && typeof options?.cwd === 'string' ? (projectProfile() ?? undefined) : undefined+ options?.profile === undefined && typeof options?.cwd === 'string'+ ? (projectProfile() ?? undefined)+ : undefinedconst optionProfile = options?.profile ?? projectOwnerProfilediff --git a/apps/desktop/src/store/windows.test.ts b/apps/desktop/src/store/windows.test.tsindex ef300552055..c690cb213d7 100644--- a/apps/desktop/src/store/windows.test.ts+++ b/apps/desktop/src/store/windows.test.ts@@ -92,7 +92,11 @@ describe('openSessionInNewWindow', () => {await openSessionInNewWindow('orphan-not-listed-yet', { watch: true })expect(open).toHaveBeenCalledWith('s1', { profile: 'research', connectionId: 'remote-a', watch: undefined })- expect(open).toHaveBeenCalledWith('child-not-listed-yet', { profile: 'research', connectionId: 'remote-a', watch: true })+ expect(open).toHaveBeenCalledWith('child-not-listed-yet', {+ profile: 'research',+ connectionId: 'remote-a',+ watch: true+ })expect(open).toHaveBeenCalledWith('orphan-not-listed-yet', { profile: 'work', connectionId: null, watch: true })expect(notifyError).not.toHaveBeenCalled()// The owner resolver's lazy import is the heavy session-actions module.