Show progress for each preflight profile

This commit is contained in:
2026-11-27 04:04:30 +00:00
parent 2eae2a4af2
commit 7ba1846e63
5 changed files with 35 additions and 6 deletions

View File

@@ -34,7 +34,9 @@ func runPreflight(inv commandkit.Invocation, input processInput) commandkit.Outc
return commandkit.Success()
}
_ = reporter.Progress("Checking structured output for selected profiles.")
results, err := llm.VerifyStructuredOutput(inv.Context, loaded.Runtime.Engine, prepared.Plan.Profiles)
results, err := llm.VerifyStructuredOutput(inv.Context, loaded.Runtime.Engine, prepared.Plan.Profiles, func(id string) {
_ = reporter.Progress(fmt.Sprintf("Checking structured output for profile %q.", id))
})
if err != nil {
details := make([]commandkit.Detail, 0, len(results))
for _, result := range results {