hermes - 💡(How to fix) Fix [bug] hermes update 过程中对话上下文丢失 [3 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

问题描述

在消息网关场景下,执行 hermes update 升级时,升级前后的对话上下文丢失——Agent 不知道升级已经完成,也不知道之前聊了什么。

根因

hermes update 的执行路径与主会话分离:升级消息记录在升级子进程的上下文中,gateway 重启后加载旧的 session transcript,不包含升级期间的对话。

复现步骤

  1. 通过消息网关使用 Hermes(微信/Telegram/Discord 等)
  2. 发送"升级 hermes"
  3. 安全拦截后回复 /approve
  4. 等待升级完成(hermes update 拉代码 + 重启 gateway)
  5. 后续消息 → Agent 不知升级已发生

建议修复

hermes update 流程中增加上下文连续性保证:

  • 方案 A(推荐):升级前将 last_context_summary 写入 session 元数据,重启后首次加载时注入 system prompt
  • 方案 B:升级完成后主动发 system 消息到 session transcript
  • 方案 C:升级期间对话完整写入 transcript,重启后直接恢复

环境

  • 网关:WeChat (iLink Bot)
  • 版本:v0.13.0 → v0.14.0
  • session 存储:JSONL transcript

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [bug] hermes update 过程中对话上下文丢失 [3 pull requests]