diff --git a/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx b/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx index d684b267..95090736 100644 --- a/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx +++ b/AgentCompany-New/src/renderer/src/pages/ChatPage.tsx @@ -8,7 +8,6 @@ import { collectParticipants, filterApprovalsForSpace, isRootMessage, - replayEventsForThread, } from "./chat/chat-helpers"; import { ROLE_KEY } from "../../../shared/domain"; import type { PageProps } from "./types"; @@ -47,10 +46,6 @@ export function ChatPage({ snapshot, actions }: PageProps) { () => snapshot.approvals.filter((a) => a.orgId === orgId && a.state === "pending"), [snapshot.approvals, orgId], ); - const auditEventsAll = useMemo( - () => snapshot.auditEvents.filter((event) => event.orgId === orgId), - [snapshot.auditEvents, orgId], - ); const channels = useMemo(() => spaces.filter((space) => space.spaceType !== "direct"), [spaces]); const directs = useMemo(() => spaces.filter((space) => space.spaceType === "direct"), [spaces]); const canBoardIntervene = useMemo( @@ -106,10 +101,6 @@ export function ChatPage({ snapshot, actions }: PageProps) { const threadMessages = selectedThread ? messagesInSpace.filter((m) => m.threadId === selectedThread.id && m.id !== selectedThread.rootMessageId) : []; - const threadAuditEvents = useMemo( - () => (selectedThread ? replayEventsForThread(auditEventsAll, selectedThread, messagesInSpace) : []), - [auditEventsAll, selectedThread, messagesInSpace], - ); const selectedBoardInterventions = useMemo( () => (selectedThread ? boardInterventionsAll.filter((item) => item.threadId === selectedThread.id) : []), [boardInterventionsAll, selectedThread], @@ -309,7 +300,6 @@ export function ChatPage({ snapshot, actions }: PageProps) { slashInvocations={slashInvocationsAll} boardInterventions={selectedBoardInterventions} files={files} - auditEvents={threadAuditEvents} context={{ employees, agents }} canIntervene={canBoardIntervene} attachmentFileId={threadAttachmentFileId} diff --git a/AgentCompany-New/src/renderer/src/pages/chat/ChatMessageRow.tsx b/AgentCompany-New/src/renderer/src/pages/chat/ChatMessageRow.tsx index 941b2eac..79517b1f 100644 --- a/AgentCompany-New/src/renderer/src/pages/chat/ChatMessageRow.tsx +++ b/AgentCompany-New/src/renderer/src/pages/chat/ChatMessageRow.tsx @@ -212,7 +212,7 @@ function AttachmentCard({ file, handoff = false, onOpen }: { file: FileObjectRec )} -