From a9c85b7c2789f9363cbfeb9c1adceaddfbdbbdc3 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Wed, 1 Apr 2026 12:07:57 -0400 Subject: refactor(shell): use Effect ChildProcess for shell command execution (#20494) --- packages/app/e2e/prompt/prompt-shell.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'packages/app/e2e') diff --git a/packages/app/e2e/prompt/prompt-shell.spec.ts b/packages/app/e2e/prompt/prompt-shell.spec.ts index 4c92f4a2f..019219bf5 100644 --- a/packages/app/e2e/prompt/prompt-shell.spec.ts +++ b/packages/app/e2e/prompt/prompt-shell.spec.ts @@ -2,7 +2,6 @@ import type { ToolPart } from "@opencode-ai/sdk/v2/client" import { test, expect } from "../fixtures" import { sessionIDFromUrl } from "../actions" import { promptSelector } from "../selectors" -import { createSdk } from "../utils" const isBash = (part: unknown): part is ToolPart => { if (!part || typeof part !== "object") return false @@ -14,10 +13,9 @@ const isBash = (part: unknown): part is ToolPart => { test("shell mode runs a command in the project directory", async ({ page, withProject }) => { test.setTimeout(120_000) - await withProject(async ({ directory, gotoSession, trackSession }) => { - const sdk = createSdk(directory) + await withProject(async ({ directory, gotoSession, trackSession, sdk }) => { const prompt = page.locator(promptSelector) - const cmd = process.platform === "win32" ? "dir" : "ls" + const cmd = process.platform === "win32" ? "dir" : "command ls" await gotoSession() await prompt.click() -- cgit v1.2.3