mirror of
https://github.com/block/buzz.git
synced 2026-11-30 05:02:57 +00:00
Stop agent records from floating to whichever workspace is active — the relay URL becomes the backend-side ownership key for agents (Phase 1 of lazy multi-workspace agents): - Stamp the resolved workspace relay onto records at create, on an explicit relay edit that clears the field, and on snapshot/team imports, instead of persisting blank. - Migrate legacy blank-relay records on the first apply_workspace after boot. Behavior-preserving: blank resolved to exactly that relay at boot restore. - Add a shared relay-URL normalizer (trailing slash, scheme/host case) and hash the normalized resolved relay in the spawn-config hash so cosmetic URL differences no longer trip the restart badge. - Add a rebind_agent_relay command, invoked by updateCommunity when a community's relay URL is edited, re-pinning records from the old URL onto the new one so those agents don't orphan. effective_agent_relay_url keeps its blank-to-workspace fallback as defense-in-depth for records that escaped stamping. The pure record mutations live in the new managed_agents::relay_pinning module. Tested: cargo test --manifest-path desktop/src-tauri/Cargo.toml (1420 passed), clippy -D warnings, rustfmt, desktop pnpm test (2920 passed), tsc, biome. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Matt Toohey <contact@matttoohey.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