Skip to content

The agent that grows with you

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

kshitijk4poor25caae02c020
diff --git a/gateway/run.py b/gateway/run.py
index 267cd6d3d7b..36f7cf75eed 100644
--- a/gateway/run.py
+++ b/gateway/run.py
@@ -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"