mirror of
https://github.com/block/buzz.git
synced 2026-11-01 06:51:17 +00:00
Existing agents created before this PR have persona system_prompt and model values snapshotted onto the agent record. With the new precedence logic (agent record wins when set), those stale snapshots would be treated as explicit user overrides, blocking persona updates from taking effect. Migration: on load, clear system_prompt and model for any record where persona_id is set. Safe because the old code ignored agent-level overrides for persona-backed agents — no user has ever set a meaningful override. Persists after first run so it only executes once. Also: replace silent unwrap_or_default() on persona-load errors with eprintln! warnings so corrupted persona files don't silently spawn agents with no prompt.