Channel mention from a second owner device still mints a duplicate agent identity (desktop-v0.5.7, post-#4913)
Summary
With both devices of the same owner on desktop-v0.5.7, mentioning a managed agent from a second device in a channel (not a DM) still mints a second identity for that agent instead of reaching the running instance on the host device.
Steps to reproduce
- On machine A, create a managed agent ("Test agent") and start it. Public key
b060393e…4794. - On machine B (same owner, same workspace, also
desktop-v0.5.7), open a channel both are in. - Mention
@Test agent.
Expected
The mention reaches the running instance on machine A. No new identity is created.
Actual
Machine B mints a second identity for the same agent name, public key 2261ce75…ec44. Both are shown as "managed by you". The instance on machine A does not respond. Machine B renders a "needs configuration" card for the local instance it just created.
Notes
- #4913 ("allow shared agent mentions") appears to have addressed picker eligibility, but the sender-side spawn path (
useMentionSendFlow→createMentionedPersonaAgentswithensureRunning: true) still instantiates locally. - Reproduced in a channel, so this is not the deliberate DM fail-closed behaviour.
- Removing the local ACP adapter on machine B changes the symptom to an honest "adapter isn't installed" card, but does not prevent the mint attempt.
- Related: #3753, #3414, #4634, #2648, #4658, #3277.
Environment
macOS, desktop-v0.5.7 on both devices, self-hosted relay, single owner.
Reproduced on Buzz Desktop 0.4.26 (macOS), same shape as described here — the owner types @evox and gets three identical rows:
Owner account has three managed-agent identities with the identical display name EVOX:
cf65ab98… live — the one actually running (member of the channel)
025ceb85… stale — not in channel
dc501f23… stale — from a second Mac, retired 2026-07-25
Queried from the relay side:
$ buzz users get --name evox
025ceb85… display=EVOX
cf65ab98… display=EVOX
dc501f23… display=EVOX
$ buzz channels members --channel <ch>
<owner> · <other agent> · cf65ab98… # only the live one is a member
The avatar carries no identity signal either — it is derived from the harness, not the agent, so every Claude-backed managed agent on this account renders the same picture:
$ buzz users get --name evox → 3 pubkeys, picture = anthropic.gallerycdn…/claude-code/…/Icons.Default
$ buzz users get --name hidrix → 2 pubkeys, picture = (identical URL)
$ buzz users get --name pidot → 1 pubkey, no picture set
Five distinct identities across two different agents, one shared image. So in the picker above, name and avatar are both non-discriminating; the only differentiator is the not in channel subtitle, which says where an identity isn't — not which one is live.
Two user-visible consequences:
- Mention picker is ambiguous. Typing
@evoxon mobile lists all three entries — identical name and avatar, two of them taggednot in channel. Picking correctly is guesswork; picking a stale one silently reaches nothing. - Retiring the machine did not retire the identity.
dc501f23…was handed over ~3 weeks ago and the desktop entry removed, but itskind:0profile is still served by the relay, so it keeps appearing in autocomplete. That overlaps #2973 (stale duplicates cannot be archived/removed) and #3840 (archived identities still listed on mobile).
So the duplicate-minting in this issue is only half the cost — the other half is that a minted identity is effectively permanent from the owner's side, and nothing in the UI lets a human tell the copies apart.
Happy to run any specific probe on this setup if it helps narrow the mint trigger.
Second data point: a genuinely different person (not a second owner device) mints too — on desktop-v0.5.9 with relay 0.2.1
Adding a distinct failure shape to @sonpiaz's report, from a fully up-to-date self-hosted stack.
Setup: Mac Mini as always-on host, self-hosted relay upgraded from 0.2.0 to 0.2.1 during this test. Two Desktop agents on the host: Gijs (claude-agent-acp) and René (codex-acp), one identity each in the host's managed-agents.json, both running, both channel members.
What we did differently: instead of a second device on the same owner identity, we signed out on the MacBook and created a separate identity, then invited it to the community as a teammate — the scenario a real team would use. Agents were set to respond_to: anyone (also tested with an allowlist containing both pubkeys).
Result: the teammate still mints. Mentioning the agent produced <agent> added by you in the channel and a locally created agent labelled managed by you on the teammate's install, which then failed with claude ACP adapter isn't installed — because that machine deliberately has no ACP adapter. So the sender-side spawn is not gated on "am I the owner of this key", and not on "can I even run this". A teammate who is not the owner and owns no agents still gets a local mint.
The relay version mattered for visibility, not for minting. On relay 0.2.0 the host's agent did not appear in the teammate's mention picker at all (matching #5264). After upgrading the relay to 0.2.1 the relay-known agent did appear — but selecting it still went down the mint path. Worth noting for anyone testing: a stale relay hides the symptom and makes it look like a different bug.
DMs are the exception. A direct message from the second machine reaches the host-run agent correctly and mints nothing — verified against the host's managed-agents.json before and after (identity count unchanged, only last_started_at updated). Channel mentions are the broken path; DMs are not.
Confirming @sonpiaz on avatars: on our host the three built-in Welcome Team agents hold three identities each (minted 2026-07-28 and twice on 2026-08-04), all with identical display name and identical harness-derived avatar. From the UI there is no way to tell which one is live.
Happy to run probes as well — we have both an allowlist and an anyone configuration, two harnesses (Claude and Codex), and a second human identity available on the same self-hosted relay.
Still reproducing on desktop-0.5.14, and worth adding two things this report doesn't yet have: it happens with the app's own bundled Claude agent (so it is not specific to a custom ACP adapter), and the mis-addressing is visible at the relay level.
Setup: one owner, two macOS machines, self-hosted closed relay. Machine A creates and runs a built-in Claude agent, pubkey fbe6ebe7….
Result: mentioning @Claude in a channel from machine A reaches the agent and it replies. The same mention from machine B gets nothing.
What machine B did. Its managed-agents.json gained a second record with the same name and a freshly minted key:
Claude | pubkey: (none) ← synced view of the real agent
Claude | pubkey: 20809deac… ← minted on mention, start_on_app_launch: true,
last_error: harness exited with status exit status: 1
What the relay shows. Querying kind:9 and resolving each p tag (real agent vs duplicate):
from owner → p: [20809deac… (duplicate)] "@Claude Just chillin." ← machine B, no reply
from owner → p: [fbe6ebe7… (real agent)] "@Claude Hi Again" ← machine A, replied
from owner → p: [fbe6ebe7… (real agent)] "@Claude Hi" ← machine A, replied
from agent → p: [owner] "Hi Daniel — what do you need?"
So the event is published fine; it is simply addressed to the key machine B just minted, which nothing is listening on.
Two notes that may narrow it down:
- Not a profile-resolution race. I first suspected machine B duplicated because the agent had no
kind:0/kind:10100published yet, so the name was unresolvable there. That is ruled out: a second agent on machine A that had published akind:0was still duplicated by machine B on mention. - Closed relays make it silent, open relays would make it worse. Here the minted duplicate cannot authenticate (
Auth failed: restricted: not a relay member) and dies, so the only symptom is silence plus an unnamed pubkey in the channel member list. On an open relay the duplicate would presumably connect and you would end up with two agents of the same name answering from different machines.
Net effect for multi-device owners: a managed agent is reachable only from the machine it was created on, with no error surfaced to the sender.