From a4dd08a977f50672cad5173299bfa0914c30499d Mon Sep 17 00:00:00 2001 From: Koho Zheng Date: Fri, 10 Jul 2026 06:05:24 +0800 Subject: [PATCH] fix(session-export): escape html tool call names --- hermes_cli/session_export_html.py | 40 +++++++++++++++++-------- tests/hermes_cli/test_session_export.py | 40 +++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 13 deletions(-) diff --git a/hermes_cli/session_export_html.py b/hermes_cli/session_export_html.py index b35a70907f8..24a5a2bcac0 100644 --- a/hermes_cli/session_export_html.py +++ b/hermes_cli/session_export_html.py @@ -8,7 +8,9 @@ Enhanced with UI-UX-PRO-MAX design intelligence. import json import datetime +import secrets from typing import Any, Dict, List +from urllib.parse import quote # --- Icons (Lucide-style SVGs) --- ICON_USER = '' @@ -26,6 +28,7 @@ HTML_TEMPLATE = """ + {page_title} @@ -566,13 +569,13 @@ HTML_TEMPLATE = """ -