fix: match AutoProvisionedAgent shape + valid OutcomeKind for loops
ci / gates (push) Successful in 15s
ci / frontend (push) Failing after 20s
ci / rust (push) Successful in 4m29s
ci / e2e (push) Skipped
ci / publish (push) Skipped

Co-Authored-By: Claude Opus 4.7 <[email protected]>
This commit is contained in:
Omar Sobh
2026-07-18 16:24:40 -07:00
co-authored by Claude Opus 4.7
parent 279d785f5b
commit c3e8f3ee01
2 changed files with 9 additions and 3 deletions
@@ -71,7 +71,7 @@ export function AutoProvisionCard({
color: "#d7d7db", color: "#d7d7db",
}} }}
> >
{a.role_slot} · {a.display_name} {a.role_slot} · {a.name}
</span> </span>
))} ))}
</div> </div>
@@ -184,8 +184,14 @@ export function LoopsWizard({
const r = await autoProvisionTeam({ const r = await autoProvisionTeam({
title: title.trim() || task.trim().slice(0, 60) || "Loop team", title: title.trim() || task.trim().slice(0, 60) || "Loop team",
description: task.trim(), description: task.trim(),
outcome_kind: "loop", // Loops don't map to a formal outcome_kind — "prod_plan" is the
topology_kind: kind, // most neutral choice for the LLM-derived role prompt.
outcome_kind: "prod_plan",
topology_kind: (kind as
| "hub_spoke"
| "pipeline"
| "hierarchical"
| "star_moe") || undefined,
model: "claude-sonnet-5", model: "claude-sonnet-5",
}); });
setAutoTeam(r); setAutoTeam(r);