mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
fix(context): preserve missing-key compression history
This commit is contained in:
parent
202ad1b8c9
commit
577beeb9b9
8 changed files with 251 additions and 17 deletions
8
cli.py
8
cli.py
|
|
@ -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"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue