mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Clicking "Blank agent" or "Use template" froze the entire webview until runtime discovery finished. The details dialog opens immediately, but on mount it fires three Tauri commands that were synchronous — and Tauri 2 runs sync commands on the main thread, so the UI blocked while login shells resolved each agent binary. - desktop/src-tauri/src/commands/agent_discovery.rs: make discover_acp_providers and discover_managed_agent_prereqs async and move their shell-spawning work into tokio::task::spawn_blocking so the main thread never blocks; both now return Result to surface a panicked task instead of unwrapping - desktop/src-tauri/src/commands/agent_providers.rs: same treatment for discover_backend_providers, which scans every PATH directory on disk for buzz-backend-* binaries - desktop/src/features/agents/ui/CreateAgentDialog.tsx: show a spinner in the submit button while discovery is pending, so the disabled button reads as "loading" rather than broken No frontend API changes needed — invokeTauri handles the Result return transparently. Also fixes the same freeze anywhere these queries fire (Edit Agent, Add Channel Bot, Settings > Doctor). Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
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