Skip to content

fix(desktop): make invocable external relay agents @-mentionable#2752

Open
technicallybrantley wants to merge 1 commit into
block:mainfrom
technicallybrantley:fix/external-agent-mention-eligibility
Open

fix(desktop): make invocable external relay agents @-mentionable#2752
technicallybrantley wants to merge 1 commit into
block:mainfrom
technicallybrantley:fix/external-agent-mention-eligibility

Conversation

@technicallybrantley

Copy link
Copy Markdown

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

@technicallybrantley
technicallybrantley requested a review from a team as a code owner July 24, 2026 19:56
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
technicallybrantley force-pushed the fix/external-agent-mention-eligibility branch from 8189534 to f604e84 Compare July 24, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant