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
commit ba437069e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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")
}),