Skip to content

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

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

teknium1 merged 1 commit into
mainfrom
hermes/hermes-5d6932ba

Conversation

@teknium1

Copy link
Copy Markdown
Collaborator

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
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…5d6932ba

feat(discord): persistent typing indicator for DMs
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…5d6932ba

feat(discord): persistent typing indicator for DMs
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…5d6932ba

feat(discord): persistent typing indicator for DMs
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…5d6932ba

feat(discord): persistent typing indicator for DMs
melon-xf added a commit to melon-xf/hermes-agent that referenced this pull request Sep 3, 2026
…5d6932ba

feat(discord): persistent typing indicator for DMs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant