mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
The nest renderer had three defects surfaced in review: Relay-scope filter contradicted the agents-everywhere model. render_dynamic_section dropped records whose stored relay_url differed from the active workspace, but effective_agent_relay_url() deliberately ignores that legacy creation-era field — every agent is eligible on every community, and snapshot-imported records store relay_url empty by design. The filter silently hid valid, runnable agents after a workspace switch or import. Removed the relay-pin predicate; the archive filter is now the only roster gate. The foreign-relay relic records leave the table via record deletion, not code. Detached regenerations could publish stale whole-file state out of order. Each try_regenerate_nest spawned an unconstrained task that snapshotted state, awaited two relay requests, then wrote — so a slow pre-edit generation could overwrite a newer one, deterministically at boot where the fallback-relay regen races the apply_workspace regen. Added NestRegenCoalescer: a monotonic generation is claimed synchronously at request time (encoding call order) and gates the write under one lock spanning the compare-and-write, so a lower-generation task drops its result instead of rolling the file back. nest/tests.rs blew the 1000-line file-size ratchet. Split the renderer, upsert, and new coalescer tests into nest/render_tests.rs. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@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