mirror of
https://github.com/affaan-m/ECC.git
synced 2026-12-01 12:15:48 +00:00
The safety-classifier notice filter only covered the mechanical summary. When generateSessionSummary runs (low context or message interval), extractConversationText read the raw transcript and passed the notice to the LLM as a user turn, so it could still reach saved context. Move the check into one shared isClassifierNotice() in scripts/lib/llm-summary.js and use it in both userMessageText() and extractConversationText(). Add LLM-path regression tests, and split the session-end classifier-notice tests into small functions (<50 lines). Refs #3867 Assisted-by: Claude <noreply@anthropic.com>