mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Merges the two-dialog routing into a single unified path: - UserProfilePanel.handleEditAgent always opens AgentInstanceEditDialog, removing the resolvedPersona-preference branch that made the auto-restart toggle unreachable for definition-backed agents (routing bug fix). - EditAgentAdvancedFields gains an optional Instance name pool field that renders when the agent has a linked persona. Comma-separated names map to the persona's namePool; the field is hidden for agents without a definition. - useNamePoolEdit (new hook) owns name pool state for the instance dialog: seeds once per open session from the linked persona, resets on close, and calls updatePersonaMutation only when the value actually changed. Built-in personas are silently skipped. - AgentInstanceEditDialog wires the hook, passes name pool props to EditAgentAdvancedFields, guards canSubmit on isPending, and calls saveIfChanged after the auto-restart setter in handleSubmit. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>