@copilotz/chat-ui 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -787,7 +787,7 @@ var resolveMessageSenderDisplay = ({
787
787
  compactMode = false
788
788
  }) => {
789
789
  const name = sender?.name?.trim() || fallbackName;
790
- const isAgentLike = sender?.type === "agent" || sender?.type === "tool";
790
+ const isAgentLike = sender?.type === "agent" || sender?.type === "tool" || sender?.type === "job";
791
791
  const color = sender?.color || (isAgentLike && sender?.id ? getAgentColor(sender.id) : void 0);
792
792
  const fallbackClassName = color ? `${compactMode ? "text-[10px]" : ""}` : sender?.type === "user" ? "bg-primary text-primary-foreground" : "bg-secondary text-secondary-foreground";
793
793
  const fallbackContent = isAgentLike ? getAgentInitials(name) : name.charAt(0).toUpperCase();