mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
fix(opencode): ensure unsub(PartUpdated) is always called in TaskTool (#9992)
This commit is contained in:
parent
427cc3e153
commit
63f5669eb5
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user