mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
L6 finding: usePersonasQuery, useTeamsQuery, and useManagedAgentsQuery's idle branch each ran a 30s refetchInterval that duplicated an existing event-driven refresh path. Inbound relay changes to PERSONA/TEAM/MANAGED_AGENT records emit agents-data-changed (personas/mod.rs), which useAgentsDataRefresh coalesces into a query invalidate (200ms window). The 30s poll was belt-and-suspenders disk-read IPC on top of correct event invalidation. Removed the interval from personas and teams entirely. For managed agents, kept the 5s branch for locally-running agents (process state can change with no relay event, so that poll is their only liveness signal) and dropped the idle 30s fallback (control-plane changes have the event path; the 5s branch already captures the running->stopped transition on its last poll, and user actions invalidate directly). Co-authored-by: Tyler Longwell <tlongwell@block.xyz> Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
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