From 1b2d4f21f321a10e9a23200e841e2e06b4f361a5 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sat, 28 Mar 2026 14:54:53 -0700 Subject: [PATCH] feat(cli): show resume-by-title command in exit summary (#3607) When exiting a session that has a title (auto-generated or manual), the exit summary now also shows: hermes -c "Session Title" alongside the existing hermes --resume command. Also adds the title to the session info block. --- cli.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cli.py b/cli.py index 86ee7695bf1..bab7b28eeb4 100644 --- a/cli.py +++ b/cli.py @@ -5891,10 +5891,22 @@ class HermesCLI: else: duration_str = f"{seconds}s" + # Look up session title for resume-by-name hint + session_title = None + if self._session_db: + try: + session_title = self._session_db.get_session_title(self.session_id) + except Exception: + pass + print("Resume this session with:") print(f" hermes --resume {self.session_id}") + if session_title: + print(f" hermes -c \"{session_title}\"") print() print(f"Session: {self.session_id}") + if session_title: + print(f"Title: {session_title}") print(f"Duration: {duration_str}") print(f"Messages: {msg_count} ({user_msgs} user, {tool_calls} tool calls)") else: