mirror of
https://github.com/block/buzz.git
synced 2026-10-29 21:41:33 +00:00
The concurrent-definition guard compared the seed-time revision against the React-query-cached ctx.updatedAt, which can lag a concurrent writer. Writer B could submit before its cache received writer A's newer write, so both values read stale-equal, the guard passed, and B's full-replacement input clobbered A's fields. Refetch the persisted definition before the first write and compare that authoritative revision, closing the TOCTOU window. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
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 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