The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(chatMascot): only claim replay ownership on explicit claim events
Steven Enamakele95cabc8ec7b
diff --git a/app/src/features/human/chatMascot/ChatMascotOverlay.tsx b/app/src/features/human/chatMascot/ChatMascotOverlay.tsxindex e4e37c81bc..1caf19918f 100644--- a/app/src/features/human/chatMascot/ChatMascotOverlay.tsx+++ b/app/src/features/human/chatMascot/ChatMascotOverlay.tsx@@ -83,15 +83,20 @@ const ChatMascotOverlay = () => {const replayOwnerRef = useRef<string | null>(null);useEffect(() => {const onPlayback = (event: Event) => {- const detail = (event as CustomEvent<{- owner: string;- active: boolean;- viseme: string;- }>).detail;+ const detail = (+ event as CustomEvent<{+ owner: string;+ active: boolean;+ viseme: string;+ claim: boolean;+ }>+ ).detail;if (!detail?.owner) return;- if (detail.active) {+ if (detail.active && detail.claim) {replayOwnerRef.current = detail.owner;setReplayViseme(detail.viseme);+ } else if (detail.active && replayOwnerRef.current === detail.owner) {+ setReplayViseme(detail.viseme);} else if (replayOwnerRef.current === detail.owner) {replayOwnerRef.current = null;setReplayViseme(null);