buzz icon indicating copy to clipboard operation
buzz copied to clipboard

feat(desktop): discover public Relay agents from registry

Open jiangew opened this issue 4 months ago • 0 comments

Summary

Add Desktop support for public agents that run on an external/private Relay and are declared in a deployment-managed registry.

  • read agents/public-relay-agents.json through a fixed-path, read-only Tauri command
  • merge registered Relay members into the Agents view without changing Relay membership roles
  • keep registered agents available in channel member lists and @mention suggestions
  • show active/failed and online/offline state while preserving locally managed agent actions
  • document the explicit-channel registration and runner lifecycle design

Why

Buzz Desktop currently discovers locally managed agents, while Relay-hosted runners can remain ordinary member entries for compatibility. That leaves those agents invisible in the Agents module and inconsistently eligible for @mentions. The registry supplies the missing local classification metadata without changing the Relay authorization model or publishing synthetic agent declaration events.

Impact

The new behavior is opt-in: installations without the registry file keep the existing behavior. Registry reads are constrained to the application data directory, malformed entries are rejected, channel scope remains explicit, and unregistered Relay members continue to be treated as people.

Related issue

N/A — no matching open issue or PR was found for "relay agent registry" or "external relay agent".

Testing

  • Desktop test suite: 3728/3728 passing
  • pnpm typecheck
  • pnpm check
  • Rust public Relay registry tests: 5/5 passing
  • local v0.5.0 release build, signature, and entitlement verification
  • local five-runner Relay smoke test: all five agents visible and online
  • Desktop @mention round trip returned DESKTOP_REGISTRY_OK

Draft note: this changes Desktop behavior and needs maintainer review of the registry contract and UX before merge.

jiangew avatar Jul 29 '26 13:07 jiangew