fix(discord): ignore thread recap system messages (#230) - #239
Conversation
Filter Discord message types so thread-creation recaps (type 18) do not trigger Claude on the parent channel. Fixes moazbuilds#230. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Note on the failing The check shows as SUCCESS in the rollup because the workflow exits 0 on auth failure — but mergeStateStatus is UNSTABLE. This is a repo-side secret configuration issue, not a problem with the PR code. Happy to address any actual code feedback. |
TerrysPOV
left a comment
There was a problem hiding this comment.
Reviewed — fix is clean. Enum + filter placement is correct (after bot-author check, before auth); no code concerns.
Heads-up: byte-identical to #235 (azaz44, draft) and the bumps to 1.0.40 are now stale since #233 landed master at 1.0.40 — version-guard will need 1.0.41 on rebase. Thanks for the parallel implementation @rudi193-cmd.
Summary
Fixes #230.
Discord emits system messages (e.g. type 18 thread-creation recap) on the parent channel when a thread is created. Those were routed through
handleMessageCreateand could trigger spurious Claude prompts.Only process regular messages (type 0) and replies (type 19). Bump plugin/marketplace version to 1.0.40 per contributor guidelines.
Note: #235 implements the same filter; this PR is rebased on current
masterfromrudi193-cmdin case maintainers prefer a fresh branch. Happy to close in favor of #235 if that lands first.Test plan
Made with Cursor