Skip to content

Commit 62cb3f7

Browse files
test(opencode): remove flaky subagent test (anomalyco#43819)
Co-authored-by: Aiden <rekram1-node@users.noreply.github.com>
1 parent e0b9e68 commit 62cb3f7

1 file changed

Lines changed: 0 additions & 44 deletions

File tree

packages/opencode/test/cli/run/run-process.test.ts

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -277,50 +277,6 @@ describe("opencode run (non-interactive subprocess)", () => {
277277
60_000,
278278
)
279279

280-
cliIt.concurrent(
281-
"answers requested permissions from subagents",
282-
({ llm, opencode }) =>
283-
Effect.gen(function* () {
284-
yield* llm.tool("task", {
285-
description: "Run a command",
286-
prompt: "Run the requested command",
287-
subagent_type: "general",
288-
})
289-
yield* llm.tool("bash", { command: "printf child", description: "Print from the child" })
290-
yield* llm.text("child finished")
291-
yield* llm.text("parent finished")
292-
293-
const result = yield* opencode.run("delegate a command", {
294-
permission: { bash: "ask" },
295-
extraArgs: ["--dangerously-skip-permissions"],
296-
timeoutMs: 10_000,
297-
})
298-
299-
opencode.expectExit(result, 0)
300-
expect(result.stdout).toContain("parent finished")
301-
302-
yield* llm.reset
303-
yield* llm.tool("task", {
304-
description: "Run a command",
305-
prompt: "Run the requested command",
306-
subagent_type: "general",
307-
})
308-
yield* llm.tool("bash", { command: "printf child", description: "Print from the child" })
309-
yield* llm.text("child continued")
310-
yield* llm.text("parent continued")
311-
312-
const rejected = yield* opencode.run("delegate a rejected command", {
313-
permission: { bash: "ask" },
314-
timeoutMs: 10_000,
315-
})
316-
317-
opencode.expectExit(rejected, 0)
318-
expect(rejected.stderr).toContain("permission requested: bash")
319-
expect(rejected.stdout).toContain("child continued")
320-
}),
321-
30_000,
322-
)
323-
324280
cliIt.live(
325281
"attach mode sends client-local file contents without a shared path",
326282
({ home, llm, opencode }) =>

0 commit comments

Comments
 (0)