The Agent runtime, "Who can talk to this agent", and "Run on" fields
used raw <select> elements while the LLM provider/Model fields right
below them used PersonaDropdownField — the form read as two different
design languages. All selector-style controls in the create-agent form
now use PersonaDropdownField.
Also adds an isPlaceholder flag to PersonaDropdownOption so "Default"
provider/model options render faded like placeholder text instead of
looking like actively selected values.
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
Agents are now only ever minted explicitly through the Create Agent
wizard. Personas surface exclusively inside the New Agent catalog as
"saved templates" instead of rendering as cards on the Agents grid.
Remove the flatten/materialization migration:
- Delete managed_agents/flatten.rs and flatten_tests.rs — the boot-time
migration minted a fresh keypair for every active persona with no
linked agent, but keyed dedup on the persona_id link it erased itself,
so relay persona echoes from other builds (dev vs release, d-tag
drift) re-minted duplicate agents on every launch on both sides
- Remove the flatten_personas_into_agents boot hookup in lib.rs
- Remove materialize_pack_agents_locked from team pack install/sync in
commands/teams.rs — installing a pack now lands its personas in the
catalog without minting agents
Catalog = built-ins + saved templates:
- list_agent_templates merges static built-ins with active persona
records (store lock held, spawn_blocking), skipping records that
shadow a built-in id and sorting saved entries by display name
- AgentTemplate gains provider and source ("builtin" | "saved") on both
the Rust struct and the TS type; templateAgentDraft carries provider
through to the create form prefill
- CreateAgentStartDialog renders saved templates under a "Saved"
sidebar group; detail pane labels the type accordingly
"Save as template" on minted agents:
- New save_agent_as_template Tauri command maps an agent's pinned
config (name, instructions, avatar, runtime, model, provider — never
env_vars) onto a persona record; re-saving the same name updates the
existing template instead of duplicating; retained as kind:30175
pending relay sync so templates reach other devices
- AgentActionsMenu gains a "Save as template" entry wired through
UnifiedAgentsSection/AgentsView with success toast and
agent-templates/personas query invalidation
Tests:
- e2eBridge mocks the merged template list and save_agent_as_template
- agents.spec.ts covers the new menu entry and the save-as-template →
Saved group → detail pane flow
- Stale flatten references in persona/teams test comments cleaned up
873 Tauri unit tests, 69 Playwright tests, and the full just ci gate
pass.
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
Restores the old Agent Catalog layout (PersonaCatalogDialog, removed in
24ff2034) for the New agent starting-point step, replacing the flat grid
of cards with a sidebar list + detail preview.
- CreateAgentStartDialog.tsx: rebuilt on ChooserDialogContent (h-168 /
max-w-4xl, bg-sidebar header). The left sidebar keeps "Blank agent"
and "Import from file" as immediate actions with their existing
testids, above a Templates list; clicking a template now selects it
for preview instead of advancing straight to the form. The right pane
shows the selected template's avatar, name, the Type / Preferred
model / Preferred runtime meta group, and the system prompt rendered
as non-interactive Markdown, with a floating "Use template" confirm
button (create-agent-start-use-template) over a gradient that hands
the template to the details step. Selection defaults to the first
template on open, list/detail skeletons cover loading, and the
drag-and-drop import overlay + hidden file input carry over from the
grid version. Props are unchanged so AgentsView needed no edits.
Tailwind classes use the current v4 lint forms (h-168, bg-linear-to-t)
instead of the old catalog's literals
- agents.spec.ts: the two template-selection tests click the template
row and then the new confirm button; blank/import flows in the other
suites are unchanged (all four affected suites pass)
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
- agents.spec.ts: rewritten around the new surface — wizard starting
points (blank / import / template), template prefill and submit,
duplicate prefill, agent card actions menu, team creation with agent
members, and the inactive-persona / team-referenced-persona guards via
the mock bridge
- mesh-compute.spec.ts, smoke.spec.ts: replace the retired
"New agent > Custom agent" menu path with the wizard's blank starting
point; the system prompt now fills the top-level agent-instructions
field instead of the Advanced section
- persona-env-vars.spec.ts: env-vars editor and model/provider tests
target the create-agent form (agent-runtime / agent-llm-provider ids)
- onboarding.spec.ts: the Fizz welcome guide is identified by name — no
persona_id backing record anymore
- config-bridge-screenshots.spec.ts: provenance copy is now
"Inherited from agent profile"
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>