hermes - 💡(How to fix) Fix [Bug]: Bug Report: Hermes Agent 桌面端输入截断

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…

Error Message

Additional Logs / Traceback (optional)

Root Cause

Root Cause Analysis (optional)

Code Example

用户(实际输入): 你现在是什么模型?
模型(实际收到): 你现在是

模型回复:
> 你的消息似乎还没说完 —— "你现在是" 后面想说什么?是想让我扮演某个角色、
> 切换某种模式,还是有其他需求?请继续说下去,我准备好了。

用户:
> 你看,即使更新之后,你还是会吃我的字,你发现了吗?

(此后才发现模型收到的内容被截断,用户澄清完整输入为"你现在是什么模型?"
---

msg='可以帮我在F'

---

[hermes debug share: log content redacted at upload time]
--- hermes dump ---
version:          0.15.1 (2026.5.29) [66a6b9c9]
os:               Windows 10 AMD64
python:           3.11.15
model:            deepseek-v4-pro
provider:         deepseek
terminal:         local

--- agent.log 截断证据 ---
msg='你现在是什么模型'     ← 用户实际输入应为"你现在是什么模型?"(缺问号)
msg='可以帮我在F'          ← 明显截断,后半段丢失

---

Report https://paste.rs/1PFUE
agent.log https://paste.rs/u9JcO
desktop.log https://paste.rs/3RTb5

---
RAW_BUFFERClick to expand / collapse

Bug Description

Bug Report: Hermes Agent 桌面端输入截断

环境信息

项目内容
Hermes 版本v0.15.1 (commit 66a66b9c)
平台Windows 桌面端
模型 / Providerdeepseek-v4-pro / DeepSeek
操作系统Windows 10
输入法微软拼音

问题描述

在桌面端 Hermes Agent 中输入并发送消息后,模型实际收到的内容被截断,只保留了前半部分字符,后半部分丢失。截断在不同消息中均有发生,非偶发。


复现实例

#用户实际输入模型实际收到丢失内容
1你现在是什么模型?你现在是什么模型?(5 字)
2(用户另一条消息)可以帮我在F后半段丢失(debug 日志证实)

注意: 实例 2 来自 /debug 日志中捕获的 agent.log,日志记录的消息就是截断后的版本,说明截断发生在消息到达 agent 循环之前(即客户端发送阶段)。


对话日志

实例 1(用户可感知)

用户(实际输入): 你现在是什么模型?
模型(实际收到): 你现在是

模型回复:
> 你的消息似乎还没说完 —— "你现在是" 后面想说什么?是想让我扮演某个角色、
> 切换某种模式,还是有其他需求?请继续说下去,我准备好了。

用户:
> 你看,即使更新之后,你还是会吃我的字,你发现了吗?

(此后才发现模型收到的内容被截断,用户澄清完整输入为"你现在是什么模型?")

实例 2(日志证据)

来自 /debugagent.log,第 3 条用户消息记录为:

msg='可以帮我在F'

明显后半段丢失(用户意图是请求在 F 盘创建文件夹等操作)。


行为分析

  1. 用户在输入框中完整输入中文消息,正常发送
  2. 消息在客户端发送阶段即被截断,模型/agent 循环从未收到完整内容
  3. 截断无固定规律 —— 可能丢失 2~5 个字符,也可能丢失更多
  4. 中文输入法(微软拼音)可能是触发因素之一
  5. 模型误判为用户话没说完,产生追问行为,影响体验

关键发现:日志即截断

/debugagent.log 记录的 msg 字段本身就是截断后的版本。这说明截断发生在消息进入 agent 循环 之前,极有可能是桌面端 UI → 后端传输或输入法提交文本的环节出了问题,而非 LLM API 侧截断。


补充说明

  • 发送方式: 正常输入完成后发送(非输入法中间态、非意外触发)
  • 发生时机: 多条消息均有触发,非偶发
  • 是否每次复现: 待验证(目前约 50% 的消息出现截断)
  • 输入法: 微软拼音

附加信息

Debug 报告链接: https://paste.rs/oTvRn

Debug 日志关键摘录:

[hermes debug share: log content redacted at upload time]
--- hermes dump ---
version:          0.15.1 (2026.5.29) [66a6b9c9]
os:               Windows 10 AMD64
python:           3.11.15
model:            deepseek-v4-pro
provider:         deepseek
terminal:         local

--- agent.log 截断证据 ---
msg='你现在是什么模型'     ← 用户实际输入应为"你现在是什么模型?"(缺问号)
msg='可以帮我在F'          ← 明显截断,后半段丢失

截图: (待补充)

Steps to Reproduce

on the repoet

Expected Behavior

Fix it!!!!

Actual Behavior

Bug Report: Hermes Agent 桌面端输入截断

Affected Component

Agent Core (conversation loop, context compression, memory)

Messaging Platform (if gateway-related)

No response

Debug Report

Report https://paste.rs/1PFUE
agent.log https://paste.rs/u9JcO
desktop.log https://paste.rs/3RTb5

Operating System

Windows 10

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

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