NousResearch/hermes-agent

Prompt cache affinity key and session ID fixes

Cluster 96811. Data as of

Nothing open on GitHub. Fix merged in #97704 on 29 Aug 2026. Check it covers your case.

The short answer

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

These issues and pull requests address bugs in how conversation affinity keys, prompt cache scopes, and per-response session IDs are generated or rotated, including host-declared key handling, scope isolation, and epoch mixing on new conversation rotation.

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.

  • #97704 fix: P0 batch — five prompt-cache fixes + two desktop persistence fixes (salvage of #97618 #96755 #97327 #96768 #96608 #95886)

    merged to main

    files: agent/bedrock_adapter.py, agent/chat_completion_helpers.py, agent/prompt_cache_boundary.py, agent/prompt_caching.py, agent/transcript_repair.py, agent/transports/chat_completions.py, agent/turn_finalizer.py, apps/desktop/electron/gateway-file-download-transport.test.ts, apps/desktop/electron/gateway-file-download.fs.test.ts, apps/desktop/electron/gateway-file-download.test.ts, apps/desktop/electron/gateway-file-download.ts, apps/desktop/electron/main.ts, apps/desktop/src/app/session/hooks/use-message-stream/index.ts, apps/desktop/src/app/session/hooks/use-message-stream/session-info-side-effects.test.tsx, apps/desktop/src/lib/chat-messages.test.ts, apps/desktop/src/lib/chat-messages/parts.ts, contributors/emails/[redacted:email], contributors/emails/[redacted:email], hermes_state.py, run_agent.py (+7 more)

3 PRs closed without merging

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

  • #96768 test(cache): pin the prompt-cache scope isolation invariant for per-response session ids · merged via another change → #97704
  • #97158 fix(cache): honor the host-declared conversation key on the affinity-key path · other → #96811, #79017, #86733, #97709, #98170
  • #98795 fix(cache): mix conversation epoch into declared scope for /new rotation (#96811) · superseded by another PR → #98811, #96811
Closed issues · 1
  • Closed#96811Per-response session ids churn every conversation-affinity key (prompt_cache_key, sticky session_id, x-grok-conv-id)
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.40: 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

Merged PRs
#97704
Closed issues
1
Attempts
3 PRs closed without merging
Fix link checked
29 Aug 2026

For your agent

The same facts, typed.