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(chat): the HTML preview server is desktop only (FEHLER-Q4 #1)

purple96d3a00fa46b
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 72a408d0..1881316a 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -18,6 +18,8 @@ mod android_entry;
#[cfg(target_os = "linux")]
mod linux_media;
mod app_identity;
+// The chat's HTML preview server. A phone starts no server (mobile_guard.rs).
+#[cfg(desktop)]
mod html_preview;
mod cancel_registry;
mod commands;
@@ -663,8 +665,11 @@ pub fn run() {
.mobile_guard()
.invoke_handler(tauri::generate_handler![
// The chat's HTML preview: a loopback page with its own closed
- // policy, served while a preview is open (html_preview.rs).
+ // policy, served while a preview is open (html_preview.rs). Desktop
+ // only: a phone starts no server, and its agent preview has its own.
+ #[cfg(desktop)]
html_preview::html_preview_put,
+ #[cfg(desktop)]
html_preview::html_preview_close,
// Hugging Face "Use this model": the page takes the waiting link
#[cfg(desktop)]