Skip to content

test(slack): cover sendMessage Block Kit paths#18372

Closed
Solvely-Colin wants to merge 1 commit into
openclaw:mainfrom
Solvely-Colin:codex/slack-send-blocks-tests
Closed

test(slack): cover sendMessage Block Kit paths#18372
Solvely-Colin wants to merge 1 commit into
openclaw:mainfrom
Solvely-Colin:codex/slack-send-blocks-tests

Conversation

@Solvely-Colin

@Solvely-Colin Solvely-Colin commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

Why

We added Block Kit support in Slack send paths, but lacked direct unit coverage at the sendMessageSlack layer. This PR adds focused tests to lock behavior and prevent regressions.

Dependency

What This PR Adds

  • New tests in /Users/solvely/Projects/OpenClaw/src/slack/send.blocks.test.ts covering:
    • block-only send path posts blocks with fallback text when message is empty
    • blocks + mediaUrl is rejected with clear error

Behavior

  • No production code changes in this slice.
  • Test coverage now directly validates send-layer Block Kit behavior.

Validation

  • pnpm test src/slack/send.blocks.test.ts
  • pnpm check

Reviewer Focus

  • src/slack/send.blocks.test.ts

Greptile Summary

CRITICAL: PR description is completely incorrect. The description talks about adding Block Kit tests in send.blocks.test.ts, but the actual change in commit eaf2ee66 only modifies interactions.ts to preserve viewClosed method binding and refactor types.

Actual Changes

  • Refactored type definitions by merging InteractionSelectionFields into InteractionSummary and ModalInputSummary (removes intermediate type)
  • Fixed potential this binding issue by storing type-casted app object in appWithViewClosed variable before accessing viewClosed method
  • Minor import reordering

Issues Found

  • PR title, description, and "Reviewer Focus" section are all incorrect and describe a completely different change
  • This mismatch could confuse reviewers and make it difficult to understand what was actually changed and why

Confidence Score: 3/5

  • The code changes are safe and improve method binding, but the PR metadata is completely incorrect
  • The actual code change is solid - it's a defensive refactor that preserves method binding and simplifies type definitions. However, the PR description describes an entirely different change (adding Block Kit tests), which is a significant documentation/process issue. The confidence score reflects concern about the PR metadata mismatch rather than the code quality itself.
  • No files require special attention - the code change is straightforward and safe

Last reviewed commit: 42e94bd

@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack agents Agent runtime and tooling size: XL labels Feb 16, 2026
@Solvely-Colin
Solvely-Colin force-pushed the codex/slack-send-blocks-tests branch from df55614 to eaf2ee6 Compare February 16, 2026 23:03
@steipete steipete closed this Feb 16, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS and removed agents Agent runtime and tooling size: XL labels Feb 16, 2026
@steipete steipete reopened this Feb 17, 2026
@Solvely-Colin
Solvely-Colin force-pushed the codex/slack-send-blocks-tests branch from eaf2ee6 to 42e94bd Compare February 17, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants