hermes - 💡(How to fix) Fix Session resume can replay prior assistant/tool context instead of answering exact-output prompt

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…
RAW_BUFFERClick to expand / collapse

A resumed Hermes CLI session appeared contaminated and failed an exact-output prompt.

Affected session:
- id: 20260516_154225_8198ef
- source: cli
- title: Hermes Codex Leak Debugging

Clean control session:
- id: 20260516_154910_651183

Observed behavior:
- Fresh one-shot with memory forced off returned clean.
- Fresh one-shot default returned clean.
- Known clean resumed session returned clean.
- Resuming affected session did not return the requested exact token and instead emitted prior assistant debugging instructions.
- The affected session has now been deleted.

Relevant DB metadata:
- state DB: ~/.hermes/state.db
- first affected rows:
  - 23538 user length 2408
  - 23539 assistant length 0, tool_calls length 262
  - 23540 tool length 43691
- first tool call name: skill_view

Safety note:
Raw internal/context body is intentionally omitted. If needed, I can provide sanitized metadata-only diagnostics. SUPPRESSED-BLOCK appeared.

Expected behavior:
A resumed session should answer the current user prompt normally or fail safely. It should not replay prior assistant/tool/debugging context as visible assistant output.

Impact:
This appears session-local based on current tests, but it is a context-boundary leak class with possible privacy/security impact if raw prompt, memory, or tool output is exposed.

Requested investigation:
Please check resume/session hydration around assistant messages with empty content plus tool_calls, tool result reinjection, skill_view tool results, and any sanitizer boundary between stored tool output and visible final assistant output

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 Session resume can replay prior assistant/tool context instead of answering exact-output prompt