Skip to content

fix: reject blank history channel filters - #120

Open
vycdev2 wants to merge 1 commit into
vycdev:mainfrom
vycdev2:fix/reject-blank-history-channel
Open

fix: reject blank history channel filters#120
vycdev2 wants to merge 1 commit into
vycdev:mainfrom
vycdev2:fix/reject-blank-history-channel

Conversation

@vycdev2

@vycdev2 vycdev2 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Reject empty and whitespace-only read-message-history channel filters instead of silently disabling channel filtering.
  • Advertise the non-blank constraint in the MCP tool schema.
  • Add regression coverage for runtime validation and schema metadata.

Verification

  • npm run build && node --test tests/mcpHistory.test.mjs — passed (1 test).
  • npm test — passed (109 tests).
  • git diff --check — passed.

Risk

Low. Omitting the optional channel filter still reads across channels; only explicitly blank values now return an argument-validation error.

This was generated by an AI agent (vycdev2). Please verify any changes before merging or applying.

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.

1 participant