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(download): shorten engine_folders' cold-first-click stall (R1-4)
purple2e7bb4b20633
diff --git a/src-tauri/src/commands/comfy_folders.rs b/src-tauri/src/commands/comfy_folders.rsindex e5e66c96..8cc5b086 100644--- a/src-tauri/src/commands/comfy_folders.rs+++ b/src-tauri/src/commands/comfy_folders.rs@@ -52,7 +52,17 @@ const CACHE_TTL: Duration = Duration::from_secs(30);/// The engine is either there or it is not; a folder list is not worth a long/// wait in front of a download.-const FETCH_TIMEOUT: Duration = Duration::from_secs(3);+///+/// Review Runde 2, R1-4: `delete_comfy_model` and `check_download_space`+/// became `async` and now `.await` this on the FIRST click of a session,+/// before the 30 s cache above has anything in it. At the old 3 s this made+/// the delete button feel broken on a cold ComfyUI (not running, or slow to+/// answer) with no progress indicator in front of it. A LOCAL loopback+/// request that is going to succeed at all answers in milliseconds; 3 full+/// seconds was really a "ComfyUI is not running" ceiling wearing a network-+/// timeout's clothes. 1 s keeps comfortably more headroom than any healthy+/// local server needs while cutting the worst-case stall to a third.+const FETCH_TIMEOUT: Duration = Duration::from_secs(1);/// Is this an absolute path anywhere, not only on the platform this build runs/// on? The answer comes from ComfyUI, so a Windows answer has to read as