From c1bec99a7adea62df22b374659df6d2554fd3a4d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 05:02:11 +0000 Subject: [PATCH] Cover unknown T3_NO_OPEN value handling 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 7a2f3e8130..49a2fbc566 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(false); }); + it("treats unknown T3_NO_OPEN values as disabled", () => { + const options = parseCliOptions( + [], + { + T3_NO_OPEN: "sometimes", + }, + "/workspace", + ); + expect(options.noOpen).toBe(false); + }); + it("accepts trimmed uppercase truthy values for T3_NO_OPEN", () => { const options = parseCliOptions( [],