docs(sessions): note same-id recreate when deleting a live session
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: 赵桂雄 <daniel21436@hotmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -382,6 +382,8 @@ hermes sessions delete 20250305_091523_a1b2c3d4
|
||||
hermes sessions delete 20250305_091523_a1b2c3d4 --yes
|
||||
```
|
||||
|
||||
删除一个仍在运行中的对话所使用的 session 并不会结束该对话:它下一次保存时会以同一个 id 重建 session,并写入完整的内存中对话记录。如果希望该 session 彻底消失,请先关闭对话。
|
||||
|
||||
### 重命名 Session
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user