From 524c11709af521548cd38f3694e5cbc5f52c2d3f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 02:24:53 +0000 Subject: [PATCH] Cover end-marker use after positional cwd selection 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 8e7f9d58c9..9790b74cb7 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -330,6 +330,12 @@ describe("parseCliOptions", () => { ); }); + it("throws when end-of-options marker appears after positional cwd is already set", () => { + expect(() => parseCliOptions(["apps/renderer", "--", "apps/t3"], {}, "/workspace")).toThrow( + "Unexpected positional argument: apps/t3", + ); + }); + it("keeps ports unlocked when using defaults", () => { const options = parseCliOptions([], {}, "/workspace"); expect(options.backendPortLocked).toBe(false);