Files
npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6wandTaylor Ho 15bd19b994 feat(personas): skip agent spawn when saving an agent as a persona template
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>
2026-06-26 14:28:56 -07:00
..
2026-03-09 13:02:11 -07:00