fix(backend): remove verbose message trimming logs

Removes the console.log spam that was triggered on every incoming chat message
when the store exceeded MAX_REGULAR_MESSAGES. The trimming logic still works
silently in the background.
This commit is contained in:
Yusuf İpek
2025-11-07 20:04:45 +03:00
parent 311b5f392b
commit 0ae6014886
2 changed files with 1 additions and 4 deletions
+1
View File
@@ -27,6 +27,7 @@ node_modules/
*.njsproj
*.sln
*.sw?
.codellm
# OS specific
# Task files and project management
-4
View File
@@ -441,10 +441,6 @@ function trimMessages(store: ChatMessage[]): void {
// Replace store contents
store.length = 0;
store.push(...newStore);
const newRegularCount = regularCount - toRemove;
const specialCount = specialIndices.length;
console.log(`[Backend] Trimmed ${toRemove} regular messages. Now: ${newRegularCount} regular + ${specialCount} special = ${store.length} total`);
}
}