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
design: apply David's 5 flagged web-parity items
purple2e428b05089a
diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsxindex 7fe8f9b2..a7041f82 100644--- a/src/components/chat/ChatView.tsx+++ b/src/components/chat/ChatView.tsx@@ -144,7 +144,7 @@ export function ChatView() {transition={{ duration: 0.2 }}><img src="/LU-monogram-bw.png" alt="" width={46} height={46} className="dark:invert-0 invert opacity-20 mb-3" />- <p className="text-[0.72rem] text-gray-600">Generate anything. Locally. Uncensored.</p>+ <p className="text-[0.72rem] text-gray-600">Local AI, on your hardware.</p>{models.length > 0 && !activeModel && (<p className="text-[0.6rem] text-amber-500/60 mt-3">Select a model above.</p>diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsxindex eab8eda9..1d2fbc7e 100644--- a/src/components/layout/Sidebar.tsx+++ b/src/components/layout/Sidebar.tsx@@ -15,6 +15,7 @@ export function Sidebar() {const { sidebarOpen, setView } = useUIStore()const { activeModel } = useModelStore()const { getActivePersona } = useSettingsStore()+ const personasEnabled = useSettingsStore((s) => s.settings.personasEnabled)const chatMode = useCodexStore((s) => s.chatMode)const setChatMode = useCodexStore((s) => s.setChatMode)const {@@ -52,7 +53,7 @@ export function Sidebar() {// systemPrompt (so toggling personaEnabled later "just works"// without re-reading global state), but useChat / useAgentChat// only apply it when personaEnabled === true.- const persona = getActivePersona()+ const persona = personasEnabled ? getActivePersona() : nullcreateConversation(activeModel, persona?.systemPrompt || '', chatMode)setView('chat')}@@ -121,7 +122,7 @@ export function Sidebar() {// clean (autonomy contract or codex prompt only). Without this, a// global "Devil's Advocate" persona silently hijacked every remote// session through `dispatchedSystemPrompt` on the mobile side.- const persona = getActivePersona()+ const persona = personasEnabled ? getActivePersona() : nullconst convId = createConversation(activeModel, persona?.systemPrompt || '', 'remote')setView('chat')try {@@ -218,13 +219,14 @@ export function Sidebar() {onClick={() => { setChatMode('lu'); setActiveConversation(null); setView('chat'); setDispatchPicker(false) }}title="Chat"aria-label="Chat"- className={`flex items-center justify-center px-2 py-1 rounded font-medium transition-all flex-1 ${+ className={`flex items-center gap-1 justify-center px-2 py-1 rounded text-[0.6rem] font-medium transition-all flex-1 ${!isCodingMode && !isRemoteMode? 'bg-gray-200 dark:bg-white/10 text-gray-900 dark:text-white border border-gray-300 dark:border-white/15': 'text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 hover:bg-gray-100 dark:hover:bg-white/5 border border-transparent'}`}>- <MessageSquare size={11} />+ <MessageSquare size={9} />+ <span>Chat</span></button>{/* Code tab — direct switch to the coding agent (no dropdown).@@ -233,13 +235,14 @@ export function Sidebar() {onClick={() => { setChatMode('codex'); setActiveConversation(null); setView('chat'); setDispatchPicker(false) }}title="Code"aria-label="Code"- className={`flex items-center justify-center px-2 py-1 rounded font-medium transition-all flex-1 ${+ className={`flex items-center gap-1 justify-center px-2 py-1 rounded text-[0.6rem] font-medium transition-all flex-1 ${isCodingMode? 'bg-gray-200 dark:bg-white/10 text-gray-900 dark:text-white border border-gray-300 dark:border-white/15': 'text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 hover:bg-gray-100 dark:hover:bg-white/5 border border-transparent'}`}>- <Code size={11} />+ <Code size={9} />+ <span>Code</span></button>{/* Remote tab */}diff --git a/src/components/models/ModelManager.tsx b/src/components/models/ModelManager.tsxindex 6ca3836f..2d9f40b4 100644--- a/src/components/models/ModelManager.tsx+++ b/src/components/models/ModelManager.tsx@@ -7,7 +7,6 @@ import { useProviderStore } from '../../stores/providerStore'import { ModelCard } from './ModelCard'import { PullModelDialog } from './PullModelDialog'import { DiscoverModels } from './DiscoverModels'-import { BenchmarkLeaderboard } from './ModelBenchmark'import { Modal } from '../ui/Modal'import { GlowButton } from '../ui/GlowButton'import { showModel } from '../../api/ollama'@@ -29,7 +28,7 @@ export function ModelManager() {const [infoOpen, setInfoOpen] = useState(false)const [modelInfo, setModelInfo] = useState<any>(null)const [confirmDelete, setConfirmDelete] = useState<string | null>(null)- const [tab, setTab] = useState<'installed' | 'discover'>('installed')+ const [tab, setTab] = useState<'installed' | 'discover'>('discover')const [comfyStatus, setComfyStatus] = useState<{ running: boolean; found: boolean; path: string | null } | null>(null)const [comfyPathInput, setComfyPathInput] = useState('')const [comfyPathError, setComfyPathError] = useState('')@@ -213,8 +212,6 @@ export function ModelManager() {))}</div>- <BenchmarkLeaderboard />-{filteredModels.length === 0 && (<div className="text-center py-10"><p className="text-[0.7rem] text-gray-500 mb-3">diff --git a/src/components/personas/PersonaPanel.tsx b/src/components/personas/PersonaPanel.tsxindex 3c578d11..8705bb60 100644--- a/src/components/personas/PersonaPanel.tsx+++ b/src/components/personas/PersonaPanel.tsx@@ -6,11 +6,51 @@ import { SystemPromptEditor } from './SystemPromptEditor'export function PersonaPanel() {const { personas, activePersonaId, setActivePersona, removePersona } = useSettingsStore()+ const personasEnabled = useSettingsStore((s) => s.settings.personasEnabled)+ const updateSettings = useSettingsStore((s) => s.updateSettings)const [showEditor, setShowEditor] = useState(false)return (<div className="w-full max-w-2xl">- <div className="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-5 gap-2 mb-4 max-h-[300px] overflow-y-auto scrollbar-thin pr-1">+ {/* Master switch — controls whether any persona system prompt is+ applied at all. When off, every new chat runs the raw model. The+ picker below stays interactive so the user can pre-select a persona+ for the moment they flip the switch on. (Ported from uselu web.) */}+ <div className="flex items-center justify-between mb-3 pb-2 border-b border-gray-100 dark:border-white/[0.04]">+ <div className="flex flex-col">+ <span className="text-[0.7rem] font-medium text-gray-800 dark:text-gray-200">+ Use personas+ </span>+ <span className="text-[0.55rem] text-gray-500 dark:text-gray-500">+ {personasEnabled+ ? 'Active persona is applied to new chats.'+ : 'Off — raw model, no persona prompt.'}+ </span>+ </div>+ <button+ onClick={() => updateSettings({ personasEnabled: !personasEnabled })}+ className={+ 'relative inline-flex h-4 w-7 shrink-0 cursor-pointer rounded-full transition-colors ' ++ (personasEnabled ? 'bg-green-500' : 'bg-gray-300 dark:bg-white/10')+ }+ aria-pressed={personasEnabled}+ aria-label="Toggle personas master switch"+ >+ <span+ className={+ 'pointer-events-none absolute top-0.5 h-3 w-3 transform rounded-full bg-white shadow transition-transform ' ++ (personasEnabled ? 'translate-x-3.5' : 'translate-x-0.5')+ }+ />+ </button>+ </div>++ <div+ className={+ 'grid grid-cols-3 sm:grid-cols-4 md:grid-cols-5 gap-2 mb-4 max-h-[300px] overflow-y-auto scrollbar-thin pr-1 transition-opacity ' ++ (personasEnabled ? '' : 'opacity-50 pointer-events-none')+ }+ >{personas.map((persona) => (<div key={persona.id} className="relative group"><PersonaCard@@ -31,9 +71,9 @@ export function PersonaPanel() {))}<buttononClick={() => setShowEditor(!showEditor)}- className="flex flex-col items-center gap-2 p-4 rounded-xl border border-dashed border-white/10 hover:border-white/15 transition-all cursor-pointer"+ className="flex flex-col items-center gap-2 p-4 rounded-xl border border-dashed border-gray-300 dark:border-white/10 hover:border-gray-400 dark:hover:border-white/15 transition-all cursor-pointer">- <div className="w-10 h-10 rounded-lg flex items-center justify-center bg-white/5">+ <div className="w-10 h-10 rounded-lg flex items-center justify-center bg-gray-100 dark:bg-white/5"><Plus size={20} className="text-gray-500" /></div><span className="text-xs text-gray-500">Custom</span>diff --git a/src/lib/constants.ts b/src/lib/constants.tsindex aac4bb09..9e41eba6 100644--- a/src/lib/constants.ts+++ b/src/lib/constants.ts@@ -14,6 +14,7 @@ export const DEFAULT_SETTINGS: Settings = {maxTokens: 0,theme: 'dark',onboardingDone: false,+ personasEnabled: true,thinkingEnabled: true,cavemanMode: 'off',searchProvider: 'auto',diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex 944ea6aa..b8b8de3a 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -8,7 +8,10 @@ import { DEFAULT_SETTINGS, BUILT_IN_PERSONAS } from '../lib/constants'// version is all that's needed — the new default fills in while every existing// user value is preserved. Rehydration is NOT broken: a persisted v4 blob runs// the same merge path that has handled every prior additive field.-const STORE_VERSION = 5+// v6 (uselu design port): added settings.personasEnabled (master persona+// switch, default true). Bumped so existing users get the default ON instead+// of an undefined → falsy "personas off" surprise.+const STORE_VERSION = 6interface SettingsState {settings: Settingsdiff --git a/src/types/settings.ts b/src/types/settings.tsindex 9751a602..6cb30e05 100644--- a/src/types/settings.ts+++ b/src/types/settings.ts@@ -12,6 +12,9 @@ export interface Settings {maxTokens: numbertheme: 'light' | 'dark'onboardingDone: boolean+ /** Master switch for personas. When off, new chats get no persona system+ * prompt (raw model). Default true. Ported from the uselu web companion. */+ personasEnabled: booleanthinkingEnabled: booleancavemanMode: CavemanModesearchProvider: SearchProvider