Fix OOC messages advancing roleplay chat activity - #75
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe listener now counts roleplay activity only for events with a non-null channel whose name matches the configured roleplay channels, without regard to letter case. Tests cover rejected channels, accepted channels, command events, and repeated events. ChangesRoleplay Chat Activity
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to No concrete behavior defect was established in the filter or its tests. The change appears mergeable subject to normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The new channel check narrows roleplay activity credit rather than expanding access. No introduced security issue was established, although the upstream chat plugin’s channel guarantees could not be independently verified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
A rabbit checks the channel names, Comment |
OOC messages could advance the Roleplay Chat activity because ActivityTF handled every CharacterChatEvent without checking its channel. Length and repetition filters made the incorrect credit appear intermittent.
Restrict credit to RPCharacters roleplay channel IDs (rp, whisper, shout, yell, action, scene, dm) before updating progress or repetition history. OOC, staff, unknown and missing channels are ignored for both ordinary chat and commands.
Validation: reproduced the bug with 11 failing channel cases before the fix; all 769 tests pass after the fix, including 26 new event-level regression cases. Java 21
mvn clean verify, artifact validation andgit diff --checkpassed.Summary by CodeRabbit