mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Setup errors inside tao's `did_finish_launching` FFI callback propagate
as `Err` to Tauri's `panic!("Failed to setup app: {e}")`. Because Rust
cannot unwind across an `extern "C"` boundary, this escalates to
`panic_cannot_unwind` → SIGABRT. macOS treats SIGABRT as a crash and
auto-relaunches the app, producing a 6-crash pile-up before giving up.
This is a known upstream issue (tao#1171, still open).
Convert the two fatal `?` operators in the setup closure (identity
resolution and keys mutex access) to explicit `eprintln! +
process::exit(1)`. A clean exit produces no crash report and macOS does
not auto-relaunch, breaking the crash-loop.
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