feat: distinguish system events from user messages

System events (heartbeats, cron triggers, webhooks, channel events)
now render as subtle inline notifications instead of full user bubbles.
Detection based on content patterns ([EVENT], [cron:], [HEARTBEAT], etc.).
This commit is contained in:
Nicolas Varrot
2026-02-12 16:49:16 +00:00
parent a17fbf134a
commit 581675d00c
4 changed files with 61 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ export interface ChatMessage {
blocks: MessageBlock[];
isStreaming?: boolean;
runId?: string;
isSystemEvent?: boolean;
}
export type MessageBlock =