mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-04 16:13:11 +00:00
only display last 100 messages in TUI
This commit is contained in:
@@ -93,7 +93,7 @@ export const TaskTool = Tool.define("task", async () => {
|
||||
})
|
||||
unsub()
|
||||
let all
|
||||
all = await Session.messages(session.id)
|
||||
all = await Session.messages({ sessionID: session.id })
|
||||
all = all.filter((x) => x.info.role === "assistant")
|
||||
all = all.flatMap(
|
||||
(msg) => msg.parts.filter((x: any) => x.type === "tool") as MessageV2.ToolPart[],
|
||||
|
||||
Reference in New Issue
Block a user