mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
The disabled-state cleanup only checked isRecording, so it never aborted a start still in isStarting (mic permission / AudioWorklet setup) or the isTranscribing grace window. If the composer became disabled mid-start (channel read-only, parent send-state disable), the pending start could finish and begin microphone capture in a disabled composer. Broaden the guard to the full ownership window (isRecording || isStarting || isTranscribing) and re-run when any flag flips, so cancelRecording() — which sets startAbortedRef to bail an in-flight start — fires for a start that completes after the disable.
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