fix(discord): add typing indicator toggle - #22086
Closed
DevZenPro wants to merge 1 commit into
Closed
Conversation
DevZenPro
force-pushed
the
fix/discord-typing-toggle
branch
from
May 8, 2026 23:07
f312a68 to
0eaa3ef
Compare
Contributor
|
Superseded by #55394 (merged to main, commit 05ac167). That PR adds a generic per-platform typing_indicator flag at the shared _keep_typing spawn site, which covers Discord — the same key now works for every platform, so set typing_indicator: false under your discord platform config. Thanks for raising this first (May 8) — credited in the merged PR. |
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.
Summary
DISCORD_TYPINGenvironment toggle for Discord typing indicatorsdiscord.typingfromconfig.yamltoDISCORD_TYPING, matching the existingauto_thread/reactionspatternIntent / context
Discord typing indicators are cosmetic, but they hit the Discord REST route:
POST /channels/{channel_id}/typingIn live gateway usage, repeated typing refreshes during long-running agent responses can contribute to Discord 429/resource-rate-limit behavior, especially when combined with auto-thread creation and reaction add/remove calls. Once Discord starts returning 429s, retries/reconnects can make the bot appear silent or unstable even though message handling itself is fine.
This change lets operators disable only the typing indicator traffic while keeping Discord message replies working normally:
or:
The default remains unchanged: typing indicators stay enabled unless explicitly disabled with
false,0, orno.Test plan
python -m pytest tests/e2e/test_discord_typing_config.py tests/gateway/test_discord_slash_commands.py::test_discord_typing_config_bridge -q -o 'addopts='