fix(opencode): advertise configured shell timeout (#28998)

Co-authored-by: Nabs <nabil@instafork.com>
This commit is contained in:
Aiden Cline
2026-05-23 10:43:39 -05:00
committed by GitHub
parent 387c5a02c8
commit ba437069e6
3 changed files with 36 additions and 19 deletions

View File

@@ -1085,10 +1085,15 @@ describe("tool.shell abort", () => {
runIn(
projectRoot,
Effect.gen(function* () {
const result = yield* run({
command: `echo started && sleep 60`,
description: "Default timeout test",
})
const tool = yield* initShell()
expect(tool.description).toContain("commands will time out after 500ms")
const result = yield* tool.execute(
{
command: `echo started && sleep 60`,
description: "Default timeout test",
},
ctx,
)
expect(result.output).toContain("started")
expect(result.output).toContain("exceeding timeout 500 ms")
}),