mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Membership/metadata reads used limit:1 + first(), picking an arbitrary kind:39002/39000 copy when relays disagreed. A stale copy on one relay (e.g. a dropped write) could be read and then clobber members on the next read-modify-write. Add latest_event/latest_by_d_tag (max created_at, id tie-break) and apply at all four read sites; drop the limit truncation in get_channels. Agents only published presence (kind:20001), never a kind:0 profile, so clients showed a raw hex pubkey. Add publish_profile (name/display_name/ about/picture) at startup, sourced from the persona display_name with a title-cased fallback from the agent command (goose -> Goose). Tests: membership latest-wins resolution + profile metadata/name fallback.
Sprout
Desktop chat shell with:
- Tauri + React + TypeScript + Vite
- Tailwind CSS
- shadcn/ui-ready shared components
- Biome (lint/format/check)
- Feature-driven frontend structure
Scripts
pnpm dev- run the web frontendpnpm tauri dev- run the desktop apppnpm build- typecheck and build frontendpnpm typecheck- TypeScript checkspnpm lint- Biome lintpnpm format- Biome format (write)pnpm check- Biome check
Structure
src/shared- reusable app-wide code (ui,lib,styles)src/features- feature modules (vertical slices)src/app- top-level app composition