NousResearch/hermes-agent

Duplicate inbound user turn persistence fixes

Cluster 104653 · gateway. Data as of

1 open item. Fix merged in #105334 on 7 Sep 2026. Check it covers your case.

The short answer

0open issues
1open PR
6items grouped
Known?
Yes. 6 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #105334. 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
0 issues and 1 PR.

These issues and PRs address a bug where inbound user turns were being persisted twice—once by the gateway and once by the agent flush—sometimes with mismatched platform_message_id values. Fixes span deduplication logic, error recovery paths, and removal of redundant user echo persistence.

Open issues0

No open issues.

Open PRs1

  • PR#79610fix(gateway): platform_message_id 数据库级去重,终止 Telegram 重试循环会话膨胀

Fixes on record

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

  • #104899 fix(codex): accepted inputs no longer appear twice in session history (#104653)

    merged to main

    files: agent/codex_runtime.py, agent/transports/codex_app_server_session.py, evals/codex_echo/README.md, evals/codex_echo/fixture_server.py, evals/codex_echo/probe.py, tests/agent/test_codex_echo_ownership.py, tests/agent/transports/test_codex_app_server_session.py, website/docs/developer-guide/session-storage.md

  • #105334 fix(gateway): error recovery no longer duplicates accepted inputs (#104653)

    merged to main

    files: agent/turn_context.py, evals/gateway_failure_ownership/README.md, evals/gateway_failure_ownership/foreign_writer.py, evals/gateway_failure_ownership/probe.py, gateway/run_turn.py, gateway/run_turn_runner.py, gateway/session_transcript.py, gateway/turn_context.py, hermes_state_messages.py, tests/gateway/test_failure_writer_ownership.py, website/docs/developer-guide/session-storage.md

2 PRs closed without merging

From the close comments: superseded by another PR 1 · won't fix / by design 1

  • #104673 Fix inbound user turns persisted twice (gateway + agent flush) · won't fix / by design → 693641a
  • #104698 fix(codex): drop persisted app-server user echo · superseded by another PR → cd0b5b9, 3114916, #104899, #93546, #105334
Closed issues · 1
  • Closed#104653[Bug]: inbound user turns are persisted twice (gateway + agent flush); platform_message_id is set on one row and NULL on the other
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.33: 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
#104899, #105334
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
7 Sep 2026

For your agent

The same facts, typed.