# NousResearch/hermes-agent · Gateway session.replay_gap handling when clients fall behind

## Open now

- Nothing open on GitHub.

These members appear to concern clients that fall behind or reconnect and how \`session.replay_gap\` is handled by the gateway and CLI. One reports the CLI hanging on later turns after a replay gap was treated as a turn failure, and another proposes re-attaching instead of ending the turn in error; the outcome is not established by the titles.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #140968. Verify it addresses your case.
- **Recommended:** read PR #140968 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member 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.

## Closed / duplicate issues

- #140388: CLI hangs on every later turn after it falls behind a long answer (session.replay_gap treated as a failed turn)

## Prior & competing PRs

- **#140968: Clients that fall behind, reconnect or wait recover from the gateway instead of failing the turn (package 10 lane 2)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `acp_adapter/gateway_reply.py`, `acp_adapter/gateway_server.py`, `agent/session_persistence.py`, `apps/desktop/src/app/chat/session-tile-actions.ts`, `apps/desktop/src/app/session/hooks/use-prompt-actions/owner-forward.test.tsx`, `apps/desktop/src/app/session/hooks/use-prompt-actions/submit.ts`, `apps/desktop/src/app/session/hooks/use-prompt-actions/utils.ts`, `apps/desktop/src/i18n/en.ts`, `apps/desktop/src/i18n/overlay-gaps.json`, `apps/desktop/src/lib/error-surface.ts`, `apps/shared/src/gateway-contract.generated.ts`, `apps/shared/src/gateway-contract.openrpc.json`, `gateway/platforms/api_server.py`, `gateway/platforms/api_server_bot_chat.py`, `gateway/run_turn_persistence.py`, `gateway/run_turn_progress.py`, `gateway/run_turn_runner.py`, `gateway/session_api_turn.py`, `gateway/session_authority.py`, `gateway/session_automation.py` (+45 more)
- **#140389: fix(gateway): re-attach after session.replay_gap instead of failing the turn**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `f0892ef9b11`, `#140968`

## Fix status

- Merged to main in PR #140968 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-18`.
- Subsystem: `gateway`
