fix(desktop): route same-owner remote agent mentions - #5484
Draft
dafacto wants to merge 1 commit into
Draft
Conversation
Signed-off-by: dafacto <matt@dafacto.com>
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.
Summary
respond_to: "nobody"Root cause
The composer allow-list treated the local managed-agent store as the primary source of agent identity. On another Buzz client, a channel could contain an agent owned and hosted by the same user, but that client had no local managed record for the pubkey. The remote member was therefore filtered from autocomplete or could be confused with a local instance lifecycle.
This change treats verified NIP-OA ownership plus active channel membership as the remote routing signal, scoped only to channel composers. Admission waits for a successful relay-directory response so an explicit heartbeat-only policy cannot be missed during startup or directory errors.
User impact
A user can mention an agent hosted by another Buzz client in a shared stream or forum. Buzz sends the mention to the exact existing pubkey; local managed-agent setup remains untouched. Active Huddles reuse the existing remote-pubkey synchronization path.
Fixes #3277.
Validation
LGTM WITH NITSafter independent TypeScript, Biome, Rust, unit, and focused browser verificationcargo fmt --checkpassedScope
This deliberately does not broaden direct-message or community-search agent discovery, and it does not make a remote identity a local managed instance.