From b16ca1c9ee8e6423c711afe9416148127e8836cd Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:58:36 +0000 Subject: [PATCH] Cover falsey T3_NO_OPEN environment 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 90c596e442..7a2f3e8130 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -81,6 +81,17 @@ describe("parseCliOptions", () => { expect(options.noOpen).toBe(true); }); + it("treats falsey T3_NO_OPEN values as disabled", () => { + const options = parseCliOptions( + [], + { + T3_NO_OPEN: "off", + }, + "/workspace", + ); + expect(options.noOpen).toBe(false); + }); + it("accepts trimmed uppercase truthy values for T3_NO_OPEN", () => { const options = parseCliOptions( [],