Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
feat: render markdown in user chat bubbles
Generd764fe9875a7
diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.cssindex 258a03a63..d7d1d97ae 100644--- a/src/web/src/app/globals.css+++ b/src/web/src/app/globals.css@@ -867,6 +867,32 @@.markdown strong { font-weight: 600; }.markdown em { font-style: italic; }+/* User bubble markdown — inherit text color from primary-foreground parent */+.markdown-user,+.markdown-user code:not(pre code) {+ color: inherit;+ background: transparent;+}+.markdown-user code:not(pre code) {+ background: hsl(var(--primary-foreground) / 0.15);+}+.markdown-user blockquote {+ border-left-color: hsl(var(--primary-foreground) / 0.4);+ color: inherit;+ opacity: 0.85;+}+.markdown-user a {+ color: inherit;+ text-decoration-color: hsl(var(--primary-foreground) / 0.6);+}+.markdown-user th {+ background: hsl(var(--primary-foreground) / 0.1);+}+.markdown-user th,+.markdown-user td {+ border-color: hsl(var(--primary-foreground) / 0.2);+}+/* ── TipTap editor styles ── */.tiptap { line-height: 1.6; }.tiptap p { margin: 0.25em 0; }diff --git a/src/web/src/components/agent-chat/agent-chat-view.tsx b/src/web/src/components/agent-chat/agent-chat-view.tsxindex aa55dba5a..a5a4ab2f0 100644--- a/src/web/src/components/agent-chat/agent-chat-view.tsx+++ b/src/web/src/components/agent-chat/agent-chat-view.tsx@@ -851,8 +851,10 @@ export function AgentChatView() {)}{msg.role === "user" ? (<div className="flex justify-end">- <div className="max-w-[80%] rounded-lg px-4 py-2 bg-primary text-primary-foreground text-base whitespace-pre-wrap">- {msg.content}+ <div className="max-w-[80%] rounded-lg px-4 py-2 bg-primary text-primary-foreground text-base">+ <div className="markdown markdown-user">+ <Streamdown controls={{ code: { copy: true, download: false }, table: { copy: false, download: false, fullscreen: false } }} linkSafety={{ enabled: false }}>{msg.content}</Streamdown>+ </div>{msg.attachment_ids && msg.attachment_ids.length > 0 && (<AttachmentChips attachmentIds={msg.attachment_ids} artifacts={artifacts} onArtifactClick={handleArtifactClick} />)}