mirror of
https://github.com/block/buzz.git
synced 2026-11-27 11:41:21 +00:00
Selecting "Auto" for a Buzz shared compute agent left Create/Save greyed out. The submit gate requires a non-empty model on the raw provider/model pair (`agentAiConfigurationModeSatisfied`), and the model dropdown wrote blank for Auto. Blank was also wrong on its own terms. Blank means *inherit the global model*, so an agent whose model came out blank ran shared compute against whatever unrelated model global config named - a Claude id sent to a local mesh node. And `"auto"` is a trigger token rather than a final choice: Buzz sets BUZZ_AGENT_PREFER_MESH_FOR_AUTO for this provider, and buzz-agent rewrites exactly `"auto"` to mesh-llm's virtual `mesh` model once the catalog advertises it (which mesh-llm does automatically at two or more models). Any concrete model id defeats that translation, so the old blank encoding could never reach Mixture-of-Agents. The rest of the feature already encoded shared-compute Auto as `"auto"` (provider selection, the global model control); the model dropdown handler was the one inconsistent path. Ordinary providers keep blank, which is the generic inheritance encoding everywhere else - existing blanks are not migrated. `isRelayMesh` is an optional parameter, defaulting to the selection's own provider. The dialogs derive the value already and would ideally pass it for the inherited-provider case, but both files sit at the size ceiling and may not grow; the parameter is there for whoever splits them. The existing test enshrined unconditional Auto -> blank. It is now split by provider, with coverage for the inference fallback and the explicit flag. Signed-off-by: Michael Neale <michael.neale@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