Files
buzz/desktop/src
DuncanandWill Pfleger 9ad809d2f7 feat(desktop): one edit surface for agent instances and definitions
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>
2026-08-05 17:03:12 -04:00
..
2026-08-03 21:51:17 -04:00