mirror of
https://github.com/EKKOLearnAI/hermes-web-ui.git
synced 2026-05-26 22:10:15 +00:00
f1b683d084
- Fix token estimation by removing senderName from calculation to avoid overestimation - Use configurable charsPerToken instead of hardcoded value in countTokens - Increase default charsPerToken from 4 to 6 for more conservative token estimation - Remove unused tail variable in forceCompress method - Consolidate all table initialization into initAllStores function - Set NODE_ENV=production in bin start scripts for correct database path - Update context-engine tests to match new estimation logic This fixes premature compression triggering in group chats. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>