Add files via upload

This commit is contained in:
2026-01-02 09:10:13 +08:00
committed by GitHub
parent 2f5aea445f
commit c65a607dc4
6 changed files with 894 additions and 156 deletions

View File

@@ -85,7 +85,7 @@ ${taskState.getPromptContext()}
shouldSummarize(history, tokenCount, maxTokens) {
const tokenUsageRatio = tokenCount / maxTokens;
if (tokenUsageRatio > 0.7) return true;
if (history.length > 15) return true;
if (history.length > 35) return true;
return false;
}
}