qm icon indicating copy to clipboard operation
qm copied to clipboard

Slack: messages with a rich_text body plus a context footer lose their body

Open DanCanadian opened this issue 5 days ago • 1 comments

Messages posted by the Claude Slack connector (blocks rich_text + context "Sent using Claude") reach QM as the footer only.

In src/slack/message-content.ts, blockText has no rich_text case, and slackMessageContent falls back to root.text only when blocksText is empty. Since the context footer renders, the body is dropped.

On 0.1.20 our channel_messages rows show text length 27 vs raw.text 337–979 for every such message; rich_text-only messages are fine thanks to the fallback.

Fix idea: render rich_text elements, or fall back to root.text when any block type is not rendered.

DanCanadian avatar Nov 30 '26 16:11 DanCanadian

Still reproduces on current main (src/slack/message-content.ts unchanged since 0172a00f5): an @-mention posted through the Claude Slack connector (rich_text body + context footer) reached the agent as the footer only, and the agent replied that the request text was missing. Hand-typed messages (rich_text only) are fine via the root.text fallback.

Smallest fix that keeps #3839's context rendering: in slackMessageContent, if any root block has type "rich_text", use root.text as the base (Slack fills it with the full body) and append the other blocks' text.

DanCanadian avatar Dec 04 '26 18:12 DanCanadian