Skip to content

Slack: auto-replies don't stay in thread #250

@scald

Description

@scald

Summary

When someone replies to the bot in a Slack thread, the bot's response goes to the channel root instead of staying in the thread.

Expected behavior

If incoming message has thread_ts, the auto-reply should use that as thread_ts to reply in-thread.

Current behavior

The ReplyToId is captured from message.thread_ts ?? message.ts in monitor.ts, but the auto-reply doesn't seem to use it when sending responses.

Steps to reproduce

  1. Bot is in a Slack channel
  2. User sends a message, bot replies (in channel root - fine)
  3. User replies to bot's message in a thread
  4. Bot responds in channel root instead of the thread

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions