fix(auto-reply): Hide message_id and sender metadata in direct chats#24359
Closed
jd316 wants to merge 4 commits intoopenclaw:mainfrom
Closed
fix(auto-reply): Hide message_id and sender metadata in direct chats#24359jd316 wants to merge 4 commits intoopenclaw:mainfrom
jd316 wants to merge 4 commits intoopenclaw:mainfrom
Conversation
Contributor
Author
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.
Hides message_id, message_id_full, conversation_label, and sender metadata in direct chats to prevent untrusted metadata from cluttering the DM UI.
Scope
Limited to auto-reply only (2 files):
Closes #22054
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Greptile Summary
Hides
message_id,message_id_full,reply_to_id,sender_id,conversation_label, and sender identifier in direct chats andopenclaw-control-uicontexts to prevent untrusted metadata from cluttering DM interfaces.buildInboundUserContextPrefix()to conditionally hide all per-message and sender metadata whenisDirectis trueisDirectlogic to includeopenclaw-control-uisender ID (internal control interface)ChatType: "direct"to"group"in tests that expect metadata to be presentopenclaw-control-uispecial case behaviorConfidence Score: 5/5
isDirectflag. Test fixes are legitimate (tests expecting metadata must use group chats, not direct). New test coverage foropenclaw-control-uispecial case. No edge cases or error paths missed.Last reviewed commit: 7dc0351
(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!