mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
resolve_effective_prompt_and_model() now uses this precedence: 1. Agent record system_prompt/model (explicit user override via Edit) → wins 2. Persona's live values (when persona_id resolves) → default 3. None → no prompt/model To distinguish 'stale snapshot from creation' vs 'explicit user override', persona-backed agents no longer snapshot system_prompt/model at creation time. These fields start as None and only get populated when a user explicitly sets an override via the Edit Agent dialog. This matches how env_vars already work: per-agent overrides persona on collision. Tests updated to cover all precedence scenarios: - Agent override wins over persona - Persona used when no agent override (the common case) - Mixed: agent model override + persona prompt - Fallback when persona not found - No persona, no record → None
Sprout
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