feat(FN-4177): add heartbeat messaging support for chat rooms

The merge delivers room heartbeat messaging for agents, allowing heartbeat-triggered agents to send messages into chat rooms and subscribe to room activity. Core changes include new chat-store room APIs, engine heartbeat room message tools, and corresponding tests, with a small dashboard ChatView up

Fusion-Task-Id: FN-4177
This commit is contained in:
Fusion
2026-05-12 18:16:49 -07:00
committed by gsxdsm
parent d899443a44
commit fbd441e31c
13 changed files with 632 additions and 16 deletions

View File

@@ -2203,7 +2203,7 @@ export function ChatView({ projectId, addToast, experimentalFeatures }: ChatView
<div className="chat-session-list chat-sidebar-list">
{rooms.rooms.map((room) => {
const isActive = rooms.activeRoom?.id === room.id;
const memberCount = isActive ? rooms.activeRoomMembers.length : "—";
const memberCount = isActive ? rooms.activeRoomMembers.length : null;
return (
<div
key={room.id}
@@ -2229,7 +2229,9 @@ export function ChatView({ projectId, addToast, experimentalFeatures }: ChatView
>
<span className="chat-room-item-details">
<span className="chat-room-item-name">#{room.name}</span>
<span className="chat-room-item-meta">{memberCount} {memberCount === 1 ? "member" : "members"}</span>
{memberCount !== null ? (
<span className="chat-room-item-meta">{memberCount} {memberCount === 1 ? "member" : "members"}</span>
) : null}
</span>
<button
type="button"