Repository navigation
Description
🐛 Bug Description | Bug 描述
English: When Hermes sends a message containing a file preview link, the right-rail preview pane automatically opens that file — and this triggers message duplication in the conversation. The current session develops duplicate copies of all assistant messages (each message appears twice or more), without any user action. The user did not click anything; Hermes's own auto-preview mechanism caused the bug.
中文: 当 Hermes 发送包含文件预览链接的消息时,右边栏预览窗格自动打开该文件 —— 此操作触发了对话中的消息重复问题。当前会话产生所有 assistant 消息的重复副本(每条消息出现两次或更多),无需任何用户操作。用户未点击任何内容;是 Hermes 自身的自动预览机制导致了此 bug。
For example: Session ID 20260608_094127_da188d, 20260608_114845_4587ad, 20260608_120227_f018c8 show the same content.

🔁 Steps to Reproduce | 复现步骤
English:
- Open Hermes Desktop 0.16.0 on Windows
- Have an active conversation with the assistant
- Hermes sends a message that includes a file preview link (e.g.,
[Preview: xxx.html]or[Preview: xxx.md]embedded in the assistant's response) - The right-rail preview pane automatically opens the file (no click needed — Hermes auto-triggers it)
- Go back to the conversation
- The conversation now contains duplicate copies of the assistant's messages — each message appears twice or more
- If Hermes sends another message with a preview link, another duplicate set is added
中文:
- 在 Windows 上打开 Hermes Desktop 0.16.0
- 与 assistant 有一个活跃的对话
- Hermes 发送的消息中包含文件预览链接(例如
[Preview: xxx.html]或[Preview: xxx.md],嵌入在 assistant 的回复中) - 右边栏预览窗格自动打开该文件(无需点击 —— Hermes 自动触发)
- 回到对话
- 对话现在包含重复的 assistant 消息副本 —— 每条消息出现两次或更多
- 如果 Hermes 再发送一条包含预览链接的消息,会再增加一组重复副本
📌 Expected Behavior | 期望行为
English: When Hermes sends a message with an auto-preview link, the right-rail should display the file without corrupting the conversation message list. The conversation should remain unchanged; only the preview pane should update.
中文: 当 Hermes 发送带有自动预览链接的消息时,右边栏应显示文件而不损坏对话消息列表。对话应保持不变;只有预览窗格应更新。
❌ Actual Behavior | 实际行为
English: The auto-preview trigger (no user click involved) causes the message list to be duplicated. Each assistant message appears twice in sequence. The session ID stays the same, but the message history is corrupted with duplicate entries. Multiple auto-previews add more duplicate sets. This affects the current session only — other sessions are not merged, but if this session is reopened later, the duplication persists.
中文: 自动预览触发(无用户点击)导致消息列表被重复。每条 assistant 消息按顺序出现两次。会话 ID 保持不变,但消息历史因重复条目而损坏。多次自动预览会增加更多重复副本。仅影响当前会话 —— 其他会话未被合并,但如果稍后重新打开此会话,重复问题仍存在。
🖥 Environment | 环境
| Item | Value |
|---|---|
| Version | Hermes Desktop 0.16.0 |
| Platform | Windows 10 |
| Session IDs | 20260608_120227_f018c8, 20260608_114845_4587ad, 20260608_094127_da188d |
| Trigger File | D:/Hermes/guide/Hermes+CursorCLI协同工作指南.html |
| Trigger Mechanism | Auto-preview: Hermes sent [Preview: Hermes+CursorCLI协同工作指南.html] → right-rail automatically opened file:///D:/Hermes/guide/Hermes+CursorCLI%E5%8D%8F%E5%90%8C%E5%B7%A5%E4%BD%9C%E6%8C%87%E5%8D%97.html without user interaction |
🏷 Labels | 标签建议
type/bug · comp/desktop · platform/windows
Activity
teknium1 commentedon Jul 14, 2026
Thanks for the detailed Windows reproduction. This is already addressed on current
mainby the preview-routing change, so closing as implemented-on-main. Automated hermes-sweeper review.cb17a9efb2dffb35ab5f827f0766d17b94fab91f(fix(desktop): stop auto-opening tool previews) removed gateway-event registration that auto-opened HTML/tool-result previews.apps/desktop/src/app/session/hooks/use-preview-routing.ts:54now restores only a user-opened preview and explicitly does not open previews from tool results.apps/desktop/src/app/session/hooks/use-preview-routing.test.tsx:123verifiestool.completepreview candidates leave both the active preview and persisted preview registry empty.v2026.7.1(and later tags).