Skip to content

feat(slack): use markdown block for native table rendering - #35146

Closed
gonzalofrancoceballos wants to merge 1 commit into
NousResearch:mainfrom
gonzalofrancoceballos:feat/slack-markdown-block-v2
Closed

feat(slack): use markdown block for native table rendering#35146
gonzalofrancoceballos wants to merge 1 commit into
NousResearch:mainfrom
gonzalofrancoceballos:feat/slack-markdown-block-v2

Conversation

@gonzalofrancoceballos

Copy link
Copy Markdown

Replaces legacy mrkdwn text path with Slack's markdown block type (April 2026), which natively renders standard markdown including tables, bold, links, code blocks, lists, and headers.

Fixes #26947. Related: #8552.

Changes

gateway/platforms/slack.py

  • send(): Wraps content in {"type": "markdown", "text": content} block. format_message() output as text fallback. >12K chars falls back to legacy mrkdwn path.
  • edit_message(): Same markdown block treatment for streaming edits.

tools/send_message_tool.py

  • _send_slack(): Uses markdown blocks instead of mrkdwn: True.
  • _send_to_platform(): No longer calls format_message() for Slack — raw markdown must be preserved for the markdown block.

Replace legacy mrkdwn text path with Slack's markdown block type
(April 2026), which natively renders standard markdown including
tables, bold, links, code blocks, lists, and headers.

- slack.py send(): wrap content in markdown block, format_message()
  output as text fallback. >12K chars falls back to legacy mrkdwn.
- slack.py edit_message(): same markdown block treatment.
- send_message_tool.py: _send_slack() uses markdown blocks;
  _send_to_platform() no longer calls format_message() for Slack.

Fixes NousResearch#26947. Related: NousResearch#8552.
@alt-glitch alt-glitch added type/feature New feature or request P2 Medium — degraded but workaround exists platform/slack Slack app adapter comp/gateway Gateway runner, session dispatch, delivery labels May 30, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #8554 (and previously closed #35133 by the same author). Also overlaps with #19108. All implement the same Slack Block Kit markdown block migration for #8552.

@teknium1

teknium1 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Superseded by #56102 (#56102), a broader opt-in Slack Block Kit renderer that includes native table blocks (per-column alignment, inline-formatted cells, monospace fallback over Slack's limits) and closes #18918. This was one of several independent fixes for the same area — thanks for contributing it.

@teknium1 teknium1 closed this Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/slack Slack app adapter type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Support Slack Block Kit table rendering for markdown tables

3 participants