From f1b080b91d614bb36ebe49e4bbaa19edcea900eb Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 2 Sep 2026 23:52:56 -0700 Subject: [PATCH] refactor(hermes_cli): markdown single-export summary line --- hermes_cli/sessions_cmd.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hermes_cli/sessions_cmd.py b/hermes_cli/sessions_cmd.py index 3cd6817094..da5c2c3c12 100644 --- a/hermes_cli/sessions_cmd.py +++ b/hermes_cli/sessions_cmd.py @@ -506,10 +506,9 @@ def _export_markdown_single(db, args, export_one, output_dir, lineage_is_logical return exported_items.append((data, exported_path)) message_count = sum(len(data.get("messages") or []) for data, _path in exported_items) - suffix = "" if message_count == 1 else "s" n = len(exported_items) - where = exported_items[0][1] if n == 1 else output_dir - print(f"Exported {n} session{'' if n == 1 else 's'} ({message_count} message{suffix}) to {where}") + print(f"Exported {n} session{'' if n == 1 else 's'} ({message_count} message{'' if message_count == 1 else 's'}) " + f"to {exported_items[0][1] if n == 1 else output_dir}") if not args.delete_after_verified: return for data, exported_path in exported_items: