mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
The "Save as persona template" route on an existing agent flowed through the shared submitProfilePersonaDialog no-id branch, which always minted the persona AND spawned a brand-new running agent. tho's call: save-as must mint the template only, no second instance. Thread a templateOnly intent flag from saveAsPersonaTemplateDialogState through handleSubmitPersona into submit; the no-id branch skips createManagedAgentForPersona and shows a "Saved … as a persona template" toast only when set. Every other create-persona flow leaves it unset and keeps spawning as before — blast radius stays on the save-as path. Lock the behavior with tests: save-as creates the persona but spawns no agent; the plain create path still spawns. Bump the UserProfilePanel.tsx file-size override 1014->1017 for the threaded plumbing. Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Signed-off-by: Taylor Ho <taylorkmho@gmail.com>