buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Desktop @-mention picker: typing a prefix filters out an agent that appears in the full list

Open WifiDan opened this issue 2 months ago • 1 comments

Summary

An agent shows correctly in the full @ mention list (unfiltered), but disappears from the list the moment the mention-picker's text filter is applied — e.g. typing v when the agent's name is "Vera" removes it from the suggestions instead of narrowing to it.

Repro

  1. Open a channel where the agent is a member (confirmed: agent is a channel member, kind:0 display_name is clean ASCII "Vera" with no hidden/invisible characters, kind:10100 agent-directory name field is also clean ASCII "Vera", agent status is online).
  2. Type @ — the full picker opens and the agent appears in the list correctly, tagged "agent", with an online indicator.
  3. Continue typing v — the agent drops out of the filtered suggestions and cannot be selected via the picker.
  4. Confirmed server-side the agent is fully functional: an out-of-band buzz messages send --mention <pubkey> to this agent was picked up and replied to within 7 seconds, so this is a picker/filter UI bug, not a broken agent or a broken kind:10100 mention-eligibility record.
  5. Restarting Buzz Desktop fully (quit + relaunch) does not resolve it — ruled out stale local cache/index.

Environment

  • Desktop v0.5.25
  • Verified against a self-hosted relay (Postgres inspected directly) — kind:0 and kind:10100 records for the affected pubkey are both present, fresh (republished within the last 30 min via our own directory-sync job, schema mirrors the one in #5546), and byte-clean (checked via UTF-8 hex encode, no zero-width/invisible characters).

Why this isn't already-known ground

This looks adjacent to the duplicate-name mention-binding work in #7133/#7124/#7385, but it isn't a duplicate-name collision (only one identity with this name exists in the channel) and it isn't a missing/stale kind:10100 record (confirmed present and current). It reproduces specifically on the filter-by-keystroke step of the picker, after the full list has already rendered the entry correctly.

Impact

Makes an agent effectively unreachable via the picker for anyone who types to narrow the list rather than scrolling the full one — the common case on a busy channel with many members.

WifiDan avatar Sep 28 '26 17:09 WifiDan

Follow-up with a much cleaner repro, isolated from the picker-filter bug and from any duplicate/stale data on our side.

What we ruled out first

  • Server-side kind:0/kind:10100 records for the affected agent ("Vera") are clean, current (republished every 30 min), and correctly show her as an online channel member.
  • We found and cleared a large batch of duplicate builtin-persona entries (Fizz/Honey/Pollen/Bumble — both a stale server-side users cache and, separately, Desktop's own locally-cached managed-agents.json/teams.json, seeded from Desktop's built-in "Welcome Team" template) that were flooding the picker. After clearing both, the picker list is short (~20-25 real entries), matching the actual roster size.
  • Desktop's separate Channel Members dialog (the one opened from the member-count button in the channel header, not the composer @ picker) finds this agent instantly via its own search box, shows her online, correctly tagged "agent". So she is a confirmed, current channel member by every other measure.
  • A hand-typed @Vera (bypassing the picker entirely) posts as plain text but does not create a real mention — confirmed server-side, the resulting event has no p tag. So typing a name manually is not a working substitute for picking from the list.

The remaining bug

With the picker's duplicate-persona pollution cleared, we scrolled the entire unfiltered @ picker list end to end, several times, across app restarts. It contains every other real teammate — including several added since our first report — but this one specific agent never appears in it, consistently, regardless of list ordering (which itself isn't stable between opens — different runs show different relative ordering of the same entries, so this isn't simply being cut off by a render limit at a fixed position).

This looks like a bug specific to how the composer's @-mention picker's data source treats this one identity, distinct from:

  • the duplicate-selection bug fixed in #7133/#7124/#7385,
  • the persona-duplication issue in #4814/#4815 (not a duplicate-name collision here — only one identity exists with this name in the channel),
  • and the filter-narrows-to-nothing bug reported in the OP of this issue (which is also still present, separately, on the same build).

Happy to share the agent's pubkey/kind:10100 payload privately if useful for reproducing against a synthetic community, since posting it here would be spammy for other subscribers.

WifiDan avatar Sep 28 '26 18:09 WifiDan