Skip to content

fix(desktop): discover remote channel agents - #5084

Open
reynaldomarques-hrt wants to merge 1 commit into
block:mainfrom
reynaldomarques-hrt:fix/cross-device-agent-mentions
Open

fix(desktop): discover remote channel agents#5084
reynaldomarques-hrt wants to merge 1 commit into
block:mainfrom
reynaldomarques-hrt:fix/cross-device-agent-mentions

Conversation

@reynaldomarques-hrt

@reynaldomarques-hrt reynaldomarques-hrt commented Aug 6, 2026

Copy link
Copy Markdown

Channel members that are agents now remain eligible for mention autocomplete even when the current desktop has no local managed-agent record or relay-directory metadata for them. This lets users mention agents hosted on another desktop without copying the agent's runtime, credentials, or configuration to the desktop they are currently using.

The existing invocability guard still hides a channel-member agent when relay metadata explicitly says that the current user cannot invoke it. A regression test covers admission of remote channel members alongside the existing exclusion tests.

Verification

  • Desktop unit suite: 4,392 passed
  • TypeScript typecheck: passed
  • Desktop checks: passed with existing informational notices in unrelated files

🤖 Generated with Compound Engineering

Co-authored-by: Rey Marques <rey.marques@highrisetalent.com>
Signed-off-by: Rey Marques <rey.marques@highrisetalent.com>
@rmichelena

Copy link
Copy Markdown

Heads-up from a parallel investigation on #5363, in case it's useful here.

The respond_to / channel_ids fields this patch branches on are null / [] for any agent that publishes its policy as kind:30177 and its channel membership as kind:39002 — because list_relay_agents (desktop/src-tauri/src/commands/agent_discovery.rs) queries only kind:10100. So the eligibility logic here can be correct and the agent still stays hidden, even for its own owner, since the directory feeding it never carries the data.

We opened #5483 with a data-layer fix: merge kind:30177 (policy, owner-verified) and kind:39002 (NIP-29 membership) into list_relay_agents, best-effort so a relay error degrades to 10100-only instead of emptying autocomplete. E2e-verified on a self-hosted relay.

Not a claim that this PR is wrong — the two layers are compatible — just that the eligibility change alone may not be reproducibly verifiable against relay-published agents. Full analysis in #5363.

@reynaldomarques-hrt

Copy link
Copy Markdown
Author

Thanks feel free to close this item as needed.

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.

2 participants