mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 10:16:37 +00:00
fix(opencode): ensure unsub(PartUpdated) is always called in TaskTool (#9992)
This commit is contained in:
@@ -160,7 +160,10 @@ export const TaskTool = Tool.define("task", async (ctx) => {
|
||||
},
|
||||
parts: promptParts,
|
||||
})
|
||||
unsub()
|
||||
.finally(() => {
|
||||
unsub()
|
||||
})
|
||||
|
||||
const messages = await Session.messages({ sessionID: session.id })
|
||||
const summary = messages
|
||||
.filter((x) => x.info.role === "assistant")
|
||||
|
||||
Reference in New Issue
Block a user