From 4d90913dcb514bae742e840ad0e47b4b597eaa0d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 00:04:34 +0000 Subject: [PATCH] Cover unknown T3_NO_OPEN values as disabled 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 9371d5a12e..fd87b77782 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -80,6 +80,17 @@ describe("parseCliOptions", () => { expect(options.noOpen).toBe(false); }); + it("treats unknown T3_NO_OPEN values as disabled", () => { + const options = parseCliOptions( + [], + { + T3_NO_OPEN: "definitely-not-boolean", + }, + "/workspace", + ); + expect(options.noOpen).toBe(false); + }); + it("allows command line arguments to override defaults", () => { const options = parseCliOptions( [