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: prevent long error messages from breaking chat view horizontal layout
Guse6b92165e401
diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.cssindex 075891eaf..ae279500f 100644--- a/src/web/src/app/globals.css+++ b/src/web/src/app/globals.css@@ -834,6 +834,8 @@/* Markdown content styles */.markdown {line-height: 1.7;+ overflow-wrap: anywhere;+ word-break: break-word;}.markdown > *:first-child {margin-top: 0;@@ -858,6 +860,7 @@margin-top: 0.5em;margin-bottom: 0.5em;max-width: 65ch;+ overflow-wrap: anywhere;}.markdown ul,.markdown ol {diff --git a/src/web/src/components/agent-chat/agent-chat-view.tsx b/src/web/src/components/agent-chat/agent-chat-view.tsxindex 3bd6730ae..88e5f20e1 100644--- a/src/web/src/components/agent-chat/agent-chat-view.tsx+++ b/src/web/src/components/agent-chat/agent-chat-view.tsx@@ -1620,7 +1620,7 @@ export function AgentChatView({if (btn) toast.success("Copied to clipboard");}}>- <div className="mx-auto max-w-2xl py-6 space-y-4">+ <div className="mx-auto max-w-2xl py-6 space-y-4 min-w-0">{canLoadMore && !loadingMore && (<div className="flex justify-center py-2"><buttondiff --git a/src/web/src/components/agent-chat/message-list.tsx b/src/web/src/components/agent-chat/message-list.tsxindex 8544dc3c7..1ce4b6c72 100644--- a/src/web/src/components/agent-chat/message-list.tsx+++ b/src/web/src/components/agent-chat/message-list.tsx@@ -262,13 +262,13 @@ export const MessageItem = memo(function MessageItem({onClick={eventEmailId ? () => onEmailClick(eventEmailId) : eventIssueId ? () => onIssueClick(eventIssueId) : undefined}><EventMessageIcon content={msg.content} conversationType={conversationType} />- <span>{msg.content}</span>+ <span className="min-w-0 wrap-anywhere">{msg.content}</span></div></div>);})() : !hasTaskStream ? (<div className={cn(- "group/msg flex flex-col justify-start",+ "group/msg flex flex-col justify-start min-w-0 overflow-hidden",isFlagged && "bg-muted/30 rounded-lg px-2 -mx-2")} data-message-id={msg.id} data-quote-source {...(msg.task_id ? { "data-task-id": msg.task_id } : {})}><div className="markdown max-w-full min-w-0 px-1 py-1 text-base text-foreground">diff --git a/src/web/src/components/task-stream.tsx b/src/web/src/components/task-stream.tsxindex 949f2a9f8..c37385203 100644--- a/src/web/src/components/task-stream.tsx+++ b/src/web/src/components/task-stream.tsx@@ -336,7 +336,7 @@ export function TaskStream({};return (- <div className="space-y-3">+ <div className="space-y-3 min-w-0 max-w-full">{/* Status badge */}<div className="flex items-center gap-2">{task.status === "running" ? (@@ -399,7 +399,7 @@ export function TaskStream({return (<pkey={item.id}- className="text-xs text-muted-foreground px-1"+ className="text-xs text-muted-foreground px-1 wrap-anywhere">{item.type === "error" && (<AlertCircle className="inline size-3 mr-1 -mt-0.5 text-destructive" />@@ -447,10 +447,10 @@ export function TaskStream({{/* Error display */}{task.status === "failed" && task.error && (- <div className="flex items-center gap-2 mt-2">- <p className="text-sm text-destructive flex items-center gap-1.5">- <AlertCircle className="size-3.5 shrink-0" />- {task.error}+ <div className="flex items-start gap-2 mt-2 max-w-full overflow-hidden">+ <p className="text-sm text-destructive flex items-start gap-1.5 min-w-0">+ <AlertCircle className="size-3.5 shrink-0 mt-0.5" />+ <span className="wrap-anywhere">{task.error}</span></p>{onRetry && (<button