From 8364f8a16633c69b2c73e57933de1e5913e8a425 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:56:11 +0000 Subject: [PATCH] Cover trimmed uppercase T3_NO_OPEN falsey parsing Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index 3ff9c0c473..90c596e442 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -92,6 +92,17 @@ describe("parseCliOptions", () => { expect(options.noOpen).toBe(true); }); + it("treats trimmed uppercase falsey values for T3_NO_OPEN as disabled", () => { + const options = parseCliOptions( + [], + { + T3_NO_OPEN: "\tOFF\t", + }, + "/workspace", + ); + expect(options.noOpen).toBe(false); + }); + it("supports explicit equals-style --no-open boolean overrides", () => { const options = parseCliOptions( ["--no-open=false"],