From ba5aa10de34f180ce6fd106eb48f9cc038d384eb Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 2 Mar 2026 02:28:01 +0000 Subject: [PATCH] Fix resolveBooleanFlag dropping explicit false values Option.filter(flag, Boolean) converts Some(false) to None because Boolean(false) is false. This caused explicit --no-signed (and similar --no-* flags) to be silently ignored when the corresponding env var was set to true. Remove the filter so explicit CLI false values take precedence over environment defaults. Co-authored-by: Julius Marminge --- scripts/build-desktop-artifact.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts index 849fea934e..f8d4af72ab 100644 --- a/scripts/build-desktop-artifact.ts +++ b/scripts/build-desktop-artifact.ts @@ -139,7 +139,7 @@ const BuildEnvConfig = Config.all({ }); const resolveBooleanFlag = (flag: Option.Option, envValue: boolean) => - Option.getOrElse(Option.filter(flag, Boolean), () => envValue); + Option.getOrElse(flag, () => envValue); const mergeOptions = (a: Option.Option, b: Option.Option, defaultValue: A) => Option.getOrElse(a, () => Option.getOrElse(b, () => defaultValue));