Skip to content

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.

fix: hide Python console windows, fix video preview, fix Benchmark button

PurpleDoubleD71f66f51a34e
diff --git a/src-tauri/src/commands/process.rs b/src-tauri/src/commands/process.rs
index d1283996..e0c40039 100644
--- a/src-tauri/src/commands/process.rs
+++ b/src-tauri/src/commands/process.rs
@@ -225,8 +225,8 @@ pub fn start_comfyui(state: State<'_, AppState>) -> Result<serde_json::Value, St
.stdin(Stdio::null())
.stdout(Stdio::piped())
.stderr(Stdio::piped());
- // Note: DO NOT use CREATE_NO_WINDOW for ComfyUI — tqdm needs a valid stderr handle.
- // Piped stdout/stderr already hides the console window.
+ #[cfg(target_os = "windows")]
+ cmd.creation_flags(CREATE_NO_WINDOW);
let mut child = cmd.spawn()
.map_err(|e| format!("Failed to start ComfyUI (python={}): {}", python, e))?;
diff --git a/src-tauri/src/commands/whisper.rs b/src-tauri/src/commands/whisper.rs
index 5eab4849..bf3f2ba9 100644
--- a/src-tauri/src/commands/whisper.rs
+++ b/src-tauri/src/commands/whisper.rs
@@ -45,8 +45,8 @@ impl WhisperServer {
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::piped());
- // Note: DO NOT use CREATE_NO_WINDOW for Python — libraries need valid stderr.
- // Piped stderr already hides the console window.
+ #[cfg(target_os = "windows")]
+ cmd.creation_flags(CREATE_NO_WINDOW);
let mut child = cmd.spawn()
.map_err(|e| format!("Failed to start whisper server: {}", e))?;
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index 213f60bb..a18a46b8 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -22,7 +22,7 @@
}
],
"security": {
- "csp": "default-src 'self' http://ipc.localhost; connect-src 'self' http://ipc.localhost http://tauri.localhost http://localhost:* http://127.0.0.1:* https://civitai.com https://*.civitai.com https://huggingface.co https://*.huggingface.co https://ollama.com ws://localhost:8188 ws://127.0.0.1:8188; img-src 'self' data: blob: http://localhost:8188 http://127.0.0.1:8188 https://*.civitai.com https://*.githubusercontent.com; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"
+ "csp": "default-src 'self' http://ipc.localhost; connect-src 'self' http://ipc.localhost http://tauri.localhost http://localhost:* http://127.0.0.1:* https://civitai.com https://*.civitai.com https://huggingface.co https://*.huggingface.co https://ollama.com ws://localhost:8188 ws://127.0.0.1:8188; img-src 'self' data: blob: http://localhost:8188 http://127.0.0.1:8188 https://*.civitai.com https://*.githubusercontent.com; media-src 'self' blob: http://localhost:8188 http://127.0.0.1:8188; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"
}
},
"bundle": {
diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx
index 605c75cf..0e13654e 100644
--- a/src/components/layout/Header.tsx
+++ b/src/components/layout/Header.tsx
@@ -77,7 +77,17 @@ export function Header() {
>
<GitCompareArrows size={14} />
</button>
- {navBtn('models', <Trophy size={14} />, 'Benchmark', false)}
+ <button
+ onClick={() => setView('models')}
+ className={`p-1.5 rounded-md transition-colors ${
+ currentView === 'models'
+ ? 'bg-gray-200 dark:bg-white/10 text-gray-900 dark:text-white'
+ : 'text-gray-500 hover:text-gray-800 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-white/5'
+ }`}
+ title="Benchmark"
+ >
+ <Trophy size={14} />
+ </button>
{navBtn('models', <Layers size={14} />, 'Models')}
{navBtn('settings', <Settings size={14} />, 'Settings')}
</div>