From 43d86585f4649c978f4b7d26dabe02cd130cc966 Mon Sep 17 00:00:00 2001 From: OpenClaw Agent Date: Wed, 4 Mar 2026 11:28:01 -0800 Subject: [PATCH] fix(slack): remove double mrkdwn conversion in native streaming path (#34690) --- src/slack/streaming.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/slack/streaming.ts b/src/slack/streaming.ts index e80fe9b2140..936fba79feb 100644 --- a/src/slack/streaming.ts +++ b/src/slack/streaming.ts @@ -14,7 +14,6 @@ import type { WebClient } from "@slack/web-api"; import type { ChatStreamer } from "@slack/web-api/dist/chat-stream.js"; import { logVerbose } from "../globals.js"; -import { normalizeSlackOutboundText } from "./format.js"; // --------------------------------------------------------------------------- // Types @@ -100,7 +99,7 @@ export async function startSlackStream( // If initial text is provided, send it as the first append which will // trigger the ChatStreamer to call chat.startStream under the hood. if (text) { - await streamer.append({ markdown_text: normalizeSlackOutboundText(text) }); + await streamer.append({ markdown_text: text }); logVerbose(`slack-stream: appended initial text (${text.length} chars)`); } @@ -122,7 +121,7 @@ export async function appendSlackStream(params: AppendSlackStreamParams): Promis return; } - await session.streamer.append({ markdown_text: normalizeSlackOutboundText(text) }); + await session.streamer.append({ markdown_text: text }); logVerbose(`slack-stream: appended ${text.length} chars`); } @@ -148,9 +147,7 @@ export async function stopSlackStream(params: StopSlackStreamParams): Promise