Skip to content

The agent that grows with you

test(desktop): the non-primary relay test allows the sole-connection roster clear

Brooklyn Nicholson55ed2775d080
diff --git a/apps/desktop/src/plugins/hermes-bots/relay.test.ts b/apps/desktop/src/plugins/hermes-bots/relay.test.ts
index 03114db9651..e8188e1d209 100644
--- a/apps/desktop/src/plugins/hermes-bots/relay.test.ts
+++ b/apps/desktop/src/plugins/hermes-bots/relay.test.ts
@@ -378,7 +378,8 @@ describe('relay-route socket retention (#93594)', () => {
await vi.advanceTimersByTimeAsync(0)
await pushAndSettle()
- expect(calls).toHaveLength(0)
+ // Only the sole remaining connection's one-time roster clear goes out; the local source is never polled.
+ expect(calls).toEqual([{ connectionId: 'remote-primary', method: 'bot_relay.roster.sync', params: { agents: [] } }])
expect(pins).toHaveLength(0)
stopBotRelay()