Skip to content

The agent that grows with you

test(web): type sidecar state unsubscribe as void

Yuan Li4f2a47324402
diff --git a/web/src/components/ChatSidebar.test.tsx b/web/src/components/ChatSidebar.test.tsx
index c97ae6e8306..6cc4f828763 100644
--- a/web/src/components/ChatSidebar.test.tsx
+++ b/web/src/components/ChatSidebar.test.tsx
@@ -24,7 +24,7 @@ const gatewayMocks = vi.hoisted(() => {
handlers.set(event, handler)
return () => handlers.delete(event)
}),
- onState: vi.fn((handler: (state: string) => void) => {
+ onState: vi.fn((handler: (state: string) => void): (() => void) => {
handler('open')
return () => undefined
}),