Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(cos): prevent agent output markdown from overflowing on mobile
Adam Eivyf1c8bb664e9c
diff --git a/client/src/components/cos/MarkdownOutput.jsx b/client/src/components/cos/MarkdownOutput.jsxindex f784845906..c7a6cf77eb 100644--- a/client/src/components/cos/MarkdownOutput.jsx+++ b/client/src/components/cos/MarkdownOutput.jsx@@ -12,13 +12,13 @@ const components = {// Fenced code block (has language className like "language-js")if (className) {return (- <code className="block bg-port-bg rounded p-2 my-1 text-xs font-mono text-cyan-400 overflow-x-auto">+ <code className="block bg-port-bg rounded p-2 my-1 text-xs font-mono text-cyan-400 overflow-x-auto whitespace-pre-wrap break-all">{children}</code>);}// Inline code- return <code className="bg-port-bg px-1 py-0.5 rounded text-cyan-400 font-mono text-xs">{children}</code>;+ return <code className="bg-port-bg px-1 py-0.5 rounded text-cyan-400 font-mono text-xs break-all">{children}</code>;},pre: ({ children }) => <pre className="my-1 overflow-x-auto">{children}</pre>,ul: ({ children }) => <ul className="my-0.5 pl-4 space-y-0.5">{children}</ul>,@@ -45,7 +45,7 @@ const components = {export default function MarkdownOutput({ content }) {return (- <div className="markdown-output">+ <div className="markdown-output min-w-0 overflow-hidden break-words"><ReactMarkdown components={components}>{content}</ReactMarkdown></div>);diff --git a/client/src/components/cos/OutputBlocks.jsx b/client/src/components/cos/OutputBlocks.jsxindex c27b06a2fb..d9fc8bd7a5 100644--- a/client/src/components/cos/OutputBlocks.jsx+++ b/client/src/components/cos/OutputBlocks.jsx@@ -31,20 +31,20 @@ export default function OutputBlocks({ output }) {}, [output]);return (- <div className="space-y-0.5">+ <div className="space-y-0.5 min-w-0 overflow-hidden">{blocks.map((block, i) => {if (block.type === 'tool') {const line = block.line;if (line.startsWith('🔧')) {- return <div key={i} className="py-0.5 text-xs font-mono text-port-accent">{line}</div>;+ return <div key={i} className="py-0.5 text-xs font-mono text-port-accent break-all">{line}</div>;}if (line.startsWith(' →')) {- return <div key={i} className="py-0.5 text-xs font-mono text-gray-500 pl-4">{line.substring(4)}</div>;+ return <div key={i} className="py-0.5 text-xs font-mono text-gray-500 pl-4 break-all">{line.substring(4)}</div>;}if (line.startsWith(' ↳')) {- return <div key={i} className="py-0.5 text-xs font-mono text-gray-600 pl-4">{line.substring(4)}</div>;+ return <div key={i} className="py-0.5 text-xs font-mono text-gray-600 pl-4 break-all">{line.substring(4)}</div>;}- return <div key={i} className="py-0.5 text-xs font-mono text-yellow-500">{line}</div>;+ return <div key={i} className="py-0.5 text-xs font-mono text-yellow-500 break-all">{line}</div>;}return <MarkdownOutput key={i} content={block.content} />;})}diff --git a/client/src/components/cos/tabs/AgentCard.jsx b/client/src/components/cos/tabs/AgentCard.jsxindex 15c0dc78ee..df968fa8f2 100644--- a/client/src/components/cos/tabs/AgentCard.jsx+++ b/client/src/components/cos/tabs/AgentCard.jsx@@ -542,7 +542,7 @@ export default function AgentCard({ agent, onKill, onDelete, onResume, completed{/* Expanded output view */}{expanded && (- <div className="border-t border-port-border bg-port-bg/50 p-3">+ <div className="border-t border-port-border bg-port-bg/50 p-3 min-w-0 overflow-hidden">{loadingOutput ? (<div className="flex items-center gap-2 text-gray-500 text-sm"><Loader2 size={14} aria-hidden="true" className="animate-spin" />