mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
1. Task leak: add watch::channel shutdown signal to WatcherRuntime so the debounce loop exits when stop_file_watcher drops the runtime. Adds tokio 'macros' feature for select!. 2. ID collision: use crypto.randomUUID() for synthetic diff message IDs instead of seconds-precision timestamps that collide on rapid writes. 3. Channel switch cleanup: call stopFileWatcher in the useEffect cleanup so navigating away stops the backend watcher. Also converts the pointless dynamic import to a static import.
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