The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): teach the tutorial-lifetime gateway mock the profile-routed config.set
teknium1dc357a51b1ad
diff --git a/apps/desktop/src/components/tips/tutorial-lifetime.test.tsx b/apps/desktop/src/components/tips/tutorial-lifetime.test.tsxindex ec07e597b0f..62870865806 100644--- a/apps/desktop/src/components/tips/tutorial-lifetime.test.tsx+++ b/apps/desktop/src/components/tips/tutorial-lifetime.test.tsx@@ -6,7 +6,14 @@ const { request } = vi.hoisted(() => ({ request: vi.fn(async () => undefined) })vi.mock('@/store/gateway', async () => {const { atom } = await import('nanostores')- return { $gateway: atom<unknown>(null), activeGateway: () => ({ request }) }+ // display-toggles routes config.set by the viewed profile (#125969 class); the+ // assertions below read the (method, params) tail of that call.+ return {+ $gateway: atom<unknown>(null),+ activeGateway: () => ({ request }),+ activeGatewayProfileKey: () => 'default',+ requestGatewayForProfile: (_profile: string, method: string, params: unknown) => request(method, params)+ }})vi.mock('@/store/session', async () => {const { atom } = await import('nanostores')