mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Codex P2 on useLocalDictation.ts: the startRecording guard only checked isStarting/isRecording, so a new session could start during the previous session's isTranscribing window — after stopRecording() clears isRecording but before the native stopped event delivers the final transcript. The new start unlistens the old session's handlers before its last words arrive, dropping them on a quick re-press of the mic / hold of Cmd+D. Add isTranscribing to the start guard (and to the useCallback deps) so a restart waits for the prior session to fully stop. This is the canonical guard, so it covers every entry point (toggle button, Cmd+D push-to-talk, useDictation).
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