fix: harden activity event handling

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-21 18:18:06 +01:00
co-authored by Copilot
parent dd40ebbfca
commit 867f2932df
5 changed files with 136 additions and 15 deletions
+1
View File
@@ -24,6 +24,7 @@ export function applySessionEventActivity(
if (event.kind === 'agent-activity') {
const agentKey = resolveAgentKey(event);
if (!agentKey) {
console.warn('[kopaya activity] Dropping agent-activity event without agentId/agentName.', event);
return current;
}