kin: auto-commit after pipeline

This commit is contained in:
Gros Frumos 2026-03-17 21:25:12 +02:00
parent fe344c2a4f
commit d53c4096fd
9 changed files with 343 additions and 22 deletions

View file

@ -650,6 +650,11 @@ def run_task(ctx, task_id, dry_run, allow_write):
raise SystemExit(1)
pipeline_steps = output["pipeline"]
if not isinstance(pipeline_steps, list) or not pipeline_steps:
click.echo(
f"PM returned empty or invalid pipeline: {pipeline_steps!r}", err=True
)
raise SystemExit(1)
analysis = output.get("analysis", "")
# Save completion_mode from PM output to task (only if neither task nor project has explicit mode)