# NousResearch/hermes-agent · SSE keepalives not counted by stale-stream watchdog

## Open now

- 1 issue, 2 PRs open on GitHub.
- #151280: \[Bug\]: Stale-stream watchdog ignores SSE comment / \`ping\` keepalives and kills a live chat_completions stream at 240 s (Claude Opus thinking behind an OpenAI-compatible proxy)
- PR #78818: fix(agent): count raw stream bytes (incl. SSE keepalive comments) as codex watchdog activity
- PR #151483: fix(streaming): SSE keepalives stop a thinking model's stream from being killed at the stale timeout (salvage #78818, #34541)

The three members share one theme: a stale-stream watchdog apparently treating SSE comment or ping keepalives (or raw stream bytes) as non-activity, which is reported to end live streams from long-thinking models at a timeout. One is a bug report and two are fix proposals, one for chat_completions streaming and one for the codex watchdog.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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.

## Open related issues

- #151280: \[Bug\]: Stale-stream watchdog ignores SSE comment / \`ping\` keepalives and kills a live chat_completions stream at 240 s (Claude Opus thinking behind an OpenAI-compatible proxy)

## Prior & competing PRs

- **#78818: fix(agent): count raw stream bytes (incl. SSE keepalive comments) as codex watchdog activity**. open
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#151483`, `#151280`
  - files: `agent/chat_completion_helpers.py`, `agent/codex_runtime.py`, `tests/agent/test_codex_stream_byte_activity.py`
- **#151483: fix(streaming): SSE keepalives stop a thinking model's stream from being killed at the stale timeout (salvage #78818, #34541)**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#151280`
  - files: `agent/chat_completion_helpers.py`, `agent/chat_completion_nonstream.py`, `agent/chat_completion_stream_monitor.py`, `agent/codex_runtime.py`, `agent/stream_wire_activity.py`, `tests/agent/test_stream_keepalive_liveness.py`, `website/docs/reference/environment-variables.md`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
- Kind: `bug` (from the open issues' GitHub type labels).
