mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 14:22:27 +00:00
fix: compact command after revert now properly cleans up revert state (#6235)
This commit is contained in:
committed by
GitHub
parent
1bcc72c477
commit
bfb9787361
@@ -1084,6 +1084,8 @@ export namespace Server {
|
||||
async (c) => {
|
||||
const sessionID = c.req.valid("param").sessionID
|
||||
const body = c.req.valid("json")
|
||||
const session = await Session.get(sessionID)
|
||||
await SessionRevert.cleanup(session)
|
||||
const msgs = await Session.messages({ sessionID })
|
||||
let currentAgent = await Agent.defaultAgent()
|
||||
for (let i = msgs.length - 1; i >= 0; i--) {
|
||||
|
||||
Reference in New Issue
Block a user