Skip to content

feat(discord): typing indicator, DM support, and online presence#53

Open
RatulMaharaj wants to merge 2 commits into
mainfrom
feat/discord-typing-indicator
Open

feat(discord): typing indicator, DM support, and online presence#53
RatulMaharaj wants to merge 2 commits into
mainfrom
feat/discord-typing-indicator

Conversation

@RatulMaharaj

@RatulMaharaj RatulMaharaj commented Jul 5, 2026

Copy link
Copy Markdown
Member

Three quality-of-life additions to the Discord trigger.

Typing indicator. Opt-in show_typing option (default false). When enabled, the bot posts POST /channels/{id}/typing as soon as a message passes the filters and re-fires it every 8 seconds (the indicator expires after ~10 s), stopping when the run finishes. Failures are swallowed — the indicator is cosmetic and never breaks a run. It always shows in the source channel, regardless of reply_channel. Documented as a poor fit with allow_silence, since typing followed by no message looks strange.

Direct messages. The gateway identify now requests the DIRECT_MESSAGES intent, and shouldHandle treats messages without a guild_id as DMs: the channels filter and require_mention gate are skipped (a DM addresses the bot by definition, matching the Slack and Telegram triggers), while from_users still applies. Each DM channel gets its own conversationKey, so DM history stays separate from channel history.

Online presence. The identify payload now carries an explicit presence: online, so the bot reads as online for as long as the gateway connection is up.

Also updates docs/discord.mdx (new Direct messages section, show_typing in the example and observer guidance), the config schema descriptions, and the regenerated schema/agent.json. Unit tests cover the typing loop and the DM filter exemptions.

🤖 Generated with Claude Code

RatulMaharaj and others added 2 commits July 5, 2026 23:15
…ile the agent works

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@RatulMaharaj RatulMaharaj changed the title feat(discord): typing indicator while the agent works feat(discord): typing indicator, DM support, and online presence Jul 5, 2026
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