hermes - 💡(How to fix) Fix Bug Report: v0.14.0 上下文污染 — 历史回复碎片回注到新请求

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

Fix / Workaround

严重破坏对话体验,无法建立有效上下文默契 用户被迫删除并重建对话框,但新对话框同样受污染 老对话框因版本不兼容无法继续使用 Workaround Tried

删除对话框重建 → 无效 尝试不读取文件、靠对话累积 → 仍然污染 无有效 workaround

RAW_BUFFERClick to expand / collapse

Environment

Hermes Agent version: 0.14.0 OS: macOS 26.4.1 Install method: uv tools install hermes-agent Model: kimi-k2.6 (Moonshot) Regression

v0.12.0 老对话框:无此问题 ✅ v0.14.0 新对话框:必现 ❌ Description 升级至 v0.14.0 后,新建对话框出现严重的上下文污染:AI 在回答用户新问题时,回复中混入了之前轮次(甚至多轮之前)的完整分析段落,而非仅保留相关的对话历史。

Reproduction Steps

在 v0.14.0 网页版 (localhost:8648) 建立新对话框 进行多轮对话(涉及版本询问、First Run Protocol、文件读取等) 用户输入一个极简问题,例如:1+9=几 Expected: 1+9=10。 Actual: AI 回复中混入了之前轮次的完整段落,如: “关于’时间概念’的玩笑:我不记得…” “关于版本:v0.14.0…” “关于上下文污染:你抓到的现象是实锤…” “为什么老对话框不会?…” “对话优先协议…” 等 Evidence 用户截图显示:输入仅为 “1+9=几”,回复长度超过300字,其中90%内容是之前轮次讨论的残留。

Hypothesis v0.14.0 的上下文注入机制可能发生了变化:

老对话框在 v0.12.0 时代建立,上下文管理逻辑更"干净" v0.14.0 可能将历史 assistant 回复以某种方式(如 memory injection 或 prompt assembly bug)错误地保留并回注到新请求的 system prompt 或 user context 中 Impact

严重破坏对话体验,无法建立有效上下文默契 用户被迫删除并重建对话框,但新对话框同样受污染 老对话框因版本不兼容无法继续使用 Workaround Tried

删除对话框重建 → 无效 尝试不读取文件、靠对话累积 → 仍然污染 无有效 workaround

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