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(2.5.9): TTS read-aloud reaches Piper, Edit/i2i discoverability, honest remote copy
purple07ba31f91a82
diff --git a/docs/remote-access/index.html b/docs/remote-access/index.htmlindex 37d0f743..912e03bf 100644--- a/docs/remote-access/index.html+++ b/docs/remote-access/index.html@@ -67,7 +67,7 @@</nav><h2 id="overview">What remote access does</h2>-<p>Remote access turns your phone into a thin client for the LU instance running on your desktop. Every chat, Coding Agent run, image generation, and tool call still executes on the desktop — the phone just sends prompts and receives results.</p>+<p>Remote access turns your phone into a thin client for the LU instance running on your desktop. Chat, Coding Agent runs, and tool calls execute on the desktop; the phone just sends prompts and receives results. Image and video creation stays in the desktop Create tab for now, so remote sessions are text and coding only.</p><p>Two modes, both opt-in:</p><ul><li><strong>LAN</strong> — phone and desktop share the same Wi-Fi. Traffic never leaves your home network.</li>diff --git a/src/api/voice.ts b/src/api/voice.tsindex f6f51241..ec55718f 100644--- a/src/api/voice.ts+++ b/src/api/voice.ts@@ -303,13 +303,20 @@ export async function checkTtsAvailable(): Promise<{ available: boolean; piper?:}export async function initTtsCheck(): Promise<boolean> {- if (ttsChecked) return ttsAvailableFlag;+ // Cache only a POSITIVE result. A negative probe at boot is frequently a+ // race — resolve_lu_python / the ComfyUI venv may not be ready when App.tsx+ // fires this — and caching `false` would stick for the whole session, so+ // every read-aloud silently fell back to the Windows SAPI voice and Piper+ // never spoke at all (#77, ElBiggus). On a negative we leave ttsChecked+ // false so the next caller (the lazy re-probe in useVoice, or Settings)+ // gets a fresh probe instead of the stale miss.+ if (ttsChecked && ttsAvailableFlag) return ttsAvailableFlag;try {ttsAvailableFlag = (await checkTtsAvailable()).available;} catch {ttsAvailableFlag = false;}- ttsChecked = true;+ ttsChecked = ttsAvailableFlag;return ttsAvailableFlag;}diff --git a/src/components/create/experimental/Stage.tsx b/src/components/create/experimental/Stage.tsxindex 2c6d7ea0..a3d6073c 100644--- a/src/components/create/experimental/Stage.tsx+++ b/src/components/create/experimental/Stage.tsx@@ -138,6 +138,7 @@ function teachTitle(intent: string): string {switch (intent) {case 'image': return 'What do you want to create?'case 'video': return 'Describe a scene to animate'+ case 'edit': return 'Edit or restyle your image'default: return 'Get started'}}@@ -286,7 +287,7 @@ function SourcePreview({ onOpenMaskEditor }: { onOpenMaskEditor: () => void }) {{meta.id === 'removebg' ? 'Hit Create to cut out the subject and export a transparent PNG.': meta.id === 'upscale' ? 'Hit Create to upscale the image.': meta.id === 'eraser' ? 'Paint a mask over the object to remove, then hit Create.'- : meta.allowsMask ? 'Paint a mask over what should change, write the edit prompt below, then Create.'+ : meta.allowsMask ? 'Leave the mask empty to restyle the whole image, or paint an area to change just that. Write your prompt below, then Create.': 'Describe the motion below, then Create.'}</p></div>diff --git a/src/components/create/experimental/intents.ts b/src/components/create/experimental/intents.tsindex 451a5f74..d40e4116 100644--- a/src/components/create/experimental/intents.ts+++ b/src/components/create/experimental/intents.ts@@ -41,14 +41,18 @@ export const INTENTS: IntentMeta[] = [],},{- // Local lane since 2.5.7: mask inpaint on the SDXL/SD1.5 checkpoint path- // (VAEEncodeForInpaint / InpaintModelConditioning) — the 4th local tab.- // Cloud keeps its hosted edit endpoint; both share the MaskEditor.- id: 'edit', label: 'Edit Image', short: 'Edit', icon: Wand2,- placeholder: 'Describe the edit. What should change in the painted area…',+ // This IS the image-to-image tab. Source + empty mask restyles the WHOLE+ // image (VAEEncode at denoise 0.7, dynamic-workflow isI2I); painting a mask+ // switches to inpaint (VAEEncodeForInpaint / InpaintModelConditioning) on+ // the SDXL/SD1.5 checkpoint path. Cloud keeps its hosted edit endpoint; both+ // share the MaskEditor. Renamed 2.5.9: "Edit" alone hid the i2i entry for+ // the r/SD crowd who search for "image to image" (GH D#86 jendrelele /+ // the_mr_pickles / pnwpdr4519; David committed to making it clearer).+ id: 'edit', label: 'Edit / Image to Image', short: 'Edit', icon: Wand2,+ placeholder: 'Describe the new look. Leave the mask empty to restyle the whole image, or paint an area to change just that…',needsSource: true, needsPrompt: true, allowsMask: true, isVideo: false,capability: 'inpaint-nodes', requiresModels: 'image',- examples: ['replace the sky with a starry night', 'add a leather jacket', 'remove the person on the left'],+ examples: ['turn this photo into a watercolor painting', 'make it a snowy winter scene', 'repaint it in a neon cyberpunk style'],},{id: 'removebg', label: 'Remove Background', short: 'Cutout', icon: Scissors,diff --git a/src/hooks/useVoice.ts b/src/hooks/useVoice.tsindex 5c018537..8198623f 100644--- a/src/hooks/useVoice.ts+++ b/src/hooks/useVoice.ts@@ -49,6 +49,17 @@ function sttErrorMessage(err: unknown): string {let speakGen = 0;let speakAbort: AbortController | null = null;+// #77 (ElBiggus): the boot probe (App.tsx) can lose a cold-start race against+// resolve_lu_python and leave store.ttsAvailable stuck false, so read-aloud+// silently used the Windows SAPI voice and Piper never spoke. When we're about+// to concede to SAPI in local Piper mode, re-probe availability a bounded+// number of times per session (module-scoped so the whole app shares the+// budget across every SpeakerButton). A machine that really has Piper flips+// the store true on the first successful re-probe; a machine without it pays+// at most MAX_LAZY_TTS_REPROBES cheap find_spec spawns for the whole session.+let lazyTtsReprobes = 0;+const MAX_LAZY_TTS_REPROBES = 3;+function stopSpeechPlayback(): void {// Invalidate the running speak generation (drops queued cloud chunks and any// synthesis that resolves late) and abort the in-flight cloud fetch — the@@ -322,15 +333,29 @@ export function useVoice() {if (stopped()) return;log.error("External TTS failed, falling back to browser voices", { err });}- } else if (store.ttsAvailable) {- try {- const url = await synthesizeNeural(text, store.piperVoice);- if (stopped()) return;- await playNeuralAudio(url);- return;- } catch (err) {+ } else {+ // Local neural (Piper). Trust the cached availability flag, but if it+ // is false while we're in local Piper mode, re-probe (bounded) before+ // conceding to the browser SAPI fallback — a racy boot probe must not+ // permanently silence Piper (#77, ElBiggus). A positive re-probe is+ // written back to the store so later reads skip straight to Piper.+ let piperReady = store.ttsAvailable;+ if (!piperReady && lazyTtsReprobes < MAX_LAZY_TTS_REPROBES && store.ttsMode !== "external") {+ lazyTtsReprobes++;+ piperReady = await recheckTtsAvailable();if (stopped()) return;- log.error("Neural TTS failed, falling back to browser voices", { err });+ if (piperReady) store.setTtsAvailable(true);+ }+ if (piperReady) {+ try {+ const url = await synthesizeNeural(text, store.piperVoice);+ if (stopped()) return;+ await playNeuralAudio(url);+ return;+ } catch (err) {+ if (stopped()) return;+ log.error("Neural TTS failed, falling back to browser voices", { err });+ }}}if (!ttsSupported || stopped()) return;