refactor(gateway): derive the compacting noisy-status match from the templates

Replaces the hand-transcribed regex fragment with re.escape of COMPACTION_STATUS
and COMPACTION_HEARTBEAT_STATUS, matching the COMPACTION_DONE_STATUS precedent
two lines down, so wording drift cannot desync the chat-platform gate.
This commit is contained in:
kshitijk4poor
2026-09-03 04:53:51 +05:30
committed by kshitij
parent c41525b290
commit 25caae02c0
+2 -1
View File
@@ -132,7 +132,8 @@ _TELEGRAM_NOISY_STATUS_RE = re.compile(
r"|auto-lowered\s+(?:this\s+)?session'?s?\s+threshold"
r"|configured\s+auxiliary\s+compression\s+provider\s+.+\s+unavailable"
r"|skipping\s+concurrent\s+compression"
r"|compacting\s+context\s+[—-]\s+(?:still\s+)?summarizing\s+earlier\s+conversation"
rf"|{re.escape(COMPACTION_STATUS)}"
rf"|{re.escape(COMPACTION_HEARTBEAT_STATUS)}"
r"|resumed\s+after\s+\d+s\s+idle\s+[—-]\s+compacting"
r"|preflight\s+compression"
r"|pre[- ]api\s+compression"