hermes - 💡(How to fix) Fix [feature] 系统级时间戳注入,避免 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…

Fix Action

Fix / Workaround

用户侧 workaround

RAW_BUFFERClick to expand / collapse

问题描述

Agent 生成时间戳时依赖上下文中的上一次 date 命令结果进行估算,而非每轮查询真实系统时间。在长对话/多轮 tool call 链中,时间戳偏差随时间累积,实测可达 29 分钟。

根因

  • Agent 只在对话早期跑一次 date,后续全靠估算
  • session restore 时不感知前后会话之间的真实时间间隔
  • 当前无系统级时间注入机制,依赖 Agent 自觉调用 date
  • memory 规则在 long tool call chain 中会被跳过(概率采样)

建议修复

在 transport/bus 层添加 current_timestamp 字段,自动注入到每一轮 prompt。

系统级注入的优势:

  • 更可靠,不依赖 Agent 行为
  • 不消耗额外 token(不需要 terminal 调用)
  • 不受 session restore 影响

用户侧 workaround

用户已通过 cron(每1分钟) + no_agent 脚本写时间缓存文件解决。但对大多数用户不可见,建议默认可开。

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