mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
The migration wrote synthetic events with zero pubkey/sig when signing keys were unavailable at startup. These rows break load_from_retention because nostr::Event deserialization rejects the placeholder values. Additionally, the sentinel file (migration_state.json) caused a filesystem write on every launch regardless of whether migration ran. Fix both criticals: 1. Migration now resolves keys from the identity.key file (which exists from prior launches), making the no-keys path unreachable in practice. When it is reached, stores content-only rows (empty raw_event, "unkeyed" placeholder pubkey) instead of invalid synthetic events. 2. load_from_retention branches on raw_event validity: tries nostr::Event parse first, falls back to parsing the content column directly as PersonaEventContent. Also queries for unkeyed migration rows. 3. Replaces the sentinel file with a DB-row-exists idempotency check, eliminating write amplification on every launch. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
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