Skip to content

Official plugin: Slack app mode (threads per pull request, mention to start a task) #3555

Open

Description

@integry

Goal

With their own Slack app, a team gets one thread per pull request and can start work by mentioning the bot.

Behaviour

  • Slack app: the README and the Connect step provide a Slack app manifest the administrator uses to create their own Slack app in a few clicks (bot scopes for posting and reading mentions; Events API request URL = the plugin's inbound webhook; signing secret). Connection stores the bot token and signing secret. ProPR does not ship shared client credentials.
  • Threads: updates about one pull request are grouped in one thread, using ctx.state to remember the mapping.
  • Mention to task: mentioning the bot in a channel mapped to a repository with a request creates a GitHub issue in that repository (title from the first line, body with the message text and a link back to the Slack message, the configured trigger label) so ProPR starts a task through the normal label-triggered flow, and replies in the thread with the issue link; later events for that issue's pull request are posted in the same thread.
  • Only members of an allow-list (Slack user ids or a user group) can start tasks; others get a polite refusal.
  • Inbound verification uses the slack-v0 scheme; the URL verification challenge is answered.
  • Message text is untrusted content: it becomes the issue body and nothing else (it cannot choose the repository, labels or model).

Confirm Slack's current API details (Events API, scopes, signature scheme, limits) against Slack's official documentation while implementing; record the links in the README.

Acceptance criteria

  • Signature and timestamp verification and the challenge response work (fixtures).
  • A mention from an allowed user in a mapped channel creates one issue with the trigger label and replies in thread; retries of the same Slack event create no second issue.
  • A mention from a non-allowed user, in an unmapped channel, or a bot's own message creates nothing.
  • Message text cannot set labels, the repository or the model (injection test).
  • Events for a pull request reuse the stored thread; the incoming-webhook mode from the previous issue keeps working.
  • No message contains code, logs, prompt text, tool output or credentials (sentinel test).
  • README with the Slack app manifest, required scopes and a manual smoke-test checklist; docs/docs/plugins/slack.md updated.

Implementation

  1. Extend packages/plugins/slack/ with the app mode: webhook contribution, mention handler, thread mapping in ctx.state, Slack Web API calls through ctx.http.
  2. Tests with the plugin test kit and fixtures.
  3. Docs.

Notes

Depends on the chat notifications issue and the inbound webhooks issue. Creating a GitHub issue (rather than a task directly) keeps one intake path.

Activity

  1. added
    base-3542-epic-plugin-system-xu8
    on Nov 14, 2026
  2. propr-dev commented on Nov 16, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3555/claude-opus-5-5-official-plugin-slack-app-20261116-1521-orr
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3555-20261116-1521-claude-opus-5-5-orr

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-doneauto-mergebase-3542-epic-plugin-system-xu8llm-claude-opus55propr-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions