From a9fbb004bfc7a31fa05766ee333c27435bd75d8b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 00:13:32 +0000 Subject: [PATCH] Cover shell cursor open path in runtime integration tests 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 2a496d4d91..48c6530db3 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -299,6 +299,32 @@ describe("runtimeApiServer", () => { client.socket.close(); }); + it("handles shell.openInEditor cursor requests", 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-cursor-1", + "shell.openInEditor", + { + cwd: process.cwd(), + editor: "cursor", + }, + ); + 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,