Desktop: Welcome Team is recreated after users remove Fizz, Honey, and Pollen
Summary
Buzz Desktop recreates the built-in Welcome Team agents (Fizz, Honey, and Pollen) after a user explicitly removes them from My Agents. There is no persistent opt-out state, so the Welcome Team reconciliation path reactivates the built-in personas and recreates their managed-agent instances.
Environment
- Buzz Desktop:
desktop-v0.5.20 - Self-hosted relay:
v0.5.2 - Platform: macOS
- Relay membership required: enabled
Steps to reproduce
- Complete Desktop onboarding against a self-hosted relay.
- Remove Fizz, Honey, and Pollen from My Agents, or delete their managed-agent instances.
- Restart Buzz Desktop or re-enter the Welcome channel/onboarding flow.
- Observe the Welcome Team reconciliation run again.
Actual behavior
- The built-in personas are forced active again.
- Missing managed-agent instances are recreated.
- Welcome channel bot membership is restored.
- The relay receives new revisions for the same kind
30177managed-agent coordinates.
Expected behavior
An explicit user removal should persist across restarts and Welcome channel reconciliation. Removed Welcome Team agents should not be recreated unless the user explicitly chooses to restore them.
Source-level diagnosis
desktop/src/features/onboarding/welcomeGuide.ts calls ensureWelcomeTeam() / provisionWelcomeTeam(), which:
- calls
ensureWelcomeTeamPersonasActive(), - looks up the three starter personas and relay-scoped instances,
- creates missing managed-agent instances,
- updates runtime/access settings, and
- restores Welcome channel membership.
The in-process promise map prevents concurrent duplicate provisioning, but it is not a persistent user opt-out.
The supported managed-agent deletion path correctly emits an owner-signed NIP-09 coordinate tombstone for 30177:<owner>:<d-tag> and an identity archive request. The problem is that Welcome reconciliation can subsequently provision the instances again.
Suggested fix
- Persist a
welcome_team_opt_out=truestate when the user removes the built-in Welcome Team. - Check the opt-out before
ensureWelcomeTeam()performs persona activation, agent provisioning, membership reconciliation, or Welcome intro work. - Add an explicit Restore Welcome Team action that clears the opt-out.
- Add a regression test covering: remove agents → restart Desktop → enter Welcome channel → no new kind
30177create/update events.
Additional note
This is a Desktop lifecycle issue rather than a relay database cleanup issue. Direct deletion of relay event rows is neither necessary nor desirable; the existing signed tombstone/archive flow should remain the removal mechanism.
Still reproduces on Desktop v0.5.24 (macOS, Apple Silicon). There's also a second-community angle that makes it worse than clutter.
Setup: one Desktop install and one owner identity in two communities. In the first community, months ago, I customized the built-in builtin:fizz and builtin:honey personas into my own agents, with new names and long custom system prompts.
What happened when I joined a second community today:
- The Welcome kickoff seeded a new Welcome Team there:
Fizz,HoneyandPollen, with new keypairs andrelay_urlset to the second community. - The new
FizzandHoneyinstances were built from my customized persona definitions, so they carry my private first-community system prompts under the stock starter names.FizzandHoneywere also started immediately. - So a new community gets agents running my private instructions, disguised as generic starters. Nobody would know unless they read
managed-agents.json. (Related: #5498, #7184.)
Source: welcomeKickoff.ts calls ensureWelcomeTeam(channelId, activeCommunity?.relayUrl) whenever the Welcome channel is the active channel, before it checks the closer marker. So focusing Welcome is enough to re-provision anything that was removed. That matches the diagnosis above.
Workaround I'm using until a fix lands: delete the instances through Desktop, which gives a signed tombstone and archive. Then move work to a separate private channel and don't open Welcome again.
+1 to the opt-out design here. #7466 looks like it covers this. It would help if the seeding path also didn't clone customized built-in definitions into a new community. Either seed from the stock template, or skip seeding when the built-in has been customized.