diff --git a/skills/tester/scripts/mobile_bundle.py b/skills/tester/scripts/mobile_bundle.py index 5e09fab..825f42f 100755 --- a/skills/tester/scripts/mobile_bundle.py +++ b/skills/tester/scripts/mobile_bundle.py @@ -454,6 +454,10 @@ def execute(args: argparse.Namespace) -> int: record.update({"status": "environment-fail", "failure_class": "automatic-repair-failed", "error": str(exc), "evidence": context.evidence}) path = write_run(context.root, record) output = {"status": record["status"], "run": str(path), "platforms": record["platforms"], "worktree": record.get("worktree")} + if record.get("error"): + output["error"] = record["error"] + if record.get("next_action"): + output["next_action"] = record["next_action"] print(json.dumps(output, ensure_ascii=False, indent=2), file=sys.stderr if record["status"] != "ready" else sys.stdout) return 0 if record["status"] == "ready" else 1