feat(discord): typing indicator, DM support, and online presence#53
Open
RatulMaharaj wants to merge 2 commits into
Open
feat(discord): typing indicator, DM support, and online presence#53RatulMaharaj wants to merge 2 commits into
RatulMaharaj wants to merge 2 commits into
Conversation
…ile the agent works Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three quality-of-life additions to the Discord trigger.
Typing indicator. Opt-in
show_typingoption (defaultfalse). When enabled, the bot postsPOST /channels/{id}/typingas 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 ofreply_channel. Documented as a poor fit withallow_silence, since typing followed by no message looks strange.Direct messages. The gateway identify now requests the
DIRECT_MESSAGESintent, andshouldHandletreats messages without aguild_idas DMs: thechannelsfilter andrequire_mentiongate are skipped (a DM addresses the bot by definition, matching the Slack and Telegram triggers), whilefrom_usersstill applies. Each DM channel gets its ownconversationKey, 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_typingin the example and observer guidance), the config schema descriptions, and the regeneratedschema/agent.json. Unit tests cover the typing loop and the DM filter exemptions.🤖 Generated with Claude Code