fix(desktop): make invocable external relay agents @-mentionable#2752
Open
technicallybrantley wants to merge 1 commit into
Open
fix(desktop): make invocable external relay agents @-mentionable#2752technicallybrantley wants to merge 1 commit into
technicallybrantley wants to merge 1 commit into
Conversation
The composer's candidate assembly (useMentions addCandidate) gated agent identities on the locally-managed list before shouldHideAgentFromMentions could apply its invocable-always-show rule. Externally-hosted agents - relay members with a kind:10100 announcement whose respond_to allowlist includes the viewer - were therefore unconditionally dropped from the @-mention picker, making the invocable-relay-agent path unreachable. Gate on the mentionable set (managed union invocable relay agents) instead. Managed-agent behavior is unchanged (the mentionable set is a superset); non-invocable external agents are still hidden. Repro: run an agent outside the desktop app (e.g. buzz-acp on a separate host), add it to a members-only relay, publish its kind:10100 with respond_to=allowlist naming a user, join it to a shared channel: that user cannot @-mention it from the composer before this change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YFkHsUe1UUBBuvL81Zoe3n Signed-off-by: technicallybrantley <77166260+technicallybrantley@users.noreply.github.com>
technicallybrantley
force-pushed
the
fix/external-agent-mention-eligibility
branch
from
July 24, 2026 20:00
8189534 to
f604e84
Compare
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.
The composer's candidate assembly (useMentions addCandidate) gated agent identities on the locally-managed list before shouldHideAgentFromMentions could apply its invocable-always-show rule. Externally-hosted agents - relay members with a kind:10100 announcement whose respond_to allowlist includes the viewer - were therefore unconditionally dropped from the @-mention picker, making the invocable-relay-agent path unreachable.
Gate on the mentionable set (managed union invocable relay agents) instead. Managed-agent behavior is unchanged (the mentionable set is a superset); non-invocable external agents are still hidden.
Repro: run an agent outside the desktop app (e.g. buzz-acp on a separate host), add it to a members-only relay, publish its kind:10100 with respond_to=allowlist naming a user, join it to a shared channel: that user cannot @-mention it from the composer before this change.
Claude-Session: https://claude.ai/code/session_01YFkHsUe1UUBBuvL81Zoe3n