feat(FN-3859): add hybrid room chat responder policy helper

Adds a room responder policy helper for hybrid room chat across the core type definitions and dashboard implementation, with corresponding tests in the core package.

Fusion-Task-Id: FN-3859
This commit is contained in:
Fusion
2026-05-09 11:43:32 -07:00
committed by gsxdsm
parent f3f8dfbf52
commit 52fd9774ec

View File

@@ -770,7 +770,8 @@ export class ChatManager {
const ambientCandidates = roomMembers
.map((member) => agentsById.get(member.agentId))
.filter((agent): agent is Agent => Boolean(agent) && !seenDirect.has(agent.id));
.filter((agent): agent is Agent => agent !== undefined)
.filter((agent) => !seenDirect.has(agent.id));
const ambient = ambientCandidates.slice(0, ROOM_AMBIENT_MAX_RESPONDERS);
if (ambientCandidates.length > ROOM_AMBIENT_MAX_RESPONDERS) {