Skip to content

[Snyk] Security upgrade @slack/bolt from 3.22.0 to 4.2.0 - #12

Open
agha4to wants to merge 1 commit into
mainfrom
snyk-fix-4edee2760ac22fd4a33724c9b2372b58
Open

[Snyk] Security upgrade @slack/bolt from 3.22.0 to 4.2.0#12
agha4to wants to merge 1 commit into
mainfrom
snyk-fix-4edee2760ac22fd4a33724c9b2372b58

Conversation

@agha4to

@agha4to agha4to commented Dec 17, 2024

Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • packages/backend/package.json

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠️ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Cross-site Scripting (XSS)
SNYK-JS-AXIOS-6671926
  551  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Cross-site Scripting (XSS)

agha4to pushed a commit that referenced this pull request May 30, 2026
…ightdash#23587)

* feat(ee): add 👀 reaction when Slack bot sees an @mention

Give users immediate visual feedback that the AI agent received their
mention, before any auth or agent resolution decides how to respond. Today
there's a noticeable silence between the @mention and the bot's "Thinking…"
reply (especially on the first multi-agent / project picker turn), and on
errors the user sometimes gets no reply at all. A 👀 reaction on the
trigger message makes "I saw you" unambiguous.

- Add `reactions:write` to the required Slack scopes (manifest).
- Fire `reactions.add` at the top of handleAppMention, before auth / settings
  lookups, so the ack lands even if a downstream step fails.
- Fire-and-forget: wrap the call in `.catch` that logs at debug, so any
  install that hasn't re-authorized for the new scope simply skips the
  reaction without breaking the mention flow.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* feat(ee): add ✅ reaction when AI writeback opens a PR

Builds on the 👀 ack reaction: once a writeback successfully opens (or
updates) a pull request, also add a ✅ reaction to the user's
original Slack mention. The success story is now visible at-a-glance
without reading the bot's reply — 👀 = "I saw you", ✅ = "PR is up".

- Add a small `addReaction` helper to SlackClient that wraps
  `getWebClient(orgUuid) → webClient.reactions.add(...)`, matching the
  per-org WebClient pattern used by every other method in that class.
- Fire the green-tick from inside the `proposeWriteback` dep in
  `getAiAgentDependencies`, gated on `result.prUrl != null` (a PR was
  actually opened) AND `isSlackPrompt(prompt)` (web-app invocations have
  no Slack message to react to). Failure to add the reaction is logged
  at debug and never fails the writeback itself.

Verified end-to-end against a live writeback to PR #12: the trigger
message ended up with both `:eyes:` (from handleAppMention) and
`:white_check_mark:` (from the proposeWriteback success path).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
agha4to pushed a commit that referenced this pull request May 30, 2026
# [0.3032.0](lightdash/lightdash@0.3031.0...0.3032.0) (2026-05-28)

### Features

* **ai-agents:** add review classifier contract ([lightdash#23548](lightdash#23548)) ([369782a](lightdash@369782a))
* **ai-agents:** display token usage tooltip on message model indicator ([lightdash#23580](lightdash#23580)) ([053848b](lightdash@053848b))
* **ee:** Slack bot reactions on agent ack and writeback PR success ([lightdash#23587](lightdash#23587)) ([a0d1cb5](lightdash@a0d1cb5)), closes [#12](lightdash#12)
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.

2 participants