summaryrefslogtreecommitdiffhomepage
path: root/packages/app
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-01 12:07:57 -0400
committerGitHub <[email protected]>2026-04-01 12:07:57 -0400
commita9c85b7c2789f9363cbfeb9c1adceaddfbdbbdc3 (patch)
treedea453d7882c875dd96a895a90b05429331efd19 /packages/app
parent897d83c589528bf56c529179a47ebade89b0a3cc (diff)
downloadopencode-a9c85b7c2789f9363cbfeb9c1adceaddfbdbbdc3.tar.gz
opencode-a9c85b7c2789f9363cbfeb9c1adceaddfbdbbdc3.zip
refactor(shell): use Effect ChildProcess for shell command execution (#20494)
Diffstat (limited to 'packages/app')
-rw-r--r--packages/app/e2e/prompt/prompt-shell.spec.ts6
1 files changed, 2 insertions, 4 deletions
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()