From 6a96d3520bb693058b8a39144326bb66398d9cfc Mon Sep 17 00:00:00 2001 From: PizzzaDog <54866837+PizzzaDog@users.noreply.github.com> Date: Mon, 27 Jul 2026 13:05:54 +0200 Subject: [PATCH] fix(desktop): let channel-member agents into the @mention picker The mention autocomplete dropped any agent not in the current user's managed-agent list, so agents owned by other people never appeared even when they were members of the channel. Relax the filter so an agent also passes when it is already a channel member; the downstream shouldHideAgentFromMentions gate (Option B) then decides visibility from relay-directory invocability, hiding only agents with an explicit not-invocable directory entry. Co-Authored-By: Claude Opus 4.8 (1M context) Signed-off-by: PizzzaDog <54866837+PizzzaDog@users.noreply.github.com> --- desktop/src/features/messages/lib/useMentions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/src/features/messages/lib/useMentions.ts b/desktop/src/features/messages/lib/useMentions.ts index 0c73b75339..438f340e7e 100644 --- a/desktop/src/features/messages/lib/useMentions.ts +++ b/desktop/src/features/messages/lib/useMentions.ts @@ -246,7 +246,10 @@ export function useMentions( if (isArchivedDiscovery(pubkey)) { return; } - if (!isAgentIdentityInManagedList(candidate, managedAgentPubkeys)) { + if ( + !candidate.isMember && + !isAgentIdentityInManagedList(candidate, managedAgentPubkeys) + ) { return; } if (