Skip to content

feat(kiseno-slack-bot): answer thread replies without a mention - #254

Merged
felixboelter merged 1 commit into
aihpi-providerfrom
claude/slack-thread-followups
Nov 16, 2026
Merged

felixboelter merged 1 commit into
aihpi-providerfrom
claude/slack-thread-followups

Conversation

@felixboelter

Copy link
Copy Markdown
Member

In a channel, Qwen-Bot answers only posts that mention it, even inside a thread where it has just answered, so every follow-up needs @Qwen-Bot. With this change, a reply in a channel thread where the bot has posted is treated like a mention, so a conversation that started with a mention goes on without one.

What stays the same: top-level posts in a channel still need a mention (listen: mentions), DMs work as before, and listen: all still answers every post. A thread reply that mentions someone else is meant for that person and gets no answer. Routing for a follow-up is the same as for a mention (the channel's agent, else the default agent).

To tell the threads apart, the bot reads the thread with conversations.replies for every thread reply without a mention in channels it is in. It only counts its own posts among the last 50 messages, the same window it sends to the agent.

The runner change is only the description of slack.listen in app/spec.py and the regenerated schema/agent.schema.json.

Testing

python -m pytest -q in kiseno-slack-bot (110 passed) and in kiseno-agent-runner (48 passed). The new tests cover a follow-up in a listed channel and in a channel served by the default agent, a thread without the bot, a reply that mentions someone else, and a top-level post. The follow-up test fails against the old bot.py.

Deploying

After the merge, the workflow publishes a new tool-kiseno-slack-bot image; litellm-k8s needs the bot's image digest bumped to roll it out. No change to the Slack app is needed, since it already subscribes to message.channels and message.groups.

In a channel, Qwen-Bot answered only posts that mention it, even inside
a thread where it had just answered, so every follow-up needed
@Qwen-Bot. A reply in a channel thread where the bot has posted is now
treated like a mention. A reply that mentions someone else stays
unanswered, and top-level posts still need a mention.
@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f21688a1-5570-4823-a21c-59ac16d1582c
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@felixboelter
felixboelter merged commit fde4ff3 into aihpi-provider Nov 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant