mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
L6 finding: useRelayAgentsQuery ran a 30s refetchInterval backed by an unfiltered relay query for ALL kind:10100 agent profiles, mounted on ~13 always-live surfaces (channel screen, members bar, mentions, sidebar, profile popovers). It re-pulled the full profile set app-wide every 30s. Relay agent profiles are near-static; 30s is far too aggressive. This poll is also the ONLY refresh path for kind:10100 (the agents-data-changed event fires only for local PERSONA/TEAM/MANAGED_AGENT reconcile, never kind:10100), so it cannot be dropped. Relaxing to 5min drops relay traffic ~10x, and refetchIntervalInBackground:false (matches channels/hooks.ts house style) pauses it while the window is unfocused. No semantics change: the set of relay agents still refreshes, just less often. 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