mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-08 13:12:08 +00:00
feat(cli): filter internal session_meta messages from HTML export
This commit is contained in:
parent
ab07e06521
commit
b172e03c20
1 changed files with 5 additions and 0 deletions
|
|
@ -652,6 +652,11 @@ def _generate_messages_html(messages: List[Dict[str, Any]]) -> str:
|
|||
html_list = []
|
||||
for i, msg in enumerate(messages):
|
||||
role = msg.get("role", "unknown")
|
||||
|
||||
# Skip internal metadata messages
|
||||
if role == "session_meta":
|
||||
continue
|
||||
|
||||
content = msg.get("content") or ""
|
||||
timestamp = _format_timestamp(msg.get("timestamp", 0))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue