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.

stil: Gedankenstriche aus den in diesem Zweig hinzugefuegten Zeilen entfernt

purpleeedbc9d0b7b6
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 330c12a4..ad38962d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -116,7 +116,7 @@ jobs:
strategy:
# E5: without this, one platform's failure cancels the other lane
# before it reports anything, so a run that broke on BOTH platforms
- # only ever shows the first one found — the 3.0.0 release night cost
+ # only ever shows the first one found, the 3.0.0 release night cost
# five rounds finding the second failure only after fixing the first.
# Same rationale as tauri-build below, vorbild for this line.
fail-fast: false
diff --git a/src-tauri/src/commands/download.rs b/src-tauri/src/commands/download.rs
index 48e42f74..d239aa82 100644
--- a/src-tauri/src/commands/download.rs
+++ b/src-tauri/src/commands/download.rs
@@ -595,7 +595,7 @@ pub async fn delete_comfy_model(
//
// R1-4: asked fresh via engine_folders (a running ComfyUI's own answer),
// not the stale process-wide cache from before this ComfyUI ever
- // started — a model the running engine had just remapped to a custom
+ // started, a model the running engine had just remapped to a custom
// folder looked like a foreign file and refused to delete.
let mut roots: Vec<PathBuf> = MODEL_SUBDIRS.iter().map(|d| models_root.join(d)).collect();
if let Some(folders) = engine_folders(&state).await {
@@ -1697,7 +1697,7 @@ pub async fn check_download_space(
(Some(sub), _) => {
let comfy_path = state.comfy_path.lock().unwrap().clone();
// R1-4: engine_folders asks the running ComfyUI fresh instead of
- // reading a cache that can predate it — a cold cache pointed the
+ // reading a cache that can predate it, a cold cache pointed the
// very first space check of a session at the wrong drive (K5's
// customer-visible half of the same bug).
models_dir_in(engine_folders(&state).await.as_ref(), &comfy_path, &sub)?
diff --git a/src-tauri/src/commands/engine.rs b/src-tauri/src/commands/engine.rs
index ac13f9f3..b65e9a30 100644
--- a/src-tauri/src/commands/engine.rs
+++ b/src-tauri/src/commands/engine.rs
@@ -224,7 +224,7 @@ const MIB: u64 = 1024 * 1024;
/// left to hold back.
const VRAM_OVERHEAD_BYTES: u64 = 512 * MIB;
-/// R1-3: the reserve for a reading that is NOT known to be free — the
+/// R1-3: the reserve for a reading that is NOT known to be free, the
/// `detect_gpus` fallback (`VramReading.free == false`) reports the card's
/// TOTAL size, not what is currently unused. A desktop compositor, a browser
/// and whatever Create last rendered can all be sitting in that total already,
@@ -2088,7 +2088,7 @@ fn start_after_stop(
SecondAttempt::SameOffload
};
// R1-10: bound once so both the argv AND the sanity-probe restart ladder
- // below build against the SAME tuning the retry actually ran with — a
+ // below build against the SAME tuning the retry actually ran with, a
// CPU-only retry must not have serve_or_heal_garbled think it still has
// a card to give up.
let retry_tuning = if offload_was_tried { on_the_processor(tuning) } else { tuning.clone() };
@@ -2224,7 +2224,7 @@ fn serve_or_heal_garbled(
for _ in 0..3 {
let Some(probe) = engine_sanity::probe_engine(port, engine_sanity::PROBE_TIMEOUT) else {
// D3: `None` here means the probe itself never got an answer to
- // judge (timed out, refused, or an unexpected body) — not that
+ // judge (timed out, refused, or an unexpected body), not that
// the engine answered badly. On a run with no GPU layers this is
// routine: a cold CPU-only load of `PROBE_TOKENS` can outrun the
// probe's short budget on its own, with nothing wrong at all, and
@@ -3840,7 +3840,7 @@ mod tests {
/// `nvidia-smi` reading) and once with `free: false` (`detect_gpus`'
/// total-capacity fallback). The sentence must differ and the total-
/// capacity run must never ask for MORE layers than the measured-free run
- /// — a card that has not been shown to be empty is the case where asking
+ ///, a card that has not been shown to be empty is the case where asking
/// for too much costs the start.
#[test]
fn r1_3_a_total_capacity_reading_never_outbids_a_measured_free_one() {
@@ -3866,7 +3866,7 @@ mod tests {
assert!(
total_layers <= free_layers,
"an unmeasured total-capacity reading asked for MORE layers ({total_layers}) than \
- the measured-free reading ({free_layers}) on the same {vram} bytes — \
+ the measured-free reading ({free_layers}) on the same {vram} bytes, \
free: {}\ntotal: {}",
free.why,
total.why
@@ -5107,7 +5107,7 @@ mod tests {
// R1-10: `start_after_stop`'s FIRST attempt success path always ran
// the sanity probe (bug a) through `serve_or_heal_garbled`, but the
// SECOND attempt (the one clean retry) used to hand back a bare
- // "started" object instead — a garbled answer on the retry was
+ // "started" object instead, a garbled answer on the retry was
// never caught or healed. `serve_or_heal_garbled(` must now appear
// twice in this function's body: once per attempt.
let src = include_str!("engine.rs");
diff --git a/src-tauri/src/commands/engine_sanity.rs b/src-tauri/src/commands/engine_sanity.rs
index fbe4bf3f..76ab54ad 100644
--- a/src-tauri/src/commands/engine_sanity.rs
+++ b/src-tauri/src/commands/engine_sanity.rs
@@ -508,7 +508,7 @@ pub(crate) struct ProbeOutcome {
/// visible `content`. A thinking model (GLM-5.3, ...) spends the probe's
/// small `PROBE_TOKENS` budget on the `<think>` block, so the VISIBLE
/// answer this probe judges is genuinely short or empty while the model
- /// is not broken at all — the chat answers fine once the user's own,
+ /// is not broken at all, the chat answers fine once the user's own,
/// much larger, budget lets the thinking finish. `judge()` alone cannot
/// tell this apart from any other short answer, because it only ever
/// sees `content`; this is decided one level up, in `probe_engine`,
@@ -570,7 +570,7 @@ pub(crate) fn answer_text(body: &serde_json::Value) -> Option<String> {
/// a chat template that supports native reasoning parsing, e.g. GLM-5.3).
/// `reasoning` is the older field name some backends still use;
/// `reasoning_content` is tried first. `None` when neither is present or
-/// both are empty — the ordinary case for a model that does not think.
+/// both are empty, the ordinary case for a model that does not think.
pub(crate) fn reasoning_text(body: &serde_json::Value) -> Option<String> {
let message = body.get("choices")?.get(0)?.get("message")?;
let raw = message
@@ -581,7 +581,7 @@ pub(crate) fn reasoning_text(body: &serde_json::Value) -> Option<String> {
}
/// D3: the word for the log line, refined for the one case `Sanity::label()`
-/// alone cannot tell apart — see [`ProbeOutcome::still_thinking`]. Every
+/// alone cannot tell apart, see [`ProbeOutcome::still_thinking`]. Every
/// other verdict reads exactly as it did before.
pub(crate) fn verdict_label(verdict: Sanity, still_thinking: bool) -> &'static str {
if still_thinking && verdict == Sanity::Unjudgeable {
@@ -1062,7 +1062,7 @@ mod tests {
fn a_thinking_model_that_used_up_its_budget_reasoning_is_marked_still_thinking() {
// D3: the visible answer is empty (the probe's small PROBE_TOKENS
// budget went entirely into the <think> block), so judge() correctly
- // calls it Unjudgeable — but `still_thinking` is what turns the log
+ // calls it Unjudgeable, but `still_thinking` is what turns the log
// line from a generic "too short to judge" into a sentence that
// names the actual, harmless reason.
let port = stub_engine(
@@ -1076,7 +1076,7 @@ mod tests {
verdict_label(out.verdict, out.still_thinking),
"too short to judge (still inside a <think> block)"
);
- // And decide() still serves it — D3 requires this stays true no
+ // And decide() still serves it, D3 requires this stays true no
// matter how the log line is worded.
assert_eq!(decide(out.verdict, &a_modern_card()), AfterProbe::Serve);
}
diff --git a/src-tauri/src/commands/gpu.rs b/src-tauri/src/commands/gpu.rs
index 940a3ad1..78d74984 100644
--- a/src-tauri/src/commands/gpu.rs
+++ b/src-tauri/src/commands/gpu.rs
@@ -61,7 +61,7 @@ pub struct DetectedGpu {
fn run_cmd(program: &str, args: &[&str]) -> Option<String> {
// K14: nvidia-smi / rocm-smi / lspci, every program this reaches, are all
- // foreign vendor CLIs, never something LU bundles — the same category
+ // foreign vendor CLIs, never something LU bundles, the same category
// `foreign_system_command` was written for K11's git bug.
let mut cmd = crate::process_util::foreign_system_command(program);
cmd.args(args);
diff --git a/src-tauri/src/commands/install/env_check.rs b/src-tauri/src/commands/install/env_check.rs
index f5fb3c80..168ab58e 100644
--- a/src-tauri/src/commands/install/env_check.rs
+++ b/src-tauri/src/commands/install/env_check.rs
@@ -2469,7 +2469,7 @@ mod start_tests {
#[test]
fn r1_8_a_trimmed_traceback_still_skips_its_frames() {
- // R1-8: this is the shape run_python_bounded actually stores — every
+ // R1-8: this is the shape run_python_bounded actually stores, every
// line already `.trim()`ed, so a frame carries no leading whitespace
// at all. The old filter (line.starts_with(' ')) was dead against
// text like this, so a frame line as the LAST stored line (a kill
diff --git a/src-tauri/src/commands/install/pip.rs b/src-tauri/src/commands/install/pip.rs
index ab4ae326..c3c85d60 100644
--- a/src-tauri/src/commands/install/pip.rs
+++ b/src-tauri/src/commands/install/pip.rs
@@ -127,7 +127,7 @@ fn diagnose_pip_error_inner(stderr: &str, python_bin: Option<&str>) -> String {
let snippet: String = stderr.chars().take(400).collect();
let kind = pip_failure_kind(stderr);
// K14: this is the one PipFailureKind whose hint text changes depending
- // on something OTHER than the pip output already in hand — see
+ // on something OTHER than the pip output already in hand, see
// diagnose_python_ssl for why the check has to happen here, not inside
// the otherwise-pure pip_failure_hint.
let hint = if kind == PipFailureKind::PythonWithoutSsl {
@@ -424,7 +424,7 @@ pub(crate) fn pip_failure_hint(kind: PipFailureKind, text: &str) -> String {
// without the ssl module" unconditionally, but the SAME pip message
// ("the ssl module in Python is not available") is what a perfectly
// healthy Python prints when something ELSE stops its `_ssl`
- // extension from loading — an AppImage's inherited LD_LIBRARY_PATH
+ // extension from loading, an AppImage's inherited LD_LIBRARY_PATH
// pointing a bundled libssl/libcrypto at an unrelated interpreter,
// in that report. Every caller that KNOWS which interpreter failed
// goes through diagnose_pip_error_for / python_without_ssl_hint
@@ -438,7 +438,7 @@ pub(crate) fn pip_failure_hint(kind: PipFailureKind, text: &str) -> String {
the Python was built without ssl support, or that something else (an \
inherited library path from another program) is stopping its ssl \
extension from loading. Check with python3 -c \"import ssl\" in a plain \
- terminal, outside this app. If that succeeds, restart LU and retry — the \
+ terminal, outside this app. If that succeeds, restart LU and retry, the \
environment the check just ran in was poisoned. If it fails there too, \
reinstall python3 via your package manager (pyenv builds need the \
OpenSSL headers installed first, e.g. libssl-dev / openssl-devel), \
@@ -519,7 +519,7 @@ pub(crate) enum SslDiagnosis {
/// other foreign spawn uses. This was never a Python build problem.
EnvironmentCollision,
/// `import ssl` still failed after cleaning. This is what a Python
- /// actually built without ssl looks like — the real ImportError is
+ /// actually built without ssl looks like, the real ImportError is
/// worth quoting instead of a canned sentence.
GenuinelyMissing(String),
/// The interpreter could not even be run to check (deleted, no exec
@@ -530,7 +530,7 @@ pub(crate) enum SslDiagnosis {
}
/// Actually ask the interpreter, through the SAME sanitized spawn every
-/// other foreign program uses (`foreign_system_command` — a venv's own
+/// other foreign program uses (`foreign_system_command`: a venv's own
/// Python, like the system Python it was built from, is never something LU
/// bundles). A clean run here proves the interpreter itself is fine and the
/// ORIGINAL pip failure's environment was the poisoned one, not the Python.
@@ -558,7 +558,7 @@ pub(crate) fn diagnose_python_ssl(python_bin: &str) -> SslDiagnosis {
pub(crate) fn python_without_ssl_hint(diagnosis: &SslDiagnosis) -> String {
match diagnosis {
SslDiagnosis::EnvironmentCollision =>
- "pip could not reach pypi.org because Python's ssl module failed to load — \
+ "pip could not reach pypi.org because Python's ssl module failed to load, \
but re-checked in a cleaned environment, the SAME interpreter imports ssl \
just fine. This was an environment problem, not a broken Python install. \
Restart LU and press Repair environment again; if you still see this after \
@@ -1139,7 +1139,7 @@ mod tests {
//
// K14: without an interpreter path, LU cannot actually check, so the
// message stays neutral between "built without ssl" and "environment
- // problem" instead of asserting the one it never verified — see
+ // problem" instead of asserting the one it never verified, see
// a_verified_ssl_collision_and_a_verified_genuine_gap_read_differently
// for the two cases where LU DOES know which it is.
let msg = diagnose_pip_error(
@@ -1173,7 +1173,7 @@ mod tests {
assert!(missing.contains("No module named '_ssl'"), "the real ImportError must be quoted: {missing}");
assert!(unknown.contains("could not re-run the interpreter"), "{unknown}");
- // Negative control: Unknown must not lean either way — neither
+ // Negative control: Unknown must not lean either way, neither
// claiming the environment is fine (like EnvironmentCollision) nor
// that the build is broken (like GenuinelyMissing).
assert!(!unknown.to_lowercase().contains("not a broken python install"), "{unknown}");
@@ -1189,7 +1189,7 @@ mod tests {
#[test]
fn a_healthy_interpreter_is_read_as_an_environment_collision() {
// The real system Python on the machine running this test suite has
- // ssl — every CI platform and every developer box does. This proves
+ // ssl, every CI platform and every developer box does. This proves
// diagnose_python_ssl calls through foreign_system_command (so an
// AppImage-poisoned test environment would still get a clean child)
// and reads a successful `import ssl` correctly.
diff --git a/src-tauri/src/commands/shell.rs b/src-tauri/src/commands/shell.rs
index a3d0051f..64e9e541 100644
--- a/src-tauri/src/commands/shell.rs
+++ b/src-tauri/src/commands/shell.rs
@@ -306,7 +306,7 @@ struct RunningShell {
/// R1-9: wann diese Karte entstand. `shell_mark_cancelled` legt ueber
/// `or_default()` einen Eintrag an, auch wenn der zugehoerige Lauf nie
/// startet (ein doppelter oder verspaeteter Abbruch, eine falsche
- /// Kennung vom Aufrufer) — ohne `pid` faellt `ShellSlot::drop` nie fuer
+ /// Kennung vom Aufrufer), ohne `pid` faellt `ShellSlot::drop` nie fuer
/// ihn, also blieb die Karte fuer den Rest der Sitzung liegen. `Instant`
/// statt `SystemTime`: eine Uhrumstellung darf das Fegen nicht verzerren.
created_at: Instant,
diff --git a/src-tauri/src/commands/video.rs b/src-tauri/src/commands/video.rs
index cc8c39c5..9d69b7e6 100644
--- a/src-tauri/src/commands/video.rs
+++ b/src-tauri/src/commands/video.rs
@@ -193,7 +193,7 @@ fn model_dir(id: &str) -> PathBuf {
models_root().join(id)
}
-/// K5: `huggingface_hub`'s Xet chunk cache ignores `local_dir` — it only
+/// K5: `huggingface_hub`'s Xet chunk cache ignores `local_dir`: it only
/// follows `HF_HOME` (and, since `hf_xet` split out of the main package,
/// `HF_XET_CACHE`). Without either set, it falls back to
/// `~/.cache/huggingface[/xet]`, on the SYSTEM drive, regardless of which
@@ -891,7 +891,7 @@ mod tests {
// K5 (Discord x_guestieco_x, 13.09.: "everytime I try to force the
// app to go to my E drive it always takes up space on my C
// drive"). huggingface_hub's Xet chunk cache ignores `local_dir`
- // and only follows HF_HOME/HF_XET_CACHE — without them it fills the
+ // and only follows HF_HOME/HF_XET_CACHE, without them it fills the
// SYSTEM drive's default cache regardless of where models_root()
// points. `commands::mlx.rs` already sets both on every
// snapshot_download/hf_hub_download call; this proves this file's
diff --git a/src-tauri/src/process_util.rs b/src-tauri/src/process_util.rs
index adc15c18..eb4e6cc5 100644
--- a/src-tauri/src/process_util.rs
+++ b/src-tauri/src/process_util.rs
@@ -38,7 +38,7 @@ pub fn suppress_window(cmd: &mut Command) {
//
// linuxdeploy's AppRun exports `LD_LIBRARY_PATH` by PREPENDING
// `$APPDIR/usr/lib[/x86_64-linux-gnu]` onto whatever the shell already had,
-// so it is inherited by every child process — including a system `git` found
+// so it is inherited by every child process, including a system `git` found
// on PATH. On Arch/CachyOS, whose `libpcre2-8`/`libssl` are newer than the
// ones linuxdeploy bundled for the build host, the system `git` binary links
// against ITS OWN system libpcre2/libssl by SONAME, the dynamic loader finds
@@ -61,7 +61,7 @@ pub fn suppress_window(cmd: &mut Command) {
/// K14 (Reddit, Linux, 2026-09-17): the same poisoning K11 fixed for
/// `LD_LIBRARY_PATH` also broke a ComfyUI venv's own `_ssl` extension after
-/// an in-app AppImage update — `import ssl` failed inside a bundled
+/// an in-app AppImage update, `import ssl` failed inside a bundled
/// `LD_LIBRARY_PATH`, and LU's own diagnosis then misread that as "this
/// Python was built without ssl" and sent the customer to reinstall Python,
/// which fixes nothing. `LD_LIBRARY_PATH` was never the only variable
@@ -74,9 +74,9 @@ pub fn suppress_window(cmd: &mut Command) {
/// not at all, there.
///
/// Two shapes, because the two kinds of variable break differently:
-/// * `PathList` — colon-separated, like `LD_LIBRARY_PATH`. Only the
+/// * `PathList`: colon-separated, like `LD_LIBRARY_PATH`. Only the
/// AppImage-mount ENTRIES are removed, the rest of the list survives.
-/// * `SingleValue` — one path. If it points inside the AppImage mount at
+/// * `SingleValue`: one path. If it points inside the AppImage mount at
/// all, the whole variable is unset: there is no "the rest of it" to
/// keep, and a foreign program reading it half-stripped would be reading
/// a path segment, not a value.
@@ -110,10 +110,10 @@ pub const APPIMAGE_ENV_VARS: &[(&str, VarShape)] = &[
/// Pure and testable off any platform: no `std::env` read happens here, only
/// in [`strip_appimage_env`] which calls this once per variable in
/// [`APPIMAGE_ENV_VARS`]. Returns:
-/// * `None` — leave the variable exactly as inherited.
-/// * `Some(None)` — remove the variable (a `SingleValue` that pointed
+/// * `None`: leave the variable exactly as inherited.
+/// * `Some(None)`: remove the variable (a `SingleValue` that pointed
/// inside the AppImage, or a `PathList` whose every entry did).
-/// * `Some(Some(v))` — set the variable to `v` (a `PathList` with only its
+/// * `Some(Some(v))`: set the variable to `v` (a `PathList` with only its
/// AppImage entries removed).
pub fn sanitized_env_value(shape: VarShape, current: &str, appdir: &str) -> Option<Option<String>> {
if current.is_empty() {
@@ -150,8 +150,8 @@ pub fn sanitized_env_value(shape: VarShape, current: &str, appdir: &str) -> Opti
}
/// Clean every variable in [`APPIMAGE_ENV_VARS`] on a child `Command` for a
-/// FOREIGN system program. No-op whenever `APPDIR` is unset — every platform
-/// and packaging but a running Linux AppImage — so this is safe to call
+/// FOREIGN system program. No-op whenever `APPDIR` is unset, every platform
+/// and packaging but a running Linux AppImage, so this is safe to call
/// unconditionally. Supersedes [`strip_appimage_ld_library_path`], which
/// stays only as the narrower helper its own tests pin.
pub fn strip_appimage_env(cmd: &mut Command) {
@@ -170,16 +170,16 @@ pub fn strip_appimage_env(cmd: &mut Command) {
}
}
-/// Build a `Command` for a FOREIGN system program — `git`, a system Python
+/// Build a `Command` for a FOREIGN system program, `git`, a system Python
/// interpreter, `pip`, a system `ffmpeg`, `nvidia-smi`, `rocm-smi`,
-/// `xdg-open`, `uv` — anything on `$PATH` that LU did not build and does not
+/// `xdg-open`, `uv`: anything on `$PATH` that LU did not build and does not
/// bundle. Use this instead of a bare `Command::new` at every such call
/// site: it clears the AppImage's own environment out of the child (K11,
/// K14) so a foreign binary loads the SYSTEM libraries and modules it
/// actually links against, never our bundled copies. A no-op everywhere but
/// a running Linux AppImage.
///
-/// Do NOT use this for our own bundled sidecars — call `Command::new`
+/// Do NOT use this for our own bundled sidecars, call `Command::new`
/// directly for those, exactly as before: they are built against and need
/// exactly the AppImage-bundled libraries this strips out.
pub fn foreign_system_command<S: AsRef<std::ffi::OsStr>>(program: S) -> Command {
@@ -216,7 +216,7 @@ mod appimage_env_tests {
#[test]
fn a_value_with_nothing_from_the_appimage_is_left_alone() {
// Negative control: a user who set LD_LIBRARY_PATH themselves, or an
- // AppImage runtime with nothing prepended, must not be rewritten —
+ // AppImage runtime with nothing prepended, must not be rewritten ,
// rewriting an unrelated value could break the very thing the user set.
assert_eq!(
sanitized_env_value(VarShape::PathList, "/usr/local/lib:/opt/cuda/lib64", "/tmp/.mount_x"),
@@ -264,7 +264,7 @@ mod appimage_env_tests {
// K14: the generalised strip_appimage_env removes a PathList
// variable outright once every entry was inside the mount, rather
// than setting it to an explicit "" the way the narrower
- // strip_appimage_ld_library_path used to — see
+ // strip_appimage_ld_library_path used to, see
// a_path_list_variable_with_every_entry_inside_the_mount_is_removed_not_emptied
// for why that is the better of the two for a reader that treats an
// empty search list differently from an unset one.
@@ -281,7 +281,7 @@ mod appimage_env_tests {
// ── K14: the generalised sanitizer, as a pure function over a map ──────
//
- // These never touch std::env — sanitized_env_value is given the current
+ // These never touch std::env, sanitized_env_value is given the current
// value and the mount point directly, exactly as strip_appimage_env
// reads them, so the whole APPIMAGE_ENV_VARS table is testable on every
// platform this app builds for, CI included.
@@ -309,7 +309,7 @@ mod appimage_env_tests {
#[test]
fn a_path_list_variable_with_every_entry_inside_the_mount_is_removed_not_emptied() {
// XDG_DATA_DIRS etc: emptying a PathList variable to "" is not the
- // same as removing it for every reader — some tools treat an EMPTY
+ // same as removing it for every reader, some tools treat an EMPTY
// XDG_DATA_DIRS as "search nothing" rather than "use the default",
// which is worse than never having set it. So a PathList that
// becomes empty after stripping is removed outright, same as a
@@ -360,7 +360,7 @@ mod appimage_env_tests {
std::env::set_var("SSL_CERT_FILE", format!("{appdir}/usr/ssl/cacert.pem"));
std::env::set_var("XDG_DATA_DIRS", format!("{appdir}/usr/share"));
// A variable this AppImage never touched, present only because the
- // shell it launched from set it — must survive untouched.
+ // shell it launched from set it, must survive untouched.
std::env::set_var("SSL_CERT_DIR", "/etc/ssl/certs");
let mut cmd = Command::new("python3");
@@ -373,7 +373,7 @@ mod appimage_env_tests {
assert_eq!(envs.get("LD_LIBRARY_PATH").and_then(|v| v.clone()), Some("/usr/local/lib".to_string()));
// An explicit removal shows up in get_envs() as the key mapped to
// `None` (Command::env_remove), which is Some(None) once wrapped in
- // this test's outer HashMap — distinct from the key being absent,
+ // this test's outer HashMap, distinct from the key being absent,
// which would mean "left untouched", the wrong outcome here.
assert_eq!(envs.get("PYTHONHOME"), Some(&None), "PYTHONHOME must be explicitly removed");
assert_eq!(envs.get("SSL_CERT_FILE"), Some(&None), "SSL_CERT_FILE must be explicitly removed");
diff --git a/src-tauri/src/python.rs b/src-tauri/src/python.rs
index a4d5ee5f..a437694d 100644
--- a/src-tauri/src/python.rs
+++ b/src-tauri/src/python.rs
@@ -28,7 +28,7 @@ pub fn python_command<S: AsRef<std::ffi::OsStr>>(python_bin: S) -> Command {
#[cfg(target_os = "windows")]
cmd.creation_flags(CREATE_NO_WINDOW);
// K11/K14: the interpreter this runs is always the SYSTEM Python (or a
- // venv built from it), never a Python LU bundles itself — so it is a
+ // venv built from it), never a Python LU bundles itself, so it is a
// foreign program in exactly the sense `foreign_system_command` names,
// and pip (always invoked as `<python> -m pip`, see install/pip.rs)
// rides along for free. `sanitize_appimage_python_env` above cleans
@@ -76,7 +76,7 @@ pub fn is_appimage_python_env(value: &str) -> bool {
/// child process we spawn sees the system Python the way a shell would.
///
/// Called once at startup, before any command runs. `LD_LIBRARY_PATH` is NOT
-/// touched globally here on purpose — the AppImage needs it for our own
+/// touched globally here on purpose, the AppImage needs it for our own
/// bundled libraries. That used to read "and it was never what broke Python
/// here"; K14 (Reddit, 2026-09-17) is the counterexample: a ComfyUI venv's
/// own `_ssl` extension failed to load under the inherited
@@ -84,7 +84,7 @@ pub fn is_appimage_python_env(value: &str) -> bool {
/// and LU's own diagnosis misread that ImportError as "this Python was
/// built without ssl" instead of an environment collision. The venv's
/// interpreter is a foreign program in exactly `foreign_system_command`'s
-/// sense, so it does not go through a global unset — `python_command` (this
+/// sense, so it does not go through a global unset, `python_command` (this
/// file) clears it per child instead, alongside every other variable
/// `strip_appimage_env` knows about (see process_util.rs for the reasoning
/// this function's old comment used to carry alone).
diff --git a/src/lib/__tests__/ci-cargo-check-fail-fast.test.ts b/src/lib/__tests__/ci-cargo-check-fail-fast.test.ts
index 6daf9b0d..c80f6e3a 100644
--- a/src/lib/__tests__/ci-cargo-check-fail-fast.test.ts
+++ b/src/lib/__tests__/ci-cargo-check-fail-fast.test.ts
@@ -4,7 +4,7 @@
* cancel the others over.
*
* Without `fail-fast: false`, a run broken on BOTH `ubuntu-22.04` and
- * `windows-latest` shows only whichever platform failed first — the other
+ * `windows-latest` shows only whichever platform failed first, the other
* lane gets cancelled before it reports anything. That cost the 3.0.0
* release night five rounds: fix the Ubuntu failure, push, wait for CI,
* discover the Windows failure that was there the whole time. `tauri-build`
@@ -41,7 +41,7 @@ function jobBlock(yaml: string, job: string): string {
return lines.slice(start, end).join('\n')
}
-describe('ci.yml — cargo-check does not hide the second platform', () => {
+describe('ci.yml, cargo-check does not hide the second platform', () => {
it('has a cargo-check job with both CI platforms', () => {
const block = jobBlock(CI_YML, 'cargo-check')
expect(block, 'cargo-check job is gone from ci.yml').not.toBe('')
@@ -52,7 +52,7 @@ describe('ci.yml — cargo-check does not hide the second platform', () => {
it('sets fail-fast: false on the cargo-check matrix', () => {
const block = jobBlock(CI_YML, 'cargo-check')
// Must sit inside the `strategy:` block, not merely appear as a comment
- // — the negative control below proves the difference matters.
+ //, the negative control below proves the difference matters.
const strategyStart = block.indexOf('strategy:')
expect(strategyStart, 'cargo-check has no strategy block at all').toBeGreaterThanOrEqual(0)
const strategyBlock = block.slice(strategyStart)