github Yeachan-Heo/oh-my-claudecode v4.2.1
v4.2.1 - Notification Security Hardening

latest releases: v4.11.0, v4.10.2, v4.10.1...
one month ago

Notification System Security Hardening & Deep-Merge Config

Security Fixes

  • Mention injection prevention: validateMention() regex ensures only valid <@USER_ID> or <@&ROLE_ID> patterns
  • Discord allowed_mentions: All Discord payloads include parse: [] to block @everyone/@here, with explicit user/role allowlists
  • Discord 2000-char guard: composeDiscordContent() enforces content length limit with smart truncation
  • Bump @modelcontextprotocol/sdk to ^1.26.0 (fixes GHSA-345p-7cg4-v4c7)

Bug Fixes

  • Config priority deep-merge: getNotificationConfig() deep-merges file config with env-derived platforms (env fills missing blocks, file takes precedence)
  • Env mention fallback: OMC_DISCORD_MENTION env var applies to file-based discord configs missing a mention
  • Timeout layering: DISPATCH_TIMEOUT_MS (15s) >= SEND_TIMEOUT_MS (10s), timer cleared in finally
  • Single mention resolution: Removed double resolution from dispatcher; config layer is the single source of truth
  • Whitespace trimming: normalizeOptional() trims mention strings before truthiness check

New Features

  • Configure Discord/Telegram skills: Interactive setup wizards via /oh-my-claudecode:configure-discord and /oh-my-claudecode:configure-telegram
  • Command redirects: commands/configure-discord.md and commands/configure-telegram.md

Testing

  • 85 new unit tests across 3 test files covering config validation, deep-merge integration, dispatcher behavior, mention separation, and timeout contracts

Don't miss a new oh-my-claudecode release

NewReleases is sending notifications on new releases.