mirror of
https://github.com/block/buzz.git
synced 2026-11-03 16:01:35 +00:00
Move migrate_clear_persona_defaults out of load_managed_agents (called ~20+ times per session) into restore_managed_agents_on_launch Phase A (called once at app launch). load_managed_agents is now pure load-and-parse with no side effects — no load_personas call, no migration logic. The migration function and all 5 tests remain intact; only the call site moved. Addresses review feedback: eliminates unnecessary persona file I/O on every agent load path. Also bumps runtime.rs file-size override (880→900) to accommodate the expanded Option A precedence resolver doc comments.