Skip to content

Slack agent: treat passing mentions as mentions, allow reaction-only answers - #1391

Merged
Zach Dunn (zachdunn) merged 1 commit into
mainfrom
claude/project-thread-y1begb
Nov 5, 2026
Merged

Zach Dunn (zachdunn) merged 1 commit into
mainfrom
claude/project-thread-y1begb

Conversation

@zachdunn

Copy link
Copy Markdown
Member

Requested by Zach · project thread

Fixes #1390.

"and this slack has @uploads.sh installed" reached the model as Question: and this slack has installed, and the prompt assumed every mention wanted a file search. So it searched, then described an unrelated FAQ screenshot it didn't show.

Changes

  • questionText (apps/slack/src/mentions.ts): only a leading mention of the app is dropped. A mention later in the sentence becomes @uploads.sh, so the subject stays.
  • Prompt (apps/slack/src/agent.ts): the user message is labeled Message: instead of Question:. The prompt now says not every mention is a request. Statements, thanks and questions about the app get a short answer or a reaction, with no search. It also says to only talk about files it's showing.
  • Reactions: reply takes an optional reaction (+1, white_check_mark, raised_hands, heart, tada). With empty text, the mention gets that reaction and nothing is posted. With text, it gets both. Reactions outside the list are dropped. The bot already has reactions:write for 👀.

Tests

  • pnpm exec vitest run in apps/slack passes (123 tests), and tsc --noEmit is clean.
  • New cases cover a mid-sentence mention, a reaction-only answer with no search, rejecting a reaction outside the list, and the end-to-end Slack calls for a reaction-only mention (reactions.add with no chat.postMessage).

Generated by Claude Code

…answers

"and this slack has @uploads.sh installed" reached the model as "and this
slack has installed" under a "Question:" label, and the prompt assumed every
mention wanted a file search, so it searched and described an unrelated file.

- questionText keeps a mid-sentence mention as "@uploads.sh"; only a leading
  one is dropped.
- The prompt says not every mention is a request: statements, thanks and
  questions about the app get a short answer or a reaction, no search. It
  also says to only talk about files it's showing.
- `reply` takes an optional reaction from a short list. With empty text the
  mention gets that reaction and nothing is posted.

Fixes #1390

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KeLbkgKTCzrsVDA3JKewJz
@changeset-bot

changeset-bot Bot commented Nov 5, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0a8d00a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@zachdunn Zach Dunn (zachdunn) self-assigned this Nov 5, 2026
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 2

  • coderabbit:review
  • review
🚫 Excluded labels (none allowed): 1

  • wip

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ec602302-5bcb-4c49-bf05-a1bf90353df5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@zachdunn
Zach Dunn (zachdunn) merged commit effd819 into main Nov 5, 2026
4 checks passed
@zachdunn
Zach Dunn (zachdunn) deleted the claude/project-thread-y1begb branch November 5, 2026 03:25
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.

Slack @mention agent answers statements as file searches

2 participants