Skip to content

Commit 27bdc2a

Browse files
committed
perf(server): only re-publish the parent for side-chat awareness events
1 parent 7d86ad1 commit 27bdc2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/relay/AgentAwarenessRelay.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,9 @@ export const make = Effect.gen(function* () {
570570
!isListedThreadLineage(threadShell.lineage) &&
571571
!hasLivePublishedState(yield* Ref.get(publishedStateByThreadRef), threadId)
572572
) {
573-
// Subagents and side chats have no relay rows; publish toward the listed parent instead.
573+
// Side chats have no relay rows; publish toward the listed parent. Subagents reach it via trackSubagentRequest.
574574
const parentId = threadShell.lineage.parentThreadId;
575-
if (parentId !== null && parentId !== threadId) {
575+
if (threadShell.lineage.sideChat === true && parentId !== null && parentId !== threadId) {
576576
yield* Ref.update(childParentByThreadRef, (parents) =>
577577
new Map(parents).set(threadId, parentId),
578578
);

0 commit comments

Comments
 (0)