Skip to content

The agent that grows with you

test(desktop): stub the session-owner pin in the timeline-index client mock

Yuan Li36d59a2ca37e
diff --git a/apps/desktop/src/components/assistant-ui/thread/timeline-index.test.ts b/apps/desktop/src/components/assistant-ui/thread/timeline-index.test.ts
index 239117d8fb2..9bb44d9dea4 100644
--- a/apps/desktop/src/components/assistant-ui/thread/timeline-index.test.ts
+++ b/apps/desktop/src/components/assistant-ui/thread/timeline-index.test.ts
@@ -3,7 +3,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'
const { api } = vi.hoisted(() => ({ api: vi.fn() }))
vi.mock('@/api/client', () => ({
capabilityScoped: (scope: object) => scope,
- hermesApi: api
+ hermesApi: api,
+ // No owner pin in these tests: reads ride the caller's scope verbatim.
+ sessionReadOwnerPin: () => ({})
}))
beforeEach(() => {