feat: add Slack Agent messaging experience (agent_view) support#684
Open
damianborowy-nexos wants to merge 2 commits into
Open
feat: add Slack Agent messaging experience (agent_view) support#684damianborowy-nexos wants to merge 2 commits into
damianborowy-nexos wants to merge 2 commits into
Conversation
Contributor
|
@damianborowy-nexos is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
Signed-off-by: Damian Borowy <301205838+damianborowy-nexos@users.noreply.github.com>
4eb3d68 to
4d8811d
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…ined context more explicit Signed-off-by: Damian Borowy <301205838+damianborowy-nexos@users.noreply.github.com>
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.
Summary
Add support for Slack's Agent messaging experience (
agent_view), the 2026 replacement forassistant_view.onAppContextChangedevent carrying the active-view context as a normalizedAppContextEntity[](channel / canvas / list / message / unknown) describing what the user is currently viewingAppHomeOpenedEventnow carries the same folded active-view context as optionalentitiesagentViewconfig flag (now underagent_viewtheapp_home_openedis a signal that DM was opened, regardless of tab, and the active-view context is folded onto DM messages)app_context_changedroutinggetAppContext(message)helper to read the folded context off a DM messageagentView, DM messages are threaded per Slack's new model - each user message is a thread root@slack/web-apito^7.18.0Slack references
Test plan
pnpm validatechat, confirmed that new agent view is fully operational, bot responses are properly sent as thread replies, new events are properly captured (and everything works just like it previously did whenagentViewflag is not active), active-view context is properly passed toonAppContextChanged,AppHomeOpenedEvent, and to agent view DMsChecklist
git commit -s)pnpm validatepasses