Skip to content

Commit 6f3733d

Browse files
tellahoclaude
andauthored
fix(desktop): let channel members bypass mention agent gate (#965)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8f580f3 commit 6f3733d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

desktop/src/features/messages/lib/useMentions.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ export function useMentions(
209209
if (isArchivedDiscovery(pubkey)) {
210210
return;
211211
}
212-
if (candidate.isAgent && !mentionableAgentPubkeys.has(pubkey)) {
212+
if (
213+
candidate.isAgent &&
214+
!candidate.isMember &&
215+
!mentionableAgentPubkeys.has(pubkey)
216+
) {
213217
return;
214218
}
215219

0 commit comments

Comments
 (0)