From e61ed3ce38e29cf58363a301beb5bd6d3358ad94 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 01:58:21 +0000 Subject: [PATCH] Cover --cwd missing-value guard for --open token Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index 03e32a846f..9bd095e255 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -473,6 +473,12 @@ describe("parseCliOptions", () => { ); }); + it("treats --open after --cwd as missing value", () => { + expect(() => parseCliOptions(["--cwd", "--open"], {}, "/workspace")).toThrow( + "Missing value for --cwd", + ); + }); + it("treats end-of-options marker after --cwd as missing value", () => { expect(() => parseCliOptions(["--cwd", "--"], {}, "/workspace")).toThrow( "Missing value for --cwd",