mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Each listener now compares event.payload.session against the local `sessionId` const (captured by the closure) instead of reading from the mutable `nativeSessionRef.current`. This prevents stale listeners from a previous session from matching the new session's ID after the ref is updated. Also unregisters any lingering listeners at the start of a new session before registering fresh ones, ensuring no duplicate handlers exist.
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