feat(slack): support blocks in plugin edit action#18278
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-edit-blocks
branch
from
February 16, 2026 23:03
6a3ed2c to
eaf2ee6
Compare
Solvely-Colin
force-pushed
the
codex/slack-plugin-edit-blocks
branch
from
February 17, 2026 00:55
eaf2ee6 to
4949782
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
Plugin-level Slack
editactions should have the same Block Kit capability as tool-leveleditMessage.Dependency
7548391de.What This PR Adds
In
/Users/solvely/Projects/OpenClaw/src/plugin-sdk/slack-message-actions.ts:editnow accepts optionalblocks(JSON string or array)messageorblocksis presenteditMessageIn
/Users/solvely/Projects/OpenClaw/src/channels/plugins/actions/actions.test.ts:Behavior
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 makes two changes to
src/slack/monitor/events/interactions.ts:viewClosedmethod binding: The previous code extractedviewClosedfromctx.appinto a standalone variable, which loses thethiscontext when invoked. The fix keeps a reference to the cast object (appWithViewClosed) and calls the method on it directly (appWithViewClosed.viewClosed(...)), preserving binding — consistent with howctx.app.action()andctx.app.view()are already called.InteractionSelectionFieldstype: Removes the sharedInteractionSelectionFieldstype and duplicates its fields directly intoInteractionSummaryandModalInputSummary. Also reorders import statements (type imports first). This is a purely structural refactor with no behavioral change.Both changes are low-risk. The binding fix addresses a real bug where Slack Bolt's internal
thiscontext could be lost duringviewClosedhandler registration.Confidence Score: 5/5
Last reviewed commit: 4949782