mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
fix: record truncation event when condensation fails but truncation succeeds (#10984)
This commit is contained in:
parent
7534e19c60
commit
bd29766406
1 changed files with 2 additions and 1 deletions
|
|
@ -4012,7 +4012,8 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
|
|||
}
|
||||
if (truncateResult.error) {
|
||||
await this.say("condense_context_error", truncateResult.error)
|
||||
} else if (truncateResult.summary) {
|
||||
}
|
||||
if (truncateResult.summary) {
|
||||
const { summary, cost, prevContextTokens, newContextTokens = 0, condenseId } = truncateResult
|
||||
const contextCondense: ContextCondense = {
|
||||
summary,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue