Repository navigation
feat(kiseno-slack-bot): answer thread replies without a mention - #254
Merged
Merged
Conversation
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.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, andlisten: allstill 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.repliesfor 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.listeninapp/spec.pyand the regeneratedschema/agent.schema.json.Testing
python -m pytest -qinkiseno-slack-bot(110 passed) and inkiseno-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 oldbot.py.Deploying
After the merge, the workflow publishes a new
tool-kiseno-slack-botimage; 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 tomessage.channelsandmessage.groups.