Skip to content

The open-source app everyone uses to manage agents at work

fix: parseBooleanFromEnv silently treats common truthy values as false

zvictor08ac2bc9a7ff
diff --git a/cli/src/commands/onboard.ts b/cli/src/commands/onboard.ts
index 9be9710799..e0c8a2bf0b 100644
--- a/cli/src/commands/onboard.ts
+++ b/cli/src/commands/onboard.ts
@@ -76,7 +76,10 @@ const ONBOARD_ENV_KEYS = [
function parseBooleanFromEnv(rawValue: string | undefined): boolean | null {
if (rawValue === undefined) return null;
- return rawValue === "true";
+ const lower = rawValue.trim().toLowerCase();
+ if (lower === "true" || lower === "1" || lower === "yes") return true;
+ if (lower === "false" || lower === "0" || lower === "no") return false;
+ return null;
}
function parseNumberFromEnv(rawValue: string | undefined): number | null {