Skip to content

feat(slack): support Block Kit blocks in editMessage#18262

Closed
Solvely-Colin wants to merge 0 commit into
openclaw:mainfrom
Solvely-Colin:codex/slack-edit-blocks-support
Closed

feat(slack): support Block Kit blocks in editMessage#18262
Solvely-Colin wants to merge 0 commit into
openclaw:mainfrom
Solvely-Colin:codex/slack-edit-blocks-support

Conversation

@Solvely-Colin

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

Copy link
Copy Markdown
Contributor

Why

After adding Block Kit support for sendMessage, edits still required plain text. This slice brings editMessage to parity so existing Slack messages can be upgraded/updated with blocks.

Dependency

What This PR Adds

  • In /Users/solvely/Projects/OpenClaw/src/agents/tools/slack-actions.ts:

    • editMessage accepts optional blocks (JSON string or array)
    • allows empty content when blocks provided
    • validates at least one of content or blocks
  • In /Users/solvely/Projects/OpenClaw/src/slack/actions.ts:

    • editSlackMessage forwards optional blocks to Slack chat.update
    • keeps text fallback safe (" ") when content is empty
  • In /Users/solvely/Projects/OpenClaw/src/agents/tools/slack-actions.e2e.test.ts:

    • adds edit tests for JSON blocks, array blocks, and required-field validation

Behavior

  • Existing text edits remain unchanged.
  • New path supports block-based message updates without requiring text content.

Validation

  • pnpm check
  • pnpm exec vitest run --config vitest.e2e.config.ts src/agents/tools/slack-actions.e2e.test.ts

Reviewer Focus

  • src/agents/tools/slack-actions.ts
  • src/slack/actions.ts
  • src/agents/tools/slack-actions.e2e.test.ts

@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack agents Agent runtime and tooling size: XL labels Feb 16, 2026
This was referenced Feb 16, 2026
@Solvely-Colin
Solvely-Colin force-pushed the codex/slack-edit-blocks-support branch from ffe8c1e to dacffd7 Compare February 16, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: slack Channel integration: slack size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants