From 198621a881b8b3eb3ec311801b6c426a2a2dbeae Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:32:06 +0000 Subject: [PATCH] Cover whitespace-only launchCwd startup rejection Co-authored-by: Theo Browne --- apps/t3/src/runtimeApiServer.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index fdb8832cf8..fe2ef973ba 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -275,6 +275,15 @@ describe("runtimeApiServer", () => { ).rejects.toThrow("Invalid launchCwd must be a non-empty path"); }); + it("rejects startup when launchCwd is only whitespace", async () => { + await expect( + startRuntimeApiServer({ + port: 0, + launchCwd: " ", + }), + ).rejects.toThrow("Invalid launchCwd must be a non-empty path"); + }); + it("rejects startup when launchCwd is not a string", async () => { await expect( startRuntimeApiServer({