The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): the no-heartbeat check expects the capability advertisement
teknium16c057dbaa5b2
diff --git a/apps/desktop/src/lib/json-rpc-gateway-heartbeat.test.ts b/apps/desktop/src/lib/json-rpc-gateway-heartbeat.test.tsindex 5d9f8b18a5b..549334b0279 100644--- a/apps/desktop/src/lib/json-rpc-gateway-heartbeat.test.ts+++ b/apps/desktop/src/lib/json-rpc-gateway-heartbeat.test.ts@@ -126,6 +126,9 @@ describe('JsonRpcGatewayClient heartbeat recovery', () => {await vi.advanceTimersByTimeAsync(1_000)expect(client.connectionState).toBe('open')expect(socket.readyState).toBe(FakeSocket.OPEN)- expect(socket.sent).toEqual([])+ // The one frame on the wire is the client.capabilities advertisement every gateway.ready triggers.+ const methods = socket.sent.map(text => (JSON.parse(text) as { method: string }).method)++ expect(methods).toEqual(['client.capabilities'])})})