From 68ce4ab517d613c6db7c8894cb935eab39c0a53e Mon Sep 17 00:00:00 2001 From: Brian Love Date: Fri, 19 Jun 2026 19:42:41 -0700 Subject: [PATCH] fix(chat): hide message actions on content-less messages (compact subagent cards) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A subagent delegation renders as its own assistant message whose only content is the subagent card (no assistant text). It was still getting the full message- actions toolbar (regenerate/copy/thumbs up/down) — pure whitespace, since there is nothing to copy/regenerate/rate — which bloated the stream. Gate on the message having copyable text (`content.trim()`). Subagent cards and bare tool-call messages now render compact; real answers keep their actions. Verified live in examples/ag-ui (research subagent): the delegation card's actions toolbar is gone; the answer message retains exactly one actions toolbar. Co-Authored-By: Claude Fable 5 --- .../lib/compositions/chat/chat.component.ts | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/libs/chat/src/lib/compositions/chat/chat.component.ts b/libs/chat/src/lib/compositions/chat/chat.component.ts index d6253951..75a3ac3b 100644 --- a/libs/chat/src/lib/compositions/chat/chat.component.ts +++ b/libs/chat/src/lib/compositions/chat/chat.component.ts @@ -248,14 +248,21 @@ export function isPinned( /> } } - + + @if (content.trim()) { + + }