Skip to content

feat(discord): persistent typing indicator for DMs#2468

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-5d6932ba
Mar 22, 2026
Merged

feat(discord): persistent typing indicator for DMs#2468
teknium1 merged 1 commit intomainfrom
hermes/hermes-5d6932ba

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Based on PR #2427 by @oxngon (core feature extracted — 61 lines vs original 485+/187- which included formatting churn and unrelated changes).

Discord's TYPING_START gateway event is unreliable for bot DMs. This adds a background typing loop that hits POST /channels/{id}/typing every 8 seconds until the response is sent.

  • send_typing() starts a per-channel background loop (idempotent)
  • stop_typing() cancels it (called after _run_agent returns)
  • Base adapter gets stop_typing() as a no-op default
  • Per-channel _typing_tasks dict prevents duplicate loops
Based on PR #2427 by @oxngon (core feature extracted, reformatting
and unrelated changes dropped).

Discord's TYPING_START gateway event is unreliable for bot DMs. This
adds a background typing loop that hits POST /channels/{id}/typing
every 8 seconds (indicator lasts ~10s) until the response is sent.

- send_typing() starts a per-channel background loop (idempotent)
- stop_typing() cancels it (called after _run_agent returns)
- Base adapter gets stop_typing() as a no-op default
- Per-channel tracking via _typing_tasks dict prevents duplicates
@teknium1 teknium1 force-pushed the hermes/hermes-5d6932ba branch from 46726c6 to ab3cbfc Compare March 22, 2026 11:52
@teknium1 teknium1 merged commit 3037450 into main Mar 22, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant