Compare commits

...
Author SHA1 Message Date
0xtoshii 988f2dd071 changeset 2025-04-24 23:33:33 -07:00
0xtoshii abadaed74d notice 2025-04-24 23:32:14 -07:00
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": minor
---
add truncation notice when truncating manually
+8
View File
@@ -1505,6 +1505,10 @@ export class Task {
"quarter", // Force aggressive truncation
)
await this.saveClineMessagesAndUpdateHistory()
await this.contextManager.triggerApplyStandardContextTruncationNoticeChange(
Date.now(),
await ensureTaskDirectoryExists(this.getContext(), this.taskId),
)
this.didAutomaticallyRetryFailedApiRequest = true
} else if (isOpenRouter && !this.didAutomaticallyRetryFailedApiRequest) {
@@ -1515,6 +1519,10 @@ export class Task {
"quarter", // Force aggressive truncation
)
await this.saveClineMessagesAndUpdateHistory()
await this.contextManager.triggerApplyStandardContextTruncationNoticeChange(
Date.now(),
await ensureTaskDirectoryExists(this.getContext(), this.taskId),
)
}
console.log("first chunk failed, waiting 1 second before retrying")