From 0ae60148860f36d26a17dd48cb1ad24117f6853e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=C4=B0pek?= Date: Fri, 7 Nov 2025 20:04:45 +0300 Subject: [PATCH] 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. --- .gitignore | 1 + backend/src/index.ts | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5230746..2022aeb 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ node_modules/ *.njsproj *.sln *.sw? +.codellm # OS specific # Task files and project management diff --git a/backend/src/index.ts b/backend/src/index.ts index 3dbcd1e..2603074 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -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`); } }