fix(context): preserve missing-key compression history

This commit is contained in:
Gille
2026-07-15 14:20:42 -06:00
committed by kshitij
parent 202ad1b8c9
commit 577beeb9b9
8 changed files with 251 additions and 17 deletions
+7 -1
View File
@@ -9641,8 +9641,14 @@ class HermesCLI(CLIAgentSetupMixin, CLICommandsMixin):
self.conversation_history,
approx_tokens,
new_tokens,
compression_state=getattr(
self.agent, "context_compressor", None
),
)
icon = "🗜️" if summary["noop"] else "✅"
if summary.get("aborted") or summary.get("fallback_used"):
icon = "⚠️"
else:
icon = "🗜️" if summary["noop"] else "✅"
print(f" {icon} {summary['headline']}")
print(f" {summary['token_line']}")
if summary["note"]: