Skip to content

feat: add app_context_changed event type#2633

Draft
zimeg wants to merge 1 commit into
mainfrom
feat/app-context-changed-event
Draft

feat: add app_context_changed event type#2633
zimeg wants to merge 1 commit into
mainfrom
feat/app-context-changed-event

Conversation

@zimeg

@zimeg zimeg commented Jun 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds AppContextChangedEvent to @slack/types with a discriminated union for entity types (slack#/types/channel_id, slack#/types/canvas_id, slack#/types/list_id, slack#/types/message_context)
  • Adds app_context optional field to GenericMessageEvent (the context is delivered inline on messages too)
  • Makes thread_ts optional on AssistantThreadsSetSuggestedPromptsArguments in @slack/web-api — agent_view DMs set prompts at the channel level without a thread

Test plan

  • npm run build --workspace=@slack/types passes
  • npm run build --workspace=@slack/web-api passes
  • Bolt JS can resolve the event via app.event('app_context_changed', ...) using Extract<SlackEvent, { type: 'app_context_changed' }>
  • setSuggestedPrompts accepts calls without thread_ts

🤖 Generated with Claude Code

@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3ee37fb

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

…on setSuggestedPrompts

Adds AppContextChangedEvent to @slack/types with typed entity discriminated
union (channel_id, canvas_id, list_id, message_context). Also adds
app_context field to GenericMessageEvent since the context is delivered
inline on messages too.

Makes thread_ts optional on AssistantThreadsSetSuggestedPromptsArguments
in @slack/web-api since agent_view DMs don't require it.
@zimeg zimeg force-pushed the feat/app-context-changed-event branch from 18aa667 to 3ee37fb Compare June 23, 2026 06:08
@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.90%. Comparing base (fefeb07) to head (3ee37fb).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2633   +/-   ##
=======================================
  Coverage   88.90%   88.90%           
=======================================
  Files          63       63           
  Lines       10256    10256           
  Branches      452      452           
=======================================
  Hits         9118     9118           
  Misses       1117     1117           
  Partials       21       21           
Flag Coverage Δ
cli-hooks 88.90% <ø> (ø)
cli-test 88.90% <ø> (ø)
logger 88.90% <ø> (ø)
oauth 88.90% <ø> (ø)
socket-mode 88.90% <ø> (ø)
web-api 88.90% <ø> (ø)
webhook 88.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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