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:
+2
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user