buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Show remote-but-online agents in @-mention autocomplete

Open JRStriestocode opened this issue 4 months ago • 3 comments

Problem

When running a multi-machine community (e.g. a Mac Mini as an always-on agent host + a MacBook as the daily driver), agents created and running on machine A are invisible in the @-mention autocomplete on machine B — even though they are active channel members responding to mentions on the relay.

PR #1611 intentionally hid "non-invocable" agents from autocomplete to prevent silent mention failures to offline agents. But this filter treats remote-but-online agents the same as offline agents, making multi-machine setups unusable from the UI.

Expected behavior

The @-mention autocomplete should show all channel-member agents that are currently online on the relay, regardless of whether they are locally invocable by the current Desktop instance. An agent running on another machine in the same community and connected to the same relay is reachable — the relay delivers the mention, and the remote machine's buzz-acp executes it.

Current behavior

Autocomplete only shows agents registered in the local Desktop's agent list. Remote agents that are online channel members are hidden. The only way to mention them is through the CLI with an explicit --mention <pubkey>, which isn't accessible to normal users.

Suggested approach

  • Use relay presence/online status to determine visibility, not local invocability
  • Keep hiding agents that are both non-local and offline (the original intent of #1611)
  • Optionally show a visual indicator (e.g. a remote icon) to distinguish local vs remote agents in the picker

Workarounds tried

  • Typing the name manually without autocomplete — does not work, mentions require autocomplete selection
  • Using the CLI with --mention <pubkey> — works but not viable for day-to-day use
  • Having another agent relay mentions — works but adds friction

Environment

  • Buzz Desktop v0.5.x
  • Two machines on the same relay/community
  • Agents running via buzz-acp on the remote machine, confirmed online and responding to mentions sent via CLI

Related: #3277, #2508, #2349

JRStriestocode avatar Jul 30 '26 13:07 JRStriestocode

@JRStriestocode Quick read from my end but please check if this is covered in #2987 . Last comment by myself in there has a build that you can try to see if that solves the issue.

Shipitrealgood avatar Jul 31 '26 09:07 Shipitrealgood

Still reproducible on Buzz Desktop v0.5.14

Our setup is a common remote-agent arrangement: an always-on Mac mini hosts the agent, while a MacBook is the daily Buzz client. Both are owned by the same account and use the same community/channel. The agent has the default owner-only policy.

Observed: the remote agent does not appear in Desktop @-mention autocomplete, so it cannot be addressed normally from the UI.

Control: an explicit-pubkey mention sent through the CLI reaches the agent successfully. This isolates the problem to Desktop discovery/mentionability rather than relay delivery or agent availability.

Impact: this makes the standard always-on remote-agent architecture effectively unusable from the primary UI. The workaround requires pubkeys and CLI access, which is not viable for normal use.

The implementation work appears to exist but is stalled in integration: #5483 is mergeable but blocked awaiting review, while #5484, covering the common same-owner owner-only case, currently conflicts with main and has no review.

Could a maintainer please confirm whether #5483 plus a rebased #5484 is the accepted fix path, and assign or milestone this issue so it has a clear owner? I’m happy to retest a candidate build across the Mac mini/MacBook setup.

JRStriestocode avatar Aug 15 '26 16:08 JRStriestocode

Verified fixed in Buzz Desktop 0.5.19 on the original setup: Mac mini hosts the agents; MacBook is the daily client; same owner, community and channel; agents use the default owner-only policy. Remote agents now appear in mention autocomplete and receive normal UI mentions during sustained day-to-day use. I have not isolated the exact fixing commit, but the original reproduction no longer occurs. Closing as completed; happy to reopen if it recurs.

JRStriestocode avatar Aug 26 '26 12:08 JRStriestocode