feat(discord): include reply and forwarded message context in prompt#183
Open
BCDel89 wants to merge 2 commits intomoazbuilds:masterfrom
Open
feat(discord): include reply and forwarded message context in prompt#183BCDel89 wants to merge 2 commits intomoazbuilds:masterfrom
BCDel89 wants to merge 2 commits intomoazbuilds:masterfrom
Conversation
When a user replies to a message, the referenced message's author and content are injected into the prompt as "[In reply to <user>]: <text>". When a user forwards a message (message_reference.type=1), the snapshot content is injected as "[Forwarded message from <user>]: <text>". Attachments on either are noted by filename but not downloaded. Closes BCD-89 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
TerrysPOV
requested changes
May 3, 2026
Collaborator
TerrysPOV
left a comment
There was a problem hiding this comment.
Reviewed the current PR head against master. I did not find any blocking issues.
The reply and forwarded-message context is added only as prompt context, and referenced/forwarded attachments are noted by filename without being downloaded, which keeps the change appropriately scoped.
Local validation passed: git diff --check origin/master...HEAD, bun install, bun test, and bunx tsc --noEmit --pretty false.
Looks merge-ready from my side and will go in with the next cherry pick bulk merge.
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
[In reply to <user>]: <text>[Forwarded message from <user>]: <text>DiscordMessageSnapshotinterface and extendsDiscordMessagewithmessage_referenceandmessage_snapshotsfieldsTest plan
Closes BCD-89