mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-05 00:23:10 +00:00
fix(session): check for context overflow mid-turn in finish-step (#6480)
This commit is contained in:
@@ -549,6 +549,14 @@ export namespace SessionPrompt {
|
||||
model,
|
||||
})
|
||||
if (result === "stop") break
|
||||
if (result === "compact") {
|
||||
await SessionCompaction.create({
|
||||
sessionID,
|
||||
agent: lastUser.agent,
|
||||
model: lastUser.model,
|
||||
auto: true,
|
||||
})
|
||||
}
|
||||
continue
|
||||
}
|
||||
SessionCompaction.prune({ sessionID })
|
||||
|
||||
Reference in New Issue
Block a user