MCPcopy Create free account
hub / github.com/block/buzz / resetAgentObserverStore

Function resetAgentObserverStore

desktop/src/features/agents/observerRelayStore.ts:459–475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

457}
458
459export function resetAgentObserverStore() {
460 generation += 1;
461 const unsubscribe = unsubscribeRelay;
462 unsubscribeRelay = null;
463 startPromise = null;
464 eventProcessingQueue = Promise.resolve();
465 eventsByAgent.clear();
466 transcriptByAgent.clear();
467 snapshotByAgent.clear();
468 knownAgentPubkeys.clear();
469 knownAgentsBySubscription.clear();
470 onSessionConfigCaptured = null;
471 connectionState = "idle";
472 errorMessage = null;
473 notifyListeners();
474 void unsubscribe?.();
475}

Callers 1

resetWorkspaceStateFunction · 0.90

Calls 3

unsubscribeFunction · 0.85
notifyListenersFunction · 0.70
clearMethod · 0.45

Tested by

no test coverage detected