Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit bd29766

Browse files
fix: record truncation event when condensation fails but truncation succeeds (#10984)
1 parent 7534e19 commit bd29766

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core/task/Task.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4012,7 +4012,8 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
40124012
}
40134013
if (truncateResult.error) {
40144014
await this.say("condense_context_error", truncateResult.error)
4015-
} else if (truncateResult.summary) {
4015+
}
4016+
if (truncateResult.summary) {
40164017
const { summary, cost, prevContextTokens, newContextTokens = 0, condenseId } = truncateResult
40174018
const contextCondense: ContextCondense = {
40184019
summary,

0 commit comments

Comments
 (0)