fix(group-chat): default visibleReplies to automatic, not message_tool_only#77808
fix(group-chat): default visibleReplies to automatic, not message_tool_only#77808Marvinthebored wants to merge 1 commit into
Conversation
…ge_tool_only resolveSourceReplyDeliveryMode inverted the guard condition, making "automatic" the only explicit opt-in and treating every unconfigured group/channel turn as message_tool_only. This silently broke Discord guild channels, Telegram groups, and WhatsApp groups for any install that did not have messages.groupChat.visibleReplies explicitly set — the bot would receive and process messages but never post a reply. Fix: only return message_tool_only when the config explicitly sets the mode to "message_tool"; leave undefined (the common case) as automatic. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. Source inspection on current main shows empty-config group/channel turns resolve to Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Preserve the current tool-only default; if maintainers want a narrower visible-reply exception, handle it as a product-approved policy change with docs, changelog, live proof, and alignment with related PR #75327. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection on current main shows empty-config group/channel turns resolve to Is this the best way to solve the issue? No. This is not the narrowest maintainable fix because it turns a documented privacy default into automatic public delivery; any change here needs an explicit product/privacy decision and matching docs/changelog. Full review comments:
Overall correctness: patch is incorrect Security concerns:
Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 70d92b5e59df. |
|
Closing — the reviewer is correct. The |
Summary
resolveSourceReplyDeliveryModehad an inverted guard: it treated"automatic"as the only opt-in and silently mapped every unconfigured group/channel turn tomessage_tool_onlymessages.groupChat.visibleRepliesexplicitly set — the default for most users — had automatic replies suppressed in Discord guild channels, Telegram groups, and WhatsApp groupsRoot cause (
src/auto-reply/reply/source-reply-delivery-mode.tsline 26):Workaround for affected users on 5.4:
Test plan
source-reply-delivery-mode.test.tsto assertautomaticfor unconfigured group/channel turns"message_tool"opt-in and"automatic"override are unchanged and still pass🤖 Generated with Claude Code