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(scan-2026-06-18): chatgpt multi-shard import, ministral agent mode, TTS persistence +5
purple085caf551c54
diff --git a/src-tauri/src/commands/remote.rs b/src-tauri/src/commands/remote.rsindex 60ec3e0d..4bb0ae51 100644--- a/src-tauri/src/commands/remote.rs+++ b/src-tauri/src/commands/remote.rs@@ -3904,6 +3904,30 @@ pub async fn start_remote_server(remote.handle = Some(handle);}+ // #aldrich (Discord 2026-06-17, STILL "Error HTTP:503" on the phone after+ // the 2.5.4 tunnel-readiness poll): that earlier poll only checks the+ // Cloudflare EDGE url, never the LOCAL origin. axum::serve binds inside the+ // spawned task above, which may not be listening yet when we return here —+ // so the tunnel edge (or a fast phone on LAN) can hit a not-yet-bound origin+ // and Cloudflare relays the upstream 503. Gate the return on our OWN loopback+ // /remote-api/status (public, no auth, instant) so the server is provably+ // serving before the frontend ever starts the tunnel or shows the QR. Use+ // 127.0.0.1 (IPv4) not localhost to avoid the slow ::1 refused-connect path.+ // Bounded: proceed anyway after the budget rather than hang (old behaviour).+ if let Ok(client) = reqwest::Client::builder()+ .timeout(std::time::Duration::from_millis(400))+ .no_proxy()+ .build()+ {+ let probe = format!("http://127.0.0.1:{}/remote-api/status", port);+ for _ in 0..25 { // ~25 × 200 ms ≈ 5 s readiness budget+ match client.get(&probe).send().await {+ Ok(resp) if resp.status().is_success() => break,+ _ => tokio::time::sleep(std::time::Duration::from_millis(200)).await,+ }+ }+ }+let lan_ip = local_ip_address::local_ip().map(|ip| ip.to_string()).unwrap_or_else(|_| "127.0.0.1".to_string());diff --git a/src/api/__tests__/model-compatibility.test.ts b/src/api/__tests__/model-compatibility.test.tsindex db28f779..98d9a7e8 100644--- a/src/api/__tests__/model-compatibility.test.ts+++ b/src/api/__tests__/model-compatibility.test.ts@@ -38,6 +38,15 @@ describe('isAgentCompatible', () => {expect(isAgentCompatible('mistral-small:22b')).toBe(true)})+ it('ministral models are compatible (AnonN10, GitHub #65)', () => {+ // Ministral (Mistral's 3B/8B edge line) has native tool calling, but the+ // name isn't a substring of "mistral" so Agent Mode wrongly rejected it.+ expect(isAgentCompatible('ministral-8b:latest')).toBe(true)+ expect(isAgentCompatible('ministral-3b:latest')).toBe(true)+ // AnonN10's exact custom-GGUF tag shape from the issue.+ expect(isAgentCompatible('ministral-8b-instruct-2410-abliterated-i1-iq3xxs:latest')).toBe(true)+ })+it('gemma4 models are compatible (native tool calling)', () => {expect(isAgentCompatible('gemma4:e2b')).toBe(true)expect(isAgentCompatible('gemma4:e4b')).toBe(true)diff --git a/src/components/chat/VramSwitchCard.tsx b/src/components/chat/VramSwitchCard.tsxindex 42360bc7..5b3737f6 100644--- a/src/components/chat/VramSwitchCard.tsx+++ b/src/components/chat/VramSwitchCard.tsx@@ -8,10 +8,13 @@* conversation intact, NOT speed, so the copy says "~30-90s" plainly and never* implies a seamless zero-latency experience.*- * Visibility: only shown when an ACTUAL swap is happening (the hook flips- * `swapping` true on the first `freeing_vram` event). When the models fit- * together (auto-decision, cloud, remote, or 'never' mode) no eviction occurs,- * the card stays hidden, and the normal ToolCallBlock spinner conveys progress.+ * Visibility: shown for the whole generation (model loading → generating →+ * restoring), for image AND video. When an actual VRAM eviction happens+ * (`evicted`) the copy talks about freeing VRAM / the swap; when the models+ * co-exist and nothing is evicted (the common image case) it shows plain+ * "loading the image model / generating" with no false "freeing VRAM" claim+ * (David 2026-06-16). Cloud/remote/'never' generations emit no phases at all,+ * so the card stays hidden there and the ToolCallBlock spinner conveys progress.*/import { motion, AnimatePresence } from 'framer-motion'@@ -19,7 +22,7 @@ import { Loader2, Cpu, Check } from 'lucide-react'import { useVramHandoff } from '../../hooks/useVramHandoff'import type { HandoffPhase } from '../../api/vram-handoff'-function copyFor(phase: HandoffPhase | null, kind: 'image' | 'video' | null, detail: string | null): { text: string; sub?: string; done?: boolean } {+function copyFor(phase: HandoffPhase | null, kind: 'image' | 'video' | null, detail: string | null, evicted: boolean): { text: string; sub?: string; done?: boolean } {const what = kind === 'video' ? 'video' : 'image'switch (phase) {case 'deciding':@@ -32,28 +35,39 @@ function copyFor(phase: HandoffPhase | null, kind: 'image' | 'video' | null, detcase 'loading_image_model':return { text: `Loading the ${what} model…`, sub: 'starting ComfyUI if needed — this can take a moment' }case 'generating':- return { text: `Generating the ${what}…`, sub: 'VRAM swap in progress — usually 30-90s (longer on a cold start)' }+ return {+ text: `Generating the ${what}…`,+ // Only call it a "VRAM swap" when we actually evicted the chat model.+ // No eviction (models co-exist) → just an honest timing hint.+ sub: evicted ? 'VRAM swap in progress — usually 30-90s (longer on a cold start)' : 'usually 30-90s (longer on a cold start)',+ }case 'restoring_text':- return { text: 'Restoring the chat model', sub: detail ? `reloading ${detail}` : 'reloading into VRAM' }+ // Nothing was evicted → the chat model stayed resident, so don't claim a+ // restore; just show a brief "finishing" beat before done.+ return evicted+ ? { text: 'Restoring the chat model', sub: detail ? `reloading ${detail}` : 'reloading into VRAM' }+ : { text: `Finishing the ${what}…` }case 'done':- return { text: 'Chat model restored', done: true }+ return { text: evicted ? 'Chat model restored' : 'Done', done: true }case 'error':- return { text: 'VRAM swap interrupted', sub: 'the chat model is being restored', done: true }+ return evicted+ ? { text: 'VRAM swap interrupted', sub: 'the chat model is being restored', done: true }+ : { text: 'Generation interrupted', done: true }default:- return { text: 'Swapping models…' }+ return { text: 'Working…' }}}export function VramSwitchCard() {- const { swapping, phase, kind, detail } = useVramHandoff()+ const { active, evicted, phase, kind, detail } = useVramHandoff()- // Only render during an actual swap. The `done`/`error` terminal frames flip- // `swapping` false immediately, but we still want to flash a brief "restored"+ // Render for the whole generation. The `done`/`error` terminal frames flip+ // `active` false immediately, but we still want to flash a brief terminal// confirmation, so we also render while the phase is a terminal one.const terminal = phase === 'done' || phase === 'error'- const visible = swapping || terminal+ const visible = active || terminal- const { text, sub, done } = copyFor(phase, kind, detail)+ const { text, sub, done } = copyFor(phase, kind, detail, evicted)return (<AnimatePresence>diff --git a/src/components/create/PromptInput.tsx b/src/components/create/PromptInput.tsxindex 94cdaa49..8eb6056c 100644--- a/src/components/create/PromptInput.tsx+++ b/src/components/create/PromptInput.tsx@@ -1,6 +1,6 @@import { useState, useRef, useEffect } from 'react'import { motion, AnimatePresence } from 'framer-motion'-import { Sparkles, Square, History, X, Minus } from 'lucide-react'+import { Sparkles, Square, History, X, Minus, Trash2 } from 'lucide-react'import { useCreateStore } from '../../stores/createStore'import { classifyModel, isI2VModel } from '../../api/comfyui'import type { ClassifiedModel } from '../../api/comfyui'@@ -23,7 +23,7 @@ export function PromptInput({ onGenerate, onCancel, disabled, imageModels, videoconst {prompt, negativePrompt, isGenerating, promptHistory, mode, imageSubMode, videoSubMode,imageModel, videoModel, setPrompt, setNegativePrompt, setImageSubMode, setVideoSubMode,- setImageModel, setVideoModel,+ setImageModel, setVideoModel, clearPromptHistory,} = useCreateStore()// Model picker (lives right next to Generate). Video models are filtered by@@ -209,17 +209,31 @@ export function PromptInput({ onGenerate, onCancel, disabled, imageModels, videoinitial={{ opacity: 0, height: 0 }}animate={{ opacity: 1, height: 'auto' }}exit={{ opacity: 0, height: 0 }}- className="border-t border-gray-100 dark:border-white/5 mt-1 max-h-28 overflow-y-auto scrollbar-thin"+ className="border-t border-gray-100 dark:border-white/5 mt-1">- {promptHistory.map((p, i) => (+ {/* GitHub #66 (rubacc80-png) — let users wipe the prompt history. */}+ <div className="flex items-center justify-between px-1.5 pt-1 pb-0.5">+ <span className="text-[0.55rem] uppercase tracking-wide text-gray-400 dark:text-gray-600">Recent prompts</span><button- key={i}- onClick={() => selectFromHistory(p)}- className="w-full text-left px-1.5 py-1 text-[0.65rem] text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-white/5 rounded truncate transition-colors"+ onClick={() => clearPromptHistory()}+ className="flex items-center gap-0.5 text-[0.55rem] text-gray-500 hover:text-red-500 dark:hover:text-red-400 transition-colors"+ title="Clear prompt history"+ aria-label="Clear prompt history">- {p}+ <Trash2 size={9} /> Clear</button>- ))}+ </div>+ <div className="max-h-24 overflow-y-auto scrollbar-thin">+ {promptHistory.map((p, i) => (+ <button+ key={i}+ onClick={() => selectFromHistory(p)}+ className="w-full text-left px-1.5 py-1 text-[0.65rem] text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-white/5 rounded truncate transition-colors"+ >+ {p}+ </button>+ ))}+ </div></motion.div>)}</AnimatePresence>diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsxindex 9025be1e..d47b659a 100644--- a/src/components/layout/Sidebar.tsx+++ b/src/components/layout/Sidebar.tsx@@ -47,16 +47,23 @@ export function Sidebar() {: modeConversationsconst handleNewChat = () => {- if (activeModel) {- // David's request: persona starts OFF on every new chat. We still- // store the globally-selected persona's prompt as the conv's- // systemPrompt (so toggling personaEnabled later "just works"- // without re-reading global state), but useChat / useAgentChat- // only apply it when personaEnabled === true.- const persona = personasEnabled ? getActivePersona() : null- createConversation(activeModel, persona?.systemPrompt || '', chatMode)- setView('chat')+ if (!activeModel) {+ // No model is active — clicking New Chat used to silently do nothing+ // (mylogz, Discord 2026-06-17: "cant make a new chat"). That happens+ // when no model is installed/selected, or the model list hasn't+ // populated yet. Send the user to the Models page where they can+ // install or pick one, instead of a dead click with no feedback.+ setView('models')+ return}+ // David's request: persona starts OFF on every new chat. We still+ // store the globally-selected persona's prompt as the conv's+ // systemPrompt (so toggling personaEnabled later "just works"+ // without re-reading global state), but useChat / useAgentChat+ // only apply it when personaEnabled === true.+ const persona = personasEnabled ? getActivePersona() : null+ createConversation(activeModel, persona?.systemPrompt || '', chatMode)+ setView('chat')}const handleDispatch = async (mode: 'lan' | 'internet') => {@@ -543,6 +550,7 @@ export function Sidebar() {) : (<buttononClick={handleNewChat}+ title={activeModel ? 'Start a new chat' : 'Pick or install a model first'}className="w-full flex items-center justify-center gap-1.5 px-2.5 py-1.5 rounded-md text-[0.65rem] font-medium bg-gray-50 dark:bg-white/[0.03] hover:bg-gray-100 dark:hover:bg-white/[0.05] text-gray-800 dark:text-gray-200 border border-gray-200 dark:border-white/[0.06] hover:border-gray-300 dark:hover:border-white/[0.1] transition-all"><Plus size={12} />diff --git a/src/components/models/ModelSelector.tsx b/src/components/models/ModelSelector.tsxindex ba81298a..d6127c61 100644--- a/src/components/models/ModelSelector.tsx+++ b/src/components/models/ModelSelector.tsx@@ -544,6 +544,8 @@ export function ModelSelector() {{/* ── Trigger Button ── */}<buttononClick={() => setOpen(!open)}+ title={activeModel ? `Model: ${activeDisplayName} — click to switch` : 'Select a chat model'}+ aria-label="Select chat model"className={`group flex items-center gap-1.5 h-[26px] px-2 rounded-mdbg-transparent border transition-all text-[0.7rem]diff --git a/src/hooks/useVramHandoff.ts b/src/hooks/useVramHandoff.tsindex 47f8bfb9..8dbc0387 100644--- a/src/hooks/useVramHandoff.ts+++ b/src/hooks/useVramHandoff.ts@@ -4,21 +4,28 @@* Subscribes to the orchestrator's EventTarget channel (src/api/vram-handoff.ts* `onHandoff`) and maps the latest phase into component state for VramSwitchCard.*- * Design note — the card is about the SWAP, not the generation. When the- * orchestrator decides the models co-exist in VRAM (auto-fits / cloud / remote /- * never), no `freeing_vram` phase ever fires — it goes deciding → generating →- * done. In that case `swapping` stays false and the card hides itself, leaving- * the normal ToolCallBlock spinner to convey "running". Only an ACTUAL eviction- * (`freeing_vram` observed) flips `swapping` true and reveals the card. The- * `done`/`error` terminal events reset it.+ * The card shows an HONEST per-generation status. Two cases:+ * - An actual VRAM swap (heavy video, or image on a tight card): the+ * orchestrator fires `freeing_vram` first → `evicted` becomes true → the+ * card uses "freeing VRAM / VRAM swap in progress / restoring chat" copy.+ * - No eviction (the common image case — the small chat model and the SDXL+ * checkpoint co-exist): no `freeing_vram` fires, so `evicted` stays false,+ * but the card STILL shows from `loading_image_model` onward with plain+ * "loading the image model / generating" copy and NO false "freeing VRAM"+ * claim (David 2026-06-16: the image tool should show status too, honestly).+ * `done`/`error` are terminal and reset the state.*/import { useEffect, useState } from 'react'import { onHandoff, type HandoffPhase } from '../api/vram-handoff'export interface VramHandoffState {- /** True only while an actual VRAM swap is in flight (eviction observed, not yet terminal). */- swapping: boolean+ /** True while a generation status card should show (loading the gen model →+ * generating → restoring), regardless of whether a VRAM swap happened. */+ active: boolean+ /** True once an actual VRAM eviction happened this cycle (`freeing_vram`+ * observed). Drives the "swap" wording vs. plain loading/generating copy. */+ evicted: boolean/** Latest phase seen. */phase: HandoffPhase | null/** 'image' | 'video' for copy tailoring. */@@ -27,7 +34,7 @@ export interface VramHandoffState {detail: string | null}-const INITIAL: VramHandoffState = { swapping: false, phase: null, kind: null, detail: null }+const INITIAL: VramHandoffState = { active: false, evicted: false, phase: null, kind: null, detail: null }export function useVramHandoff(): VramHandoffState {const [state, setState] = useState<VramHandoffState>(INITIAL)@@ -35,12 +42,17 @@ export function useVramHandoff(): VramHandoffState {useEffect(() => {const unsub = onHandoff((d) => {setState((prev) => {- // A swap is "real" once we see freeing_vram; it ends on a terminal event.- let swapping = prev.swapping- if (d.phase === 'freeing_vram') swapping = true- if (d.terminal) swapping = false+ let active = prev.active+ let evicted = prev.evicted+ // A real swap is marked by `freeing_vram`; the card becomes visible as+ // soon as the gen starts loading its model, so a no-eviction image gen+ // still gets an honest "loading / generating" banner.+ if (d.phase === 'freeing_vram') { active = true; evicted = true }+ if (d.phase === 'loading_image_model' || d.phase === 'generating') active = true+ if (d.terminal) active = falsereturn {- swapping,+ active,+ evicted,phase: d.phase,kind: d.kind ?? prev.kind,detail: d.detail ?? null,diff --git a/src/lib/__tests__/chatbot-export.test.ts b/src/lib/__tests__/chatbot-export.test.tsindex 70363cd8..309584cc 100644--- a/src/lib/__tests__/chatbot-export.test.ts+++ b/src/lib/__tests__/chatbot-export.test.ts@@ -264,4 +264,32 @@ describe('parseExportFile — ChatGPT .zip with dated top-level folder', () => {expect(res.conversations).toHaveLength(1)expect(res.conversations[0].platform).toBe('chatgpt')})++ it('merges every conversations-NNN.json shard (large export split at 100 chats)', async () => {+ // ChatGPT splits big histories into conversations-000.json,+ // conversations-001.json, … We must import ALL of them, not just the first+ // (mikes_pp, Discord 2026-06-17: "only the 100 in conversations-000.json+ // imported, none from conversations-001.json").+ const folder = '1716800000-shard'+ const oneChat = (title: string, part: string) => JSON.stringify([{+ title,+ create_time: 1700000000.0,+ update_time: 1700001000.0,+ mapping: {+ root: { id: 'root', message: null, parent: null, children: ['u1'] },+ u1: { id: 'u1', message: { id: 'u1', author: { role: 'user' }, create_time: 1700000010.0, content: { content_type: 'text', parts: [part] } }, parent: 'root', children: [] },+ },+ }])+ const file = await makeZipFile({+ [`${folder}/conversations-000.json`]: oneChat('Shard one chat', 'hi from shard one'),+ [`${folder}/conversations-001.json`]: oneChat('Shard two chat', 'hi from shard two'),+ [`${folder}/user.json`]: JSON.stringify({ id: 'user-1' }),+ }, 'multi-shard-export.zip')+ const res = await parseExportFile(file)+ expect(res.detectedPlatform).toBe('chatgpt')+ expect(res.conversations).toHaveLength(2)+ const titles = res.conversations.map((c) => c.title)+ expect(titles).toContain('Shard one chat')+ expect(titles).toContain('Shard two chat')+ })})diff --git a/src/lib/model-compatibility.ts b/src/lib/model-compatibility.tsindex 7d82c212..ceb46351 100644--- a/src/lib/model-compatibility.ts+++ b/src/lib/model-compatibility.ts@@ -15,6 +15,12 @@ const AGENT_COMPATIBLE = ['qwen3.6', 'qwen3-coder-next', 'qwen3-coder', 'qwen3', 'qwen2.5','llama3.1', 'llama3.2', 'llama3.3', 'llama4','mistral', 'mistral-nemo', 'mistral-small', 'mistral-large',+ // Ministral (Mistral's 3B/8B edge line) has native tool calling like its+ // bigger siblings but the name isn't a substring of 'mistral', so it was+ // wrongly rejected from Agent Mode (AnonN10, GitHub #65 — custom+ // ministral-8b GGUF, "incompatible with agent mode even though it supports+ // tool calls"). normalizeFamily keeps the leading 'ministral' token intact.+ 'ministral','command-r','phi-4', 'phi4','deepseek-v2.5', 'deepseek-v3',diff --git a/src/lib/parsers/chatbot-export.ts b/src/lib/parsers/chatbot-export.tsindex 4379f264..0f7bca2a 100644--- a/src/lib/parsers/chatbot-export.ts+++ b/src/lib/parsers/chatbot-export.ts@@ -366,13 +366,35 @@ export async function parseExportFile(file: File): Promise<ParseResult> {const basename = (p: string) => (p.split('/').pop() || '').toLowerCase()const isJson = (p: string) => p.toLowerCase().endsWith('.json')- // 1) Prefer any file whose basename is exactly conversations.json, wherever- // it sits in the tree (handles the dated-folder nesting). Return the- // first that yields at least one conversation.- for (const e of entries.filter(e => basename(e.path) === 'conversations.json')) {- const text = await e.entry.async('string')- const res = parseJsonText(text)- if (res.conversations.length > 0) return res+ // 1) Conversations live in one or more files named conversations.json or,+ // for large exports, sharded as conversations-000.json,+ // conversations-001.json, … (ChatGPT splits at ~100 chats per shard).+ // Parse EVERY such file and MERGE them, wherever they sit in the tree+ // (handles the dated-folder nesting). mikes_pp, Discord 2026-06-17:+ // only the first 100 chats imported because we returned on the first+ // file and conversations-001.json was ignored.+ const isConversationsFile = (p: string) => {+ const b = basename(p)+ return b === 'conversations.json' || /^conversations-\d+\.json$/.test(b)+ }+ const convFiles = entries+ .filter(e => isConversationsFile(e.path))+ // Deterministic shard order: conversations.json, then -000, -001, …+ .sort((a, b) => basename(a.path).localeCompare(basename(b.path), 'en', { numeric: true }))+ if (convFiles.length > 0) {+ const merged: NormalisedConversation[] = []+ let skipped = 0+ let platform: ChatbotPlatform = 'unknown'+ for (const e of convFiles) {+ const text = await e.entry.async('string')+ const res = parseJsonText(text)+ merged.push(...res.conversations)+ skipped += res.skipped+ if (res.detectedPlatform !== 'unknown') platform = res.detectedPlatform+ }+ if (merged.length > 0) {+ return { conversations: merged, skipped, detectedPlatform: platform }+ }}// 2) Parse-and-pick: try every JSON file and keep whichever produces the// most conversations. We deliberately do NOT rank by file size viadiff --git a/src/stores/__tests__/createStore.test.ts b/src/stores/__tests__/createStore.test.tsindex 0e214d9e..436fe3a9 100644--- a/src/stores/__tests__/createStore.test.ts+++ b/src/stores/__tests__/createStore.test.ts@@ -507,6 +507,17 @@ describe('createStore', () => {})})+ // ── clearPromptHistory (GitHub #66) ────────────────────────++ describe('clearPromptHistory', () => {+ it('wipes all prompt history', () => {+ useCreateStore.getState().addToPromptHistory('one')+ useCreateStore.getState().addToPromptHistory('two')+ useCreateStore.getState().clearPromptHistory()+ expect(useCreateStore.getState().promptHistory).toEqual([])+ })+ })+// ── setIsGenerating ────────────────────────────────────────describe('setIsGenerating', () => {diff --git a/src/stores/createStore.ts b/src/stores/createStore.tsindex 7a2e3ada..819d6d1a 100644--- a/src/stores/createStore.ts+++ b/src/stores/createStore.ts@@ -145,6 +145,8 @@ interface CreateState {removeFromGallery: (id: string) => voidclearGallery: () => voidaddToPromptHistory: (prompt: string) => void+ /** GitHub #66 (rubacc80-png) — wipe the Create-tab prompt history. */+ clearPromptHistory: () => voidsetImageModelList: (list: ClassifiedModel[]) => voidsetVideoModelList: (list: ClassifiedModel[]) => voidsetComfyRunning: (running: boolean) => void@@ -298,6 +300,7 @@ export const useCreateStore = create<CreateState>()(const filtered = s.promptHistory.filter(p => p !== prompt)return { promptHistory: [prompt, ...filtered].slice(0, 50) }}),+ clearPromptHistory: () => set({ promptHistory: [] }),setImageModelList: (list) => set({ imageModelList: list }),setVideoModelList: (list) => set({ videoModelList: list }),setComfyRunning: (running) => set({ comfyRunning: running }),diff --git a/src/stores/voiceStore.ts b/src/stores/voiceStore.tsindex c8907236..225880ae 100644--- a/src/stores/voiceStore.ts+++ b/src/stores/voiceStore.ts@@ -128,6 +128,13 @@ export const useVoiceStore = create<VoiceState>()(ttsVoice: state.ttsVoice,ttsRate: state.ttsRate,ttsPitch: state.ttsPitch,+ // GitHub #58 — persist the engine choice + external endpoint. Without+ // these the store reverts to ttsMode:"piper" with an empty URL on the+ // next launch, so picking "External HTTP" never sticks and the output+ // stays Piper (hussam-batshon: "after saving it still shows Piper").+ ttsMode: state.ttsMode,+ externalTtsUrl: state.externalTtsUrl,+ externalTtsVoice: state.externalTtsVoice,}),})