mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-25 17:18:11 +00:00
Follow-up fixes for the #62625 salvage: - Dedup-reset gap (sweeper review): when the block clears while the context is STILL over threshold, execution enters the compression branch — the PR's 'else' reset never ran, so the warning stayed suppressed forever after the first block. _clear_context_overflow_warn() now fires on every automatic compression path: turn-context preflight, conversation_loop pre-API gate, and the post-tool loop-compaction gate. - should_compress_info on current main: main refactored should_compress into _automatic_compression_blocked()/_locally(); the tuple variant now derives its reason from the same in-memory state via _compression_block_reason(), keeping cooldown:<s>/ineffective shapes. - ContextEngine.should_compress_info ABC default now actually returns (should_compress(tokens), None) — the PR's default had a docstring but no return (returned None, would crash tuple-unpacking call sites). - Below-threshold guard: the turn-context persisted-cooldown branch and the conversation_loop pre-API cooldown branch no longer warn when the estimate is under threshold (should_compress_info returns a None reason; the preflight pre-check is not a threshold guarantee). The pre-API guard also honors compression.max_attempts instead of a hardcoded 3, and no longer fabricates a cooldown reason. - Noise-filter survival (#69550 composition): warning text is now a template constant (CONTEXT_OVERFLOW_BLOCKED_WARNING_TEMPLATE) marked FAILURE-CLASS, pinned un-swallowed in VISIBLE_COMPRESSION_MESSAGES and in new tests that execute the real _TELEGRAM_NOISY_STATUS_RE + _prepare_gateway_status_message. - Contributor mapping for stanislav@local -> sl4m3.
1 line
6 B
Text
1 line
6 B
Text
sl4m3
|