mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Merges the two-dialog routing into a single unified path: - UserProfilePanel.handleEditAgent always opens AgentInstanceEditDialog, removing the resolvedPersona-preference branch that made the auto-restart toggle unreachable for definition-backed agents (routing bug fix). - EditAgentAdvancedFields gains an optional Instance name pool field that renders when the agent has a linked persona. Comma-separated names map to the persona's namePool; the field is hidden for agents without a definition. - useNamePoolEdit (new hook) owns name pool state for the instance dialog: seeds once per open session from the linked persona, resets on close, and calls updatePersonaMutation only when the value actually changed. Built-in personas are silently skipped. - AgentInstanceEditDialog wires the hook, passes name pool props to EditAgentAdvancedFields, guards canSubmit on isPending, and calls saveIfChanged after the auto-restart setter in handleSubmit. 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