mirror of
https://github.com/iamlukethedev/Claw3D.git
synced 2026-07-30 11:12:32 +00:00
Surface external office events in ops center
Co-authored-by: Luke The Dev <iamlukethedev@users.noreply.github.com>
This commit is contained in:
co-authored by
Luke The Dev
parent
62bfe86e12
commit
f2a2fbe57c
@@ -46,7 +46,7 @@ export const useOfficeExternalEvents = (
|
||||
const newEvents = nextEvents.filter((event) => !previousSeen.has(event.id));
|
||||
seenIdsRef.current = new Set(nextEvents.map((event) => event.id));
|
||||
setEvents(nextEvents);
|
||||
if (initializedRef.current && newEvents.length > 0) {
|
||||
if (newEvents.length > 0) {
|
||||
setLatestNewEvent(newEvents[0] ?? null);
|
||||
}
|
||||
initializedRef.current = true;
|
||||
|
||||
@@ -3139,6 +3139,10 @@ export function OfficeScreen({
|
||||
events: externalOfficeEvents,
|
||||
feedEvents: externalOfficeFeedEvents,
|
||||
} = useOfficeExternalEvents();
|
||||
const operationsFeedEvents = useMemo(
|
||||
() => [...externalOfficeFeedEvents, ...feedEvents],
|
||||
[externalOfficeFeedEvents, feedEvents],
|
||||
);
|
||||
const taskBoard = useTaskBoardController({
|
||||
gatewayUrl,
|
||||
settingsCoordinator,
|
||||
@@ -5175,7 +5179,7 @@ export function OfficeScreen({
|
||||
<OperationsCenterPanel
|
||||
agents={state.agents}
|
||||
runLog={runLog}
|
||||
feedEvents={feedEvents}
|
||||
feedEvents={operationsFeedEvents}
|
||||
onSelectAgent={(agentId) => {
|
||||
handleOpenAgentChat(agentId);
|
||||
setActiveSidebarTab("ops");
|
||||
|
||||
Reference in New Issue
Block a user