From abe616bda872bac0f01cfc147905503dd5cddec5 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 00:12:20 +0000 Subject: [PATCH] Cover shell file-manager 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 a61fbde7b2..c21aa1bdda 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -273,6 +273,32 @@ describe("runtimeApiServer", () => { client.socket.close(); }); + it("handles shell.openInEditor file-manager 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-fm-1", + "shell.openInEditor", + { + cwd: process.cwd(), + editor: "file-manager", + }, + ); + expect(response.ok).toBe(true); + expect(response.result).toBeNull(); + + client.socket.close(); + }); + it("ignores malformed client messages and continues processing", async () => { const server = await startRuntimeApiServer({ port: 0,