refactor(opencode): fail the execute tool on program failure (#35180)
This commit is contained in:
@@ -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() },
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user