From 053488cd663ae86d777960a01689d4e665222b2f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 01:04:06 +0000 Subject: [PATCH] Cover relative shell editor cwd handling Co-authored-by: Theo Browne --- apps/t3/src/runtimeApiServer.test.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index 5d858e12d8..9d6fc541f4 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -385,6 +385,32 @@ describe("runtimeApiServer", () => { client.socket.close(); }); + it("accepts relative shell.openInEditor cwd paths", async () => { + const server = await startRuntimeApiServer({ + port: 0, + launchCwd: process.cwd(), + }); + servers.push(server); + + const client = await connectClient(server.wsUrl); + await client.nextMessage(); + + const response = await sendRequest( + client.socket, + client.nextMessage, + "shell-open-relative-1", + "shell.openInEditor", + { + cwd: ".", + editor: "file-manager", + }, + ); + expect(response.ok).toBe(true); + expect(response.result).toBeNull(); + + client.socket.close(); + }); + it("responds to dialogs.pickFolder requests", async () => { const server = await startRuntimeApiServer({ port: 0,