NousResearch/hermes-agent

Gateway context pin reuse bug after eviction/wake

Cluster 131031 · gateway. Data as of

Nothing open on GitHub. Fix merged in #139865 on 16 Oct 2026. Check it covers your case.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #139865. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #139865. That is separate from the fix event.
Still open
Nothing open on GitHub.

A bug where internal wakes following eviction, stop, undo, or model changes cause the session-context prompt to be re-rendered incorrectly, breaking prefix cache state. The cluster covers the bug report and related fix attempts addressing context pin rehydration.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #139865 fix(gateway): synthetic goal/heartbeat turns and post-eviction wakes keep the system prompt byte-stable (#126109, #131031, salvage #131032 #126155)

    merged to main

    files: gateway/platforms/event.py, gateway/run_agent_cache.py, gateway/run_busy.py, gateway/run_goals.py, gateway/run_turn.py, gateway/run_turn_prepare.py, gateway/session_envelope.py, gateway/slash_commands_goals.py, tests/gateway/test_internal_event_pin_wiring.py, tests/gateway/test_queue_consumption.py

2 PRs closed without merging

From the close comments: superseded by another PR 1 · other 1

  • #131032 fix(gateway): a wake after an agent eviction reuses the session-context pin · other → 5ba9d1f, 51609d8
  • #132290 fix(gateway): rehydrate context pin for internal wakes after eviction (fixes #131031) · superseded by another PR → 3bc8fb2, 7533bd2, f5a9361, 620ceb8, 5ba9d1f, 357f51c, cebeaef, 69c1276, #131031, #131032, #172554, #126167, #127208, #126137, #131118
Closed issues · 1
  • Closed#131031[Bug]: gateway: an internal wake after /stop, /undo or /model re-renders the session-context prompt and breaks the prefix cache twice (A→B→A)
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.50: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
gateway
Merged PRs
#139865
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
16 Oct 2026

For your agent

The same facts, typed.