Skip to content

fix(desktop): show shared relay agents in mention autocomplete [fork CI] - #1

Closed
bossriceshark wants to merge 5 commits into
mainfrom
fix/desktop-remote-agent-mention-autocomplete
Closed

fix(desktop): show shared relay agents in mention autocomplete [fork CI]#1
bossriceshark wants to merge 5 commits into
mainfrom
fix/desktop-remote-agent-mention-autocomplete

Conversation

@bossriceshark

Copy link
Copy Markdown
Owner

Fork-internal draft PR to run desktop CI on the fix branch. Not for merge here — the upstream PR to block/buzz follows once CI is green. See commit messages for the change description.

Mention candidates were dropped by isAgentIdentityInManagedList before
shouldHideAgentFromMentions ever ran, so remote relay agents — which can
never enter the local managed list (apply_inbound_managed_agent is
patch-only by design) — were unmentionable on desktop even when their
kind:10100 directory records made them eligible. Mobile has no such
filter and shows them.

Admit candidates through the mentionable set (managed agents plus
directory-eligible relay agents) instead — the same eligibility
useNewMessageRecipients already trusts. Agents in neither set stay
hidden, preserving the guard's anti-impersonation posture.
isAgentIdentityInManagedList is unchanged for its remaining consumer
(MembersSidebar add-member search).

Signed-off-by: Matt Rice <bossriceshark@users.noreply.github.com>
Review findings: the case-normalization assertion used a digit-only
fixture (toUpperCase() is identity on digits, so it could never fail) —
replaced with a letter-bearing hex fixture; pinned the member-agent-
without-directory-record path explicitly; converted the new export's
comment to JSDoc per repo convention; noted that the
shouldHideAgentFromMentions member branch is gated upstream.

Signed-off-by: Matt Rice <bossriceshark@users.noreply.github.com>
The mention-priority smoke test asserted alice hidden — alice is the
mock's shared relay agent (directory respond_to "anyone" with a shared
channel, channel member, not locally managed), which is exactly the
candidate class the fix admits. Update expectations to the fixed
behavior and pin her member-tier ordering.

Signed-off-by: Matt Rice <bossriceshark@users.noreply.github.com>
….mjs

main currently fails `biome check .` on these two string concatenations;
recent main pushes were docs-only so the path-filtered desktop CI job
never surfaced it. Included here so this PR's CI can run green — happy
to split into its own PR if preferred.

Signed-off-by: Matt Rice <bossriceshark@users.noreply.github.com>
Signed-off-by: Matt Rice <bossriceshark@users.noreply.github.com>
@bossriceshark

Copy link
Copy Markdown
Owner Author

Fork CI verification complete (all checks green). Upstream PR: block#4137

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