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
style(copy): finish the dash sweep outside the components folder
purple01a352bfa19c
diff --git a/src/api/agents/bg-tasks.ts b/src/api/agents/bg-tasks.tsindex e5860329..181a8bb6 100644--- a/src/api/agents/bg-tasks.ts+++ b/src/api/agents/bg-tasks.ts@@ -63,5 +63,5 @@ export function renderBgStatusOneLine(s: BgTaskStatus): string {const elapsed = s.finished_at? `${s.finished_at - s.started_at}s`: `${Math.max(0, Math.floor(Date.now() / 1000) - s.started_at)}s`- return `[${s.id.slice(0, 8)}] ${phase} (${elapsed}) — ${s.command}`+ return `[${s.id.slice(0, 8)}] ${phase} (${elapsed}), ${s.command}`}diff --git a/src/api/agents/error-hints.ts b/src/api/agents/error-hints.tsindex 32569057..c5234a46 100644--- a/src/api/agents/error-hints.ts+++ b/src/api/agents/error-hints.ts@@ -59,7 +59,7 @@ const TOOL_HINTS: Record<string, HintRule[]> = {code_execute: [{ pattern: /SyntaxError/, hint: 'Python syntax error. Re-check indentation and parentheses before retrying.' },{ pattern: /ModuleNotFoundError|No module named/i, hint: 'Module not in the sandbox Python. Use only stdlib, or shell_execute `pip install <name>` first.' },- { pattern: /NameError/i, hint: 'NameError — variable/function not defined. State does not persist between code_execute calls; redefine everything.' },+ { pattern: /NameError/i, hint: 'NameError, variable or function not defined. State does not persist between code_execute calls; redefine everything.' },{ pattern: /timed out/i, hint: 'Execution timed out. Shorten the code or break into chunks.' },],web_fetch: [@@ -75,13 +75,13 @@ const TOOL_HINTS: Record<string, HintRule[]> = {{ pattern: /empty|no results/i, hint: 'No results. Broaden the query or switch to web_fetch with a known URL.' },],image_generate: [- { pattern: /no image models|not available|ComfyUI has no/i, hint: 'No image model installed. Surface to the user — they need to install one in Model Manager.' },+ { pattern: /no image models|not available|ComfyUI has no/i, hint: 'No image model installed. Surface to the user, they need to install one in Model Manager.' },{ pattern: /timed out|timeout/i, hint: 'Generation timed out. Try a smaller resolution or simpler prompt.' },{ pattern: /CUDA|out of memory|OOM/i, hint: 'GPU out of memory. Pick a lighter model or lower resolution.' },{ pattern: /Generation failed/i, hint: 'ComfyUI returned an error. Surface the full error to the user; do not retry without changes.' },],run_workflow: [- { pattern: /not found/i, hint: 'Workflow name unknown. The error already lists available names — pick one.' },+ { pattern: /not found/i, hint: 'Workflow name unknown. The error already lists available names, pick one.' },{ pattern: /depth|nesting/i, hint: 'Workflow nesting limit reached. Do not call run_workflow from inside another workflow.' },],system_info: [],diff --git a/src/api/agents/project-init.ts b/src/api/agents/project-init.tsindex d690aeb5..23f067b3 100644--- a/src/api/agents/project-init.ts+++ b/src/api/agents/project-init.ts@@ -130,7 +130,7 @@ export const RECIPES: Record<string, InitRecipe> = {'vite-react': {id: 'vite-react',name: 'Vite + React + TypeScript',- summary: 'Vite 6 + React 19 + Tailwind 4 — the minimal SPA starter.',+ summary: 'Vite 6 + React 19 + Tailwind 4, the minimal SPA starter.',prerequisites: ['node', 'pnpm'],steps: [{@@ -185,7 +185,7 @@ export function renderInitPlan(recipe: InitRecipe): string {lines.push(s.command)lines.push('```')} else {- lines.push('_(no command — manual step)_')+ lines.push('_(no command, manual step)_')}})return lines.join('\n')diff --git a/src/api/comfyui-nodes.ts b/src/api/comfyui-nodes.tsindex e3842ae3..560ce2bb 100644--- a/src/api/comfyui-nodes.ts+++ b/src/api/comfyui-nodes.ts@@ -330,7 +330,7 @@ export async function getModelCapabilities(model: string): Promise<ModelCapabili// resolveClip works in frames; derive a frame ceiling from the real duration// limit (× the 16-fps default) so its frame math stays bounded.caps.frameRange = { min: 1, max: Math.max(1, Math.round(maxSec * 16)) }- if (!tsl) caps.discoveryErrors!.push('framepack total_second_length absent — using 120s fallback')+ if (!tsl) caps.discoveryErrors!.push('framepack total_second_length absent, using 120s fallback')break}case 'wan':diff --git a/src/api/dynamic-workflow.ts b/src/api/dynamic-workflow.tsindex 9ca7e14f..4d48e78d 100644--- a/src/api/dynamic-workflow.ts+++ b/src/api/dynamic-workflow.ts@@ -411,7 +411,7 @@ export async function buildDynamicWorkflow(// plain img2img and repainted the WHOLE image.if (!isVideo && gp.inputImage && gp.maskImage && strategy !== 'checkpoint') {throw new WorkflowUnavailableError(- 'Local image editing needs an SD 1.5 / SDXL checkpoint. Pick a checkpoint model for Edit — FLUX and video models are not wired for local inpaint.',+ 'Local image editing needs an SD 1.5 / SDXL checkpoint. Pick a checkpoint model for Edit. FLUX and video models are not wired for local inpaint.',strategy,)}@@ -858,7 +858,7 @@ export async function buildDynamicWorkflow(if (isI2V && ['unet_video', 'unet_ltx', 'unet_cosmos', 'unet_mochi'].includes(strategy)) {if (strategy === 'unet_mochi') {throw new WorkflowUnavailableError(- 'Mochi is text-to-video only — pick an i2v-capable model (WAN i2v, WAN 2.2 ti2v, SVD, LTX, Cosmos) to animate an image.',+ 'Mochi is text-to-video only, pick an i2v-capable model (WAN i2v, WAN 2.2 ti2v, SVD, LTX, Cosmos) to animate an image.',strategy,)}diff --git a/src/api/providers/lu-cloud-provider.ts b/src/api/providers/lu-cloud-provider.tsindex 748403db..403dcaff 100644--- a/src/api/providers/lu-cloud-provider.ts+++ b/src/api/providers/lu-cloud-provider.ts@@ -32,7 +32,7 @@ export class LuCloudProvider implements ProviderClient {token = await getAccessToken()} catch (e) {throw new ProviderError(- e instanceof Error ? e.message : 'LU Cloud unreachable — check your connection.',+ e instanceof Error ? e.message : 'LU Cloud unreachable, check your connection.','lu-cloud','network',)diff --git a/src/api/providers/openai-provider.ts b/src/api/providers/openai-provider.tsindex 27781f34..ee519066 100644--- a/src/api/providers/openai-provider.ts+++ b/src/api/providers/openai-provider.ts@@ -747,7 +747,7 @@ export class OpenAIProvider implements ProviderClient {"Open LM Studio → click the 🔍 Discover icon in the left sidebar → " +"switch to the \"Runtimes\" tab → download \"llama.cpp (CPU)\" " +"(plus a GPU runtime if you have one).\n\n" +- "Once the runtime is downloaded, come back here and resend your message — " ++ "Once the runtime is downloaded, come back here and resend your message, " +"no need to restart LU."}diff --git a/src/api/vram-handoff.ts b/src/api/vram-handoff.tsindex 86a8e2ea..963dc11d 100644--- a/src/api/vram-handoff.ts+++ b/src/api/vram-handoff.ts@@ -304,7 +304,7 @@ export function decideUnload(input: DecideUnloadInput): DecideUnloadResult {if (modelFootprintGB == null || systemVramGB == null) {// Unknown sizes → don't unload on auto. Attempt the gen; if it OOMs the// user sees the verbatim ComfyUI error and can switch to 'always'.- return { unload: false, reason: 'auto: unknown footprint or system VRAM — not unloading on a guess' }+ return { unload: false, reason: 'auto: unknown footprint or system VRAM, not unloading on a guess' }}const needed = textGB + modelFootprintGBif (needed > systemVramGB) {diff --git a/src/api/workflows.ts b/src/api/workflows.tsindex 2fecd420..34525070 100644--- a/src/api/workflows.ts+++ b/src/api/workflows.ts@@ -637,7 +637,7 @@ export async function searchCivitai(query: string, host: string = 'civitai.com')return {name: item.name || `CivitAI #${item.id}`,- description: descParts.join(' — '),+ description: descParts.join(', '),source: 'civitai' as const,sourceUrl: `https://${host}/models/${item.id}`,thumbnailUrl: thumb,diff --git a/src/hooks/useAgentChat.ts b/src/hooks/useAgentChat.tsindex a1cf3300..22c6f43b 100644--- a/src/hooks/useAgentChat.ts+++ b/src/hooks/useAgentChat.ts@@ -1107,7 +1107,7 @@ export function useAgentChat() {const names = [...new Set(blocked.map((tc) => tc.function.name))].join(', ')messages.push({role: 'user',- content: `${names} is not available on this turn — it is a read-only command. Do not try to change anything. Finish with the written answer using what you have already read.`,+ content: `${names} is not available on this turn, it is a read-only command. Do not try to change anything. Finish with the written answer using what you have already read.`,})}}diff --git a/src/hooks/useCodex.ts b/src/hooks/useCodex.tsindex a3ddde38..dab2eb4e 100644--- a/src/hooks/useCodex.ts+++ b/src/hooks/useCodex.ts@@ -1073,7 +1073,7 @@ export function useCodex() {const names = [...new Set(blocked.map((tc) => tc.function.name))].join(', ')messages.push({role: 'user',- content: `${names} is not available on this turn — it is ${readOnlyTurn ? `a read-only command (/${slash!.command.name})` : 'Code Review Mode'}. Do not try to change anything. Finish with the written answer using what you have already read.`,+ content: `${names} is not available on this turn, it is ${readOnlyTurn ? `a read-only command (/${slash!.command.name})` : 'Code Review Mode'}. Do not try to change anything. Finish with the written answer using what you have already read.`,})}}diff --git a/src/lib/constants.ts b/src/lib/constants.tsindex 2d921400..c402e55e 100644--- a/src/lib/constants.ts+++ b/src/lib/constants.ts@@ -313,5 +313,5 @@ export const ONBOARDING_MODELS: OnboardingModel[] = [// in the Model Manager → Discover tab (curated list + HuggingFace// search). Onboarding is "give the user a working chat in 30 seconds";// anything heavier comes after they've made it past the wizard.- { name: 'qwen2.5-0.5b', label: 'Qwen 2.5 0.5B (Starter)', description: 'Tiny instant-chat model — 400 MB, runs on anything. Great to verify your setup; pick bigger models from the Discover tab once you\'re in.', size: '0.4 GB', vram: '1 GB', vramGB: 1, recommended: true, agent: false, downloadUrl: HF_OB('bartowski/Qwen2.5-0.5B-Instruct-GGUF', 'Qwen2.5-0.5B-Instruct-Q4_K_M.gguf'), filename: 'Qwen2.5-0.5B-Instruct-Q4_K_M.gguf', sizeGB: 0.4 },+ { name: 'qwen2.5-0.5b', label: 'Qwen 2.5 0.5B (Starter)', description: 'Tiny instant-chat model, 400 MB, runs on anything. Great to verify your setup; pick bigger models from the Discover tab once you\'re in.', size: '0.4 GB', vram: '1 GB', vramGB: 1, recommended: true, agent: false, downloadUrl: HF_OB('bartowski/Qwen2.5-0.5B-Instruct-GGUF', 'Qwen2.5-0.5B-Instruct-Q4_K_M.gguf'), filename: 'Qwen2.5-0.5B-Instruct-Q4_K_M.gguf', sizeGB: 0.4 },]diff --git a/src/lib/ollama-errors.ts b/src/lib/ollama-errors.tsindex e359e09f..e4d441ee 100644--- a/src/lib/ollama-errors.ts+++ b/src/lib/ollama-errors.ts@@ -99,8 +99,8 @@ export async function parseOllamaError(kind: 'missing-blob',model,message: model- ? `Ollama could not load "${model}" — one of its blobs is missing on disk. Run "ollama pull ${model}" to re-fetch.`- : 'Ollama could not load the model — one of its blobs is missing on disk. Run "ollama pull <model>" to re-fetch.',+ ? `Ollama could not load "${model}" , one of its blobs is missing on disk. Run "ollama pull ${model}" to re-fetch.`+ : 'Ollama could not load the model , one of its blobs is missing on disk. Run "ollama pull <model>" to re-fetch.',raw,}}@@ -147,11 +147,11 @@ export class ModelLoadError extends Error {*/export function chatStyleMessage(parsed: ParsedOllamaError): string {if (parsed.kind === 'stale-manifest' && parsed.model) {- return `Ollama rejected "${parsed.model}" — its manifest is stale. Open a terminal and run: ollama pull ${parsed.model} Then reload the model.`+ return `Ollama rejected "${parsed.model}" , its manifest is stale. Open a terminal and run: ollama pull ${parsed.model} Then reload the model.`}if (parsed.kind === 'missing-blob') {const model = parsed.model || '<model>'- return `Ollama could not load "${model}" — one of its on-disk blobs is missing. Open a terminal and run: ollama pull ${model} Then reload the model.`+ return `Ollama could not load "${model}" , one of its on-disk blobs is missing. Open a terminal and run: ollama pull ${model} Then reload the model.`}return parsed.message}diff --git a/src/lib/systemCheck.ts b/src/lib/systemCheck.tsindex 2fa49aef..0761661f 100644--- a/src/lib/systemCheck.ts+++ b/src/lib/systemCheck.ts@@ -30,9 +30,9 @@ function detectGPU(): { renderer: string | null; estimatedVRAM: string } {if (lower.includes('4090') || lower.includes('a100') || lower.includes('3090')) {estimatedVRAM = '24 GB+'} else if (lower.includes('4080') || lower.includes('3080')) {- estimatedVRAM = '12–16 GB'+ estimatedVRAM = '12 to 16 GB'} else if (lower.includes('4070') || lower.includes('3070') || lower.includes('4060 ti')) {- estimatedVRAM = '8–12 GB'+ estimatedVRAM = '8 to 12 GB'} else if (lower.includes('4060') || lower.includes('3060') || lower.includes('2080')) {estimatedVRAM = '8 GB'} else if (lower.includes('2070') || lower.includes('1080') || lower.includes('rx 6')) {@@ -94,7 +94,7 @@ export function getRecommendations(tier: SystemTier): ModelRecommendation[] {name: 'huihui_ai/qwen2.5-abliterated:7b',label: 'Qwen 2.5 7B',description: 'Lightweight & capable',- reason: 'Fits your system well — needs little VRAM',+ reason: 'Fits your system well, needs little VRAM',},{name: 'gemma4:e2b',@@ -115,7 +115,7 @@ export function getRecommendations(tier: SystemTier): ModelRecommendation[] {name: 'mannix/llama3.1-8b-abliterated:q5_K_M',label: 'Llama 3.1 8B',description: 'Fast & reliable',- reason: 'Perfect for your system — recommended as a starting point',+ reason: 'Perfect for your system, a good starting point',},{name: 'gemma4:e4b',@@ -133,7 +133,7 @@ export function getRecommendations(tier: SystemTier): ModelRecommendation[] {name: 'huihui_ai/deepseek-r1-abliterated:8b',label: 'DeepSeek R1 8B',description: 'Reasoning & thinking',- reason: 'Chain-of-thought model — shows its thinking process',+ reason: 'Chain-of-thought model, shows its thinking process',},]case 'high':@@ -142,7 +142,7 @@ export function getRecommendations(tier: SystemTier): ModelRecommendation[] {name: 'gemma4:26b',label: 'Gemma 4 26B MoE',description: '26B brain, runs like 4B',- reason: 'Mixture of Experts — only 3.8B active params. Vision + tools. 256K context.',+ reason: 'Mixture of Experts, only 3.8B active params. Vision + tools. 256K context.',},{name: 'richardyoung/qwen3-14b-abliterated:q4_K_M',@@ -160,7 +160,7 @@ export function getRecommendations(tier: SystemTier): ModelRecommendation[] {name: 'huihui_ai/mistral-small-abliterated:24b',label: 'Mistral Small 24B',description: 'Very powerful',- reason: 'Needs 16 GB+ VRAM — should run on your system',+ reason: 'Needs 16 GB+ VRAM, should run on your system',},]}diff --git a/src/stores/memoryStore.ts b/src/stores/memoryStore.tsindex d93be159..8e4a30ef 100644--- a/src/stores/memoryStore.ts+++ b/src/stores/memoryStore.ts@@ -621,9 +621,9 @@ export const useMemoryStore = create<MemoryState>()(md += `## ${typeTitles[type]}\n\n`for (const entry of typeEntries) {const date = new Date(entry.updatedAt).toLocaleDateString()- md += `- **${entry.title}** — ${entry.content}`+ md += `- **${entry.title}**, ${entry.content}`if (entry.tags.length > 0) md += ` [${entry.tags.join(', ')}]`- md += ` *(${entry.source})* — ${date}\n`+ md += ` *(${entry.source})*, ${date}\n`}md += '\n'}diff --git a/src/stores/remoteStore.ts b/src/stores/remoteStore.tsindex 79d11b27..4b7fef07 100644--- a/src/stores/remoteStore.ts+++ b/src/stores/remoteStore.ts@@ -60,7 +60,7 @@ export function remoteBackendArgs(* case any future caller bypasses the store.*/export const REMOTE_DEV_MODE_ERROR =- "Remote Access requires the installed desktop app. The plain `npm run dev` server can't host the Rust backend Remote needs (built-in HTTP server, secure passcodes, Cloudflare tunnel). For full Remote in development, use `npm run tauri:dev` instead — it brings the Rust side in and Remote works there too."+ "Remote Access requires the installed desktop app. The plain `npm run dev` server can't host the Rust backend Remote needs (built-in HTTP server, secure passcodes, Cloudflare tunnel). For full Remote in development, use `npm run tauri:dev` instead, it brings the Rust side in and Remote works there too."/*** Enrich a system prompt with the user's memory context so Remote chats