narrative narrative narrative (#3121)

* notice

* changeset
This commit is contained in:
Toshii authored and GitHub committed 2025-04-25 19:42:24 -07:00
1 parent 5a8e9d8fa8
commit aed152b530
2 files changed
+13

No files matched your search

+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")