mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-07 17:28:53 +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