feat: implement Slack Socket Mode listener for inbound events - #289
Merged
Conversation
Add SlackSocketModeListener (low-level) and SlackSocketListener (high-level) to receive Slack messages and approval actions via Socket Mode WebSocket. - SlackSocketModeListener wraps slack-bolt AsyncApp + AsyncSocketModeHandler - SlackSocketListener dispatches inbound messages through ChatService pipeline - Approval button actions (approve/reject) published to event bus - Listener starts on app startup when Slack credentials include app_token - Connect/disconnect endpoints start/stop the listener automatically - restore_slack_from_store restores credentials from credential store on boot Co-Authored-By: Claude Opus 4.6 <[email protected]>
bamdadd
force-pushed
the
feat/slack-socket-mode-listener
branch
from
April 7, 2026 17:14
9543cdd to
b8843d5
Compare
The listener was starting before chat_router was set on app.state, which meant any inbound Slack messages during startup would be silently dropped. Also removed a duplicate restore_slack_from_store call. Co-Authored-By: Claude Opus 4.6 <[email protected]>
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
SlackSocketModeListener(low-level slack-bolt wrapper) andSlackSocketListener(high-level with ChatService dispatch) for receiving Slack messages and approval actions via Socket Mode WebSocketxapp-app-level tokenrestore_slack_from_storerestores credentials from credential store on bootWork Item
fa92ef76-3c71-4e03-aff0-715e6a855fc1
Changes
socket_mode_listener.py(core listener) andsocket_listener.py(dispatch wrapper)restore_slack_from_store,start_slack_socket_listener,stop_slack_socket_listener; wired into connect/disconnect endpointsTest Plan
make test-slack— 111 passed)make test-settings-api— 35 passed)