Files
hermes-agent/tests/agent
Siddharth Balyan cb466998d3 A compression warning no longer shows as a running compaction (#154934)
* fix: only a real compaction shows as compacting in TUI, Desktop and local viewers

Gateways re-tagged any lifecycle status whose text contained "compact" or
"compress" as kind "compacting". Warnings matched too: the "auxiliary
compression provider is unavailable" notice, "Session compressed N times",
and retry lines flushed after a failed turn. Clients then drew a
"Compacting context" indicator for a compaction that never ran, and the
matcher still missed a context engine's reworded progress lines.

The producer now marks compaction progress: COMPACTION_STATUS, the
heartbeat, and every automatic_compaction_status_message() result are
CompactionProgressText, a str subclass in the DiagnosticText idiom.
compaction_status_kind() decides from the mark alone. The TUI gateway
classifies before str() drops it, and the local-viewer path classifies the
producer's object rather than the stripped copy. Status kind and text stay
unchanged for every other consumer.

* fix: compression warnings go out as warnings, not lifecycle statuses

The "auxiliary compression provider is unavailable" and auto-lowered
threshold notices, and "Session compressed N times", told the user to act
but went out as kind "lifecycle". Clients show lifecycle text as a passing
status (a working-line label; Ink logs it as info), so a notice about lost
summaries flashed by. They now use _emit_warning: kind
"warn", the same diagnostic policy, CLI print and text filters.

The first-turn replay of _compression_warning keeps its lifecycle
diagnostic shape, because that slot also carries the informational Codex
autoraise notice.
2026-11-13 16:52:24 +05:30
..
2026-10-20 21:04:30 -04:00