Skip to content

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

Merged
Tarquinen merged 3 commits into
Opencode-DCP:devfrom
LHMQ878:fix/556-injected-tag-suffix
Aug 16, 2026
Merged

fix: strip injected message-id suffix before paired tag regex#601
Tarquinen merged 3 commits into
Opencode-DCP:devfrom
LHMQ878:fix/556-injected-tag-suffix

Conversation

@LHMQ878

@LHMQ878LHMQ878 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Verification

  • npm test (90 tests)
  • npm run typecheck
  • npm run format:check

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.
FixesOpencode-DCP#556
@LHMQ878
LHMQ878force-pushed the fix/556-injected-tag-suffix branch from 26e674b to f236e0dCompareAugust 8, 2026 09:18
@Tarquinen
Tarquinen changed the base branch from master to devAugust 16, 2026 02:50
# Conflicts:
#	lib/messages/utils.ts
#	tests/message-priority.test.ts
Sign up for freeto 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

2 participants

@LHMQ878@Tarquinen