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(linux): die beiden CI-Tore laufen auch auf Ubuntu gruen
David1e79da0fa60a
diff --git a/src-tauri/src/app_identity.rs b/src-tauri/src/app_identity.rsindex 244a3e59..2aec97d6 100644--- a/src-tauri/src/app_identity.rs+++ b/src-tauri/src/app_identity.rs@@ -70,6 +70,9 @@ pub const AGENT_WORKSPACE_DIR: &str = "agent-workspace";/// hartkodiert, und wer ihn ändert, verwaist alle Schlüssel, die der Nutzer/// unter dem alten Namen gespeichert hat. Ein Build mit einem abweichenden/// Service-Namen liest und **überschreibt** außerdem fremde Einträge.+// Only the Windows and macOS keychain paths read this; Linux has no keychain+// backend yet, and its clippy gate runs with -D warnings.+#[cfg_attr(not(any(target_os = "windows", target_os = "macos")), allow(dead_code))]pub const KEYCHAIN_SERVICE: &str = "com.locallyuncensored.providerkeys";#[cfg(test)]diff --git a/src-tauri/src/commands/local_api.rs b/src-tauri/src/commands/local_api.rsindex 43b5bd79..c5e891ae 100644--- a/src-tauri/src/commands/local_api.rs+++ b/src-tauri/src/commands/local_api.rs@@ -169,7 +169,7 @@ impl SseModellUmschreiber {if self.rest.is_empty() {return Vec::new();}- let zeile: Vec<u8> = self.rest.drain(..).collect();+ let zeile = std::mem::take(&mut self.rest);self.zeile_umschreiben(&zeile)}diff --git a/src-tauri/src/commands/remote.rs b/src-tauri/src/commands/remote.rsindex a5e8e89c..4faa9676 100644--- a/src-tauri/src/commands/remote.rs+++ b/src-tauri/src/commands/remote.rs@@ -4067,7 +4067,11 @@ mod remote_hardening_tests {// A shebang's `name()` is the interpreter ("bash" on macOS), not the// script, so THAT stand-in cannot impersonate a cloudflared — it carries a// real argv and a real name, which is what the three decomposed tests- // below need, but not the name the sweep looks for.+ // below need, but not the name the sweep looks for. Linux differs: there+ // the kernel takes comm from the script's basename, so the script must+ // NOT be called `cloudflared` or the sweep finds it by name (measured on+ // Ubuntu 22.04, where `the_sweep_leaves_a_live_stranger_on_our_port_alone`+ // failed for exactly that reason).//// The positive end-to-end direction gets its own stand-in, and the reason// it is a different one is worth writing down: SIP kills copies of@@ -4088,7 +4092,7 @@ mod remote_hardening_tests {use std::process::{Command, Stdio};let dir = tempfile::tempdir().expect("tempdir");- let script = dir.path().join("cloudflared");+ let script = dir.path().join("bystander");// `read` is a shell builtin: the process blocks in it without forking,// so nothing is left behind when this test drops the pipe.std::fs::write(&script, "#!/bin/sh\nread ignored\n").expect("write the stand-in");diff --git a/src-tauri/src/commands/system.rs b/src-tauri/src/commands/system.rsindex 27cb4ec2..179706fe 100644--- a/src-tauri/src/commands/system.rs+++ b/src-tauri/src/commands/system.rs@@ -115,12 +115,16 @@ fn screenshot_blocking() -> Result<serde_json::Value, String> {/// minutes on a picture of the screen. 20 s is far above a real capture (tens/// of milliseconds, seconds at worst on a huge display) and far below the/// wait a blocked consent dialog imposes.+// Only the Windows and macOS capture paths use the deadline; Linux has no+// capture command yet, and its clippy gate runs with -D warnings.+#[cfg_attr(not(any(target_os = "windows", target_os = "macos")), allow(dead_code))]const SCREENSHOT_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(20);/// Run a capture command with a deadline. `Ok(())` only when it exited zero in/// time; the process is killed on timeout so no orphan sits on the display/// server. Exported for the unit test, which is the only honest way to prove/// the deadline fires without a consent dialog to hand.+#[cfg_attr(not(any(target_os = "windows", target_os = "macos")), allow(dead_code))]pub(crate) fn run_capture_bounded(mut cmd: std::process::Command,max: std::time::Duration,