Skip to content

fix: strip injected message-id suffix before paired tag regex - #601

Open
LHMQ878 wants to merge 1 commit into
Opencode-DCP:masterfrom
LHMQ878:fix/556-injected-tag-suffix
Open

fix: strip injected message-id suffix before paired tag regex#601
LHMQ878 wants to merge 1 commit into
Opencode-DCP:masterfrom
LHMQ878:fix/556-injected-tag-suffix

Conversation

@LHMQ878

@LHMQ878 LHMQ878 commented Aug 8, 2026

Copy link
Copy Markdown

Summary

  • Remove the legitimately injected <dcp-message-id> suffix before running DCP_PAIRED_TAG_REGEX
  • Prevents in-text tag mentions from pairing with the injected closing tag and truncating message content

Test plan

Fixes #556

Remove the legitimately injected <dcp-message-id> suffix before running
DCP_PAIRED_TAG_REGEX so in-text tag mentions cannot pair with it and
truncate message content.

Fixes Opencode-DCP#556
@LHMQ878
LHMQ878 force-pushed the fix/556-injected-tag-suffix branch from 26e674b to f236e0d Compare August 8, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: DCP_PAIRED_TAG_REGEX matches across injected message ID tags, truncating message content

1 participant