fix(core): isolate tool hook outcomes (#38571)
This commit is contained in:
parent
02f2725154
commit
e7ecee5df2
6 changed files with 40 additions and 37 deletions
|
|
@ -365,7 +365,7 @@ describe("PluginV2", () => {
|
|||
yield* ctx.tool
|
||||
.hook("execute.after", (event) =>
|
||||
Effect.sync(() => {
|
||||
if (event.status === "completed") event.content = [] as never
|
||||
if (event.status === "completed") (event.content as unknown as unknown[]).splice(0)
|
||||
}),
|
||||
)
|
||||
.pipe(Effect.asVoid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue