feat(slack): support blocks in plugin send action#18268
Closed
Solvely-Colin wants to merge 1 commit into
Closed
Conversation
This was referenced Feb 16, 2026
Solvely-Colin
force-pushed
the
codex/slack-plugin-send-blocks
branch
from
February 16, 2026 23:03
1f9f8e4 to
eaf2ee6
Compare
Solvely-Colin
force-pushed
the
codex/slack-plugin-send-blocks
branch
from
February 17, 2026 00:55
eaf2ee6 to
e32a5ad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Slack Block Kit support should work not only from direct tool calls, but also from the channel plugin action adapter (
action: send).Dependency
4c2049166.What This PR Adds
In
/Users/solvely/Projects/OpenClaw/src/plugin-sdk/slack-message-actions.ts:sendaction now accepts optionalblocks.blockscan be JSON string or array.blocksshape (array) and JSON parse errors.message,blocks, ormediais present.sendMessage).In
/Users/solvely/Projects/OpenClaw/src/channels/plugins/actions/actions.test.ts:Behavior
sendbehavior remains unchanged for text/media.Validation
pnpm test src/channels/plugins/actions/actions.test.tspnpm checkReviewer Focus
src/plugin-sdk/slack-message-actions.tssrc/channels/plugins/actions/actions.test.tsGreptile Summary
This PR fixes a
thisbinding issue when calling theviewClosedmethod on Slack's Bolt App. The change extracts the typed app object into a variable (appWithViewClosed) and callsviewClosedas a method on that object, rather than extracting the function reference and calling it standalone.Note: The PR description mentions adding Slack Block Kit support to plugin send actions, but those changes are not present in this PR. The actual change is limited to the
viewClosedmethod binding fix insrc/slack/monitor/events/interactions.ts.thisbinding preservation by callingappWithViewClosed.viewClosed(...)as a method instead of extracting and calling the functionConfidence Score: 5/5
viewClosedas a method. The fix directly addresses thethisbinding issue identified in previous review, and the implementation is correct. The only concern is the PR description mismatch, but the actual code change itself is sound.Last reviewed commit: e32a5ad