Files
buzz/desktop
Taylor Ho 28ca228e19 fix(desktop): unblock UI freeze when entering the create-agent details step
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>
2026-07-03 02:19:45 -07:00
..
…

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 frontend
  • pnpm tauri dev - run the desktop app
  • pnpm build - typecheck and build frontend
  • pnpm typecheck - TypeScript checks
  • pnpm lint - Biome lint
  • pnpm 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