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(pfade): home bekommt das Gatter, das genau den Windows-Testbau auslaesst

purpled682ae12151a
diff --git a/src-tauri/src/os_paths.rs b/src-tauri/src/os_paths.rs
index 972c91ff..20a56e35 100644
--- a/src-tauri/src/os_paths.rs
+++ b/src-tauri/src/os_paths.rs
@@ -10,6 +10,13 @@
use crate::app_identity::{AGENT_WORKSPACE_DIR, APP_CONFIG_DIR, APP_DIR, APP_DISPLAY_DIR};
use std::path::PathBuf;
+// Two callers, and they vanish in different builds: `agent_workspace_root`
+// below sits behind cfg(not(test)), `find_lms_cli` further down behind
+// cfg(not(target_os = "windows")). Only a Windows test build loses both at
+// once, so that is the single combination in which this function is dead, and
+// clippy -D warnings said so. Deleting it would be wrong: the other three
+// combinations still call it.
+#[cfg(any(not(test), not(target_os = "windows")))]
pub fn home() -> PathBuf {
dirs::home_dir().unwrap_or_else(|| PathBuf::from("."))
}