@miller-tech/uap 1.20.46 → 1.20.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -812,7 +812,12 @@ class SessionMonitor:
|
|
|
812
812
|
turns_str = f"~{turns} turns remaining" if turns is not None else "unknown"
|
|
813
813
|
|
|
814
814
|
if warning == "CRITICAL":
|
|
815
|
-
|
|
815
|
+
# WARNING, not ERROR: critical context utilization is a *handled*
|
|
816
|
+
# condition — the proxy force-prunes and the session continues.
|
|
817
|
+
# Logging it at ERROR floods the error stream (100+/2h for a few
|
|
818
|
+
# context-saturated agentic sessions) and drowns genuine failures.
|
|
819
|
+
# CONTEXT HIGH below is already WARNING; this keeps parity.
|
|
820
|
+
logger.warning(
|
|
816
821
|
"CONTEXT CRITICAL: %d/%d tokens (%.1f%%), %s, pruned=%d, overflows=%d",
|
|
817
822
|
self.last_input_tokens,
|
|
818
823
|
self.context_window,
|