The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
Fix personas on new chat, light mode text, video backend display
PurpleDoubleD188df80ad534
diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsxindex f4e56b73..3d4e8779 100644--- a/src/components/chat/ChatView.tsx+++ b/src/components/chat/ChatView.tsx@@ -13,7 +13,15 @@ export function ChatView() {const activeModel = useModelStore((s) => s.activeModel)const models = useModelStore((s) => s.models)- if (!activeConversationId) {+ // Check if current conversation has user messages+ const conversation = useChatStore((s) => {+ if (!s.activeConversationId) return undefined+ return s.conversations.find((c) => c.id === s.activeConversationId)+ })+ const hasUserMessages = conversation?.messages.some((m) => m.role === 'user') ?? false++ // Show welcome + personas when: no conversation OR conversation has no user messages yet+ if (!activeConversationId || !hasUserMessages) {const hasModels = models.length > 0return (diff --git a/src/components/chat/MarkdownRenderer.tsx b/src/components/chat/MarkdownRenderer.tsxindex 020bf1a1..a752052a 100644--- a/src/components/chat/MarkdownRenderer.tsx+++ b/src/components/chat/MarkdownRenderer.tsx@@ -17,7 +17,7 @@ const components: Components = {}return (- <code className="bg-white/10 px-1.5 py-0.5 rounded text-gray-200 text-sm font-mono" {...props}>+ <code className="bg-gray-200 dark:bg-white/10 px-1.5 py-0.5 rounded text-gray-800 dark:text-gray-200 text-sm font-mono" {...props}>{children}</code>)@@ -26,13 +26,13 @@ const components: Components = {return <p className="mb-3 leading-relaxed">{children}</p>},h1({ children }) {- return <h1 className="text-xl font-bold mb-3 text-white">{children}</h1>+ return <h1 className="text-xl font-bold mb-3 text-gray-900 dark:text-white">{children}</h1>},h2({ children }) {- return <h2 className="text-lg font-bold mb-2 text-white">{children}</h2>+ return <h2 className="text-lg font-bold mb-2 text-gray-900 dark:text-white">{children}</h2>},h3({ children }) {- return <h3 className="text-base font-semibold mb-2 text-white">{children}</h3>+ return <h3 className="text-base font-semibold mb-2 text-gray-900 dark:text-white">{children}</h3>},ul({ children }) {return <ul className="list-disc list-inside mb-3 space-y-1">{children}</ul>@@ -42,7 +42,7 @@ const components: Components = {},blockquote({ children }) {return (- <blockquote className="border-l-2 border-white/20 pl-4 my-3 text-gray-400 italic">+ <blockquote className="border-l-2 border-gray-300 dark:border-white/20 pl-4 my-3 text-gray-500 dark:text-gray-400 italic">{children}</blockquote>)@@ -50,19 +50,19 @@ const components: Components = {table({ children }) {return (<div className="overflow-x-auto my-3">- <table className="w-full border-collapse border border-white/10 text-sm">{children}</table>+ <table className="w-full border-collapse border border-gray-200 dark:border-white/10 text-sm">{children}</table></div>)},th({ children }) {- return <th className="border border-white/10 px-3 py-2 bg-white/5 text-left font-semibold">{children}</th>+ return <th className="border border-gray-200 dark:border-white/10 px-3 py-2 bg-gray-100 dark:bg-white/5 text-left font-semibold">{children}</th>},td({ children }) {- return <td className="border border-white/10 px-3 py-2">{children}</td>+ return <td className="border border-gray-200 dark:border-white/10 px-3 py-2">{children}</td>},a({ href, children }) {return (- <a href={href} target="_blank" rel="noopener noreferrer" className="text-blue-400 hover:underline">+ <a href={href} target="_blank" rel="noopener noreferrer" className="text-blue-600 dark:text-blue-400 hover:underline">{children}</a>)@@ -71,7 +71,7 @@ const components: Components = {export function MarkdownRenderer({ content }: Props) {return (- <div className="markdown-content text-gray-200">+ <div className="markdown-content text-gray-800 dark:text-gray-200"><ReactMarkdown remarkPlugins={[remarkGfm]} components={components}>{content}</ReactMarkdown>diff --git a/src/components/create/CreateView.tsx b/src/components/create/CreateView.tsxindex 22a39f9e..5a47603f 100644--- a/src/components/create/CreateView.tsx+++ b/src/components/create/CreateView.tsx@@ -160,16 +160,17 @@ export function CreateView() {</button></div>- {mode === 'video' && videoBackend === 'none' && connected === true && (+ {mode === 'video' && (videoBackend === 'none' || videoModels.length === 0) && connected === true && (<div className="flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-50 dark:bg-yellow-500/10 border border-yellow-200 dark:border-yellow-500/20 text-yellow-700 dark:text-yellow-400 text-xs"><AlertTriangle size={14} />- <span>No video nodes detected. Install Wan 2.1 models or AnimateDiff in ComfyUI for video generation.</span>+ <span>No video models installed. Add Wan 2.1/2.2 or Hunyuan models to ComfyUI's models/diffusion_models/ folder.</span></div>)}- {mode === 'video' && videoBackend !== 'none' && connected === true && (+ {mode === 'video' && videoBackend !== 'none' && videoModels.length > 0 && connected === true && (<div className="text-xs text-gray-400">- Video backend: <span className="text-gray-300 font-medium">{videoBackend === 'wan' ? 'Wan 2.1/2.2' : 'AnimateDiff'}</span>+ Video backend: <span className="text-gray-600 dark:text-gray-300 font-medium">{videoBackend === 'wan' ? 'Wan 2.1/2.2' : 'AnimateDiff'}</span>+ {' · '}{videoModels.length} model{videoModels.length !== 1 ? 's' : ''}</div>)}