Files
buzz/desktop
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 29d04a5cf4 fix(b1-store): round-11 — hoist file recovery before migrations, fail closed
run_file_commit_recovery is now called immediately after reset handling
succeeds, before run_boot_migrations*, backfill_persona_snapshots, and
every other canonical-store reader/writer.  A stale stage from a pre-crash
commit can no longer overwrite migration/backfill output.

Fail closed: a recovery error sets store_recovery_failed on AppState (same
pattern as reset_failed) and returns early, keeping all store-touching setup
closed.  get_identity surfaces the flag to the frontend.

spawn_boot_recovery (publication-only since round 9) is the sole remaining
background recovery path; it cannot enter file repair at any schedule.

New test: test_setup_order_recovery_completes_before_migration_reads_canonical
plants stale canonical + stage file with repaired content, runs
file_commit_recovery_at_pub (the exact function production delegates to),
then asserts the canonical holds the repaired content — proving any
subsequent migration read sees the repaired state.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-08-04 18:25:54 -04:00
..
2026-08-03 21:51:17 -04:00
2026-03-09 13:02:11 -07:00
2026-06-11 15:06:24 +00:00
2026-03-09 13:02:11 -07:00

Buzz

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 frontend
  • pnpm tauri dev - run the desktop app
  • pnpm build - typecheck and build frontend
  • pnpm typecheck - TypeScript checks
  • pnpm lint - Biome lint
  • pnpm 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