Repository navigation
fix(slack): Read the channel type from Slack when a mention has none - #2030
Merged
dcramer merged 1 commit intoOct 5, 2026
Merged
Conversation
Slack's app_mention event has no channel_type. Junior reads the visibility of a Slack Conversation from that field only, so a turn that starts from app_mention has no confirmed visibility and runs as private. A private turn has no conversation message search, and it stores private memories. An install that subscribes to app_mention and not to message.channels gets this for every channel mention. An install with the reference manifest gets two events for one mention, and Junior stores the first. The turn is private when app_mention arrives first. When the stored event has no channel type, the turn now asks Slack with conversations.info, which the cross-channel read check already uses as live proof of a public channel. When Slack refuses the lookup, the turn has no confirmed visibility, as before. The agent test fixture now sends app_mention before the message event, so every Slack eval starts from the event without a channel type. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
A turn that starts from Slack's
app_mentionevent runs as private, even in a public channel. A private turn has nosearchConversationMessagestool, and it stores private memories.app_mentionhas nochannel_type, and Junior reads the visibility of a Slack Conversation from that field only. Who gets the bug depends on the event subscriptions of the Slack app:app_mentionwithoutmessage.channels(the minimum in the setup docs): every channel mention runs as private.messagewith the channel type andapp_mentionwithout it. Junior stores the first one and drops the second as a duplicate. The turn is private whenapp_mentionarrives first.When the stored event has no channel type, the turn now asks Slack with
conversations.info. The cross-channel read check already uses this call as live proof that a channel is public. When Slack refuses the lookup, for example because an install has no read scope, the turn has no confirmed visibility and stays private, as before. Resumed turns keep their stored visibility and do no lookup.This is stacked on #2027, which makes the agent test fixture send both Slack events. This change flips the order in the fixture:
app_mentionarrives first, so every Slack eval starts from the event without a channel type.Review focus
conversations.infocall to a mention turn whose stored event isapp_mention.app_mentionfirst, the three shared-memory cases store public memories, and the storage eval finds the earlier public thread. Before the fix, the same order gave private memories and no conversation search. The storage eval still varies by run: in some runs the agent tries Slack workspace search, which the fixture refuses, and does not try conversation search.🤖 Generated with Claude Code