[WIP] ## Bug Slack bot receives Socket Mode events but messages never reach C#296
Closed
bamdadd wants to merge 1 commit into
Closed
[WIP] ## Bug
Slack bot receives Socket Mode events but messages never reach C#296bamdadd wants to merge 1 commit into
bamdadd wants to merge 1 commit into
Conversation
bamdadd
force-pushed
the
lintel/fix/d9b649c5-bug-slack-bot-receives-socket-mode-event
branch
2 times, most recently
from
April 7, 2026 17:42
4a89031 to
2d9799a
Compare
bamdadd
force-pushed
the
lintel/fix/d9b649c5-bug-slack-bot-receives-socket-mode-event
branch
from
April 7, 2026 17:46
2d9799a to
5fa7768
Compare
Owner
Author
|
Closing stub PR from failed pipeline. Will retry with ingest fix. |
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
Fix silent message drop in Slack Socket Mode by injecting team_id from the Bolt body envelope into the inner event dict inside the handle_message handler, and add tests covering injection, no-overwrite, and missing-team-id branches.
Changes
Context
Slack bot receives Socket Mode events but messages never reach ChatService. No conversation is created and no reply is sent. Telegram works fine.
Root Cause
translate_message_event()inpackages/slack/src/lintel/slack/event_translator.py:24requiresevent.get("team")to be present:In Socket Mode, the
teamfield is NOT in the innereventdict — it's in the outerbodyenvelope. Soteam_idis always""and every message is silently dropped.Fix
In
packages/slack/src/lintel/slack/socket_listener.py, the_register_handlersmethod needs to injectteamfrom the boltbodyinto theeventdict before passing it to_on_message:Files to change
packages/slack/src/lintel/slack/socket_listener.py— inject team_id from body into event in_register_handlersTesting
make test-slackafter the fixhandle_messageinjectsteamfrombodywhen missing fromeventRaised by Lintel 🤖