From 66c5099b3140827fcd605dba238cae9950ead34a Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Sat, 26 Sep 2026 18:27:54 +0530 Subject: [PATCH] docs(sessions): note same-id recreate when deleting a live session MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A session deleted while its chat is still running is recreated under the same id with the full in-memory transcript on the next save (the gateway session-key mapping expects the id to be stable). Say so next to `hermes sessions delete`, in English and the zh-Hans mirror. Fixes #123583 Co-authored-by: 赵桂雄 --- website/docs/user-guide/sessions.md | 2 ++ .../current/user-guide/sessions.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/website/docs/user-guide/sessions.md b/website/docs/user-guide/sessions.md index 6362ff984a..40c352556e 100644 --- a/website/docs/user-guide/sessions.md +++ b/website/docs/user-guide/sessions.md @@ -468,6 +468,8 @@ hermes sessions delete 20250305_091523_a1b2c3d4 hermes sessions delete 20250305_091523_a1b2c3d4 --yes ``` +Deleting a session that is still open in a running chat does not stop that chat: its next save recreates the session under the same id with the full in-memory transcript. Close the chat first if you want the session gone. + ### Rename a Session ```bash diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md index 0c82602f6d..07c4e9eed3 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md @@ -382,6 +382,8 @@ hermes sessions delete 20250305_091523_a1b2c3d4 hermes sessions delete 20250305_091523_a1b2c3d4 --yes ``` +删除一个仍在运行中的对话所使用的 session 并不会结束该对话:它下一次保存时会以同一个 id 重建 session,并写入完整的内存中对话记录。如果希望该 session 彻底消失,请先关闭对话。 + ### 重命名 Session ```bash