refactor(opencode): fail the execute tool on program failure (#35180)

This commit is contained in:
Aiden Cline
2026-07-03 11:27:36 -05:00
committed by GitHub
parent 39c6dd1c32
commit 27e8e2e22b
4 changed files with 61 additions and 54 deletions
@@ -192,6 +192,8 @@ const layer = Layer.effect(
status: "error",
input: match.part.state.input,
error: errorMessage(error),
// Keep metadata streamed while running so failures retain progress detail (e.g. execute's child calls).
metadata: match.part.state.metadata,
time: { start: match.part.state.time.start, end: Date.now() },
},
})