Skip to content

fix(signal): track SSE keepalive comments as connection activity#3316

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-dd753a5f
Mar 27, 2026
Merged

fix(signal): track SSE keepalive comments as connection activity#3316
teknium1 merged 1 commit intomainfrom
hermes/hermes-dd753a5f

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

signal-cli sends SSE comment lines (:) as keepalives every ~15s. The SSE listener only counted data: lines as activity, so the health monitor reported false Signal: SSE idle for 120s warnings every 2 minutes during quiet periods.

Recognize : lines as valid connection activity per the SSE spec, updating _last_sse_activity to suppress false idle warnings. Genuine connection drops are still detected (no keepalives = no activity updates).

Salvaged from #2938 by @ticketclosed-wontfix.

Tests: 33 Signal gateway tests passed.

signal-cli sends SSE comment lines (':') as keepalives every ~15s. The
SSE listener only counted 'data:' lines as activity, so the health
monitor reported false idle warnings every 2 minutes during quiet
periods. Recognize ':' lines as valid activity per the SSE spec.

Salvaged from PR #2938 by ticketclosed-wontfix.
@teknium1 teknium1 merged commit 867eefd into main Mar 27, 2026
1 of 2 checks passed
StreamOfRon pushed a commit to StreamOfRon/hermes-agent that referenced this pull request Mar 29, 2026
…sResearch#3316)

signal-cli sends SSE comment lines (':') as keepalives every ~15s. The
SSE listener only counted 'data:' lines as activity, so the health
monitor reported false idle warnings every 2 minutes during quiet
periods. Recognize ':' lines as valid activity per the SSE spec.

Salvaged from PR NousResearch#2938 by ticketclosed-wontfix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant