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
fix: optimistic message dedup, shorten edge labels, hide hero specs
Gusf1ee4268cbd4
diff --git a/src/web/src/components/agent-chat/agent-chat-view.tsx b/src/web/src/components/agent-chat/agent-chat-view.tsxindex a5455804c..f9a67f339 100644--- a/src/web/src/components/agent-chat/agent-chat-view.tsx+++ b/src/web/src/components/agent-chat/agent-chat-view.tsx@@ -1227,7 +1227,22 @@ export function AgentChatView({if (msg.type === "conversation.message") {appendCachedMessage(msg.conversationId, msg.message, workspaceId).catch(() => {});if (msg.conversationId === conversation?.id) {- setMessages((prev) => mergeMessages(prev, [msg.message]));+ setMessages((prev) => {+ const incomingTime = new Date(msg.message.created_at).getTime();+ const optimisticIdx = prev.findIndex(+ (m) =>+ m.id.startsWith("temp-") &&+ m.role === msg.message.role &&+ m.content === msg.message.content &&+ Math.abs(new Date(m.created_at).getTime() - incomingTime) < 2000+ );+ if (optimisticIdx !== -1) {+ const updated = [...prev];+ updated[optimisticIdx] = msg.message;+ return updated;+ }+ return mergeMessages(prev, [msg.message]);+ });}}if (msg.type === "task.updated" && msg.taskId === activeTaskIdRef.current) {@@ -1553,6 +1568,11 @@ export function AgentChatView({return next;});setMessages((prev) => {+ const hasOptimistic = prev.some((m) => m.id === optimistic.id);+ if (!hasOptimistic) {+ const hasReal = prev.some((m) => m.id === message.id);+ return hasReal ? prev : sortMessages([...prev, message]);+ }const without = prev.filter((m) => m.id !== optimistic.id && m.id !== message.id);return sortMessages([...without, message]);});diff --git a/src/web/src/components/canvas/link-edge.tsx b/src/web/src/components/canvas/link-edge.tsxindex 1e612bd10..023ef5f93 100644--- a/src/web/src/components/canvas/link-edge.tsx+++ b/src/web/src/components/canvas/link-edge.tsx@@ -70,14 +70,13 @@ function LinkEdgeInner({transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`,pointerEvents: "auto",}}- className={`text-[11px] leading-tight bg-background/90 px-2 py-0.5 rounded-md truncate cursor-pointer transition-colors italic ${- hovered ? "text-muted-foreground" : "text-muted-foreground/40"- }`}+ className={`text-[11px] leading-tight bg-background/90 px-2 py-0.5 rounded-md truncate cursor-pointer transition-colors italic ${hovered ? "text-muted-foreground" : "text-muted-foreground/40"+ }`}onClick={handleLabelClick}onMouseEnter={() => setHovered(true)}onMouseLeave={() => setHovered(false)}>- {hasInstruction ? "edit relationship" : "define relationship"}+ {hasInstruction ? "edit" : "define"}</button></EdgeLabelRenderer></>diff --git a/src/web/src/components/home/hero-section.tsx b/src/web/src/components/home/hero-section.tsxindex 41b424d35..782cbc09b 100644--- a/src/web/src/components/home/hero-section.tsx+++ b/src/web/src/components/home/hero-section.tsx@@ -202,7 +202,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {</div>{/* Specs */}- <div className="hero-specs mt-6 flex flex-wrap items-center justify-center gap-x-6 gap-y-2" style={{ opacity: 0 }}>+ {/* <div className="hero-specs mt-6 flex flex-wrap items-center justify-center gap-x-6 gap-y-2" style={{ opacity: 0 }}>{["Collaboration","Always-On",@@ -219,7 +219,7 @@ export function HeroSection({ isLoggedIn }: { isLoggedIn: boolean }) {{spec}</span>))}- </div>+ </div> */}{/* Community links */}<div className="hero-providers mt-5 flex items-center justify-center gap-4" style={{ opacity: 0 }}>