The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: delegation manifest records the model children actually ran on
Tekniumfd905d292693
diff --git a/tests/tools/test_delegation_live_log.py b/tests/tools/test_delegation_live_log.pyindex 628514bac93..bafaae32f6b 100644--- a/tests/tools/test_delegation_live_log.py+++ b/tests/tools/test_delegation_live_log.py@@ -319,6 +319,16 @@ def test_manifest_update_uses_same_explicit_home(tmp_path, monkeypatch):assert manifest["tasks"][0]["status"] == "completed"+def test_manifest_records_inherited_child_model(tmp_path):+ """With delegation.model blank the dispatch-time model is None; the manifest must still name what ran (#123452)."""+ deleg_id, _writers, paths = create_live_transcripts([{"goal": "a"}, {"goal": "b"}], home=tmp_path)+ update_manifest_statuses(deleg_id, [{"task_index": 0, "status": "completed", "model": "parent/model"},+ {"task_index": 1, "status": "completed", "model": "parent/model"}], home=tmp_path)+ manifest = json.loads((Path(paths[0]).parent / "manifest.json").read_text(encoding="utf-8"))+ assert manifest["model"] == "parent/model"+ assert [t["model"] for t in manifest["tasks"]] == ["parent/model", "parent/model"]++def test_parent_without_session_db_warns_and_skips_pin(caplog):"""A parent with no _session_db cannot be pinned; the skip must beobservable (ambient fallback is the #91996 failure mode), not silent."""diff --git a/tools/delegation_live_log.py b/tools/delegation_live_log.pyindex 0ea65a45dc8..fe1de46563d 100644--- a/tools/delegation_live_log.py+++ b/tools/delegation_live_log.py@@ -300,6 +300,11 @@ def update_manifest_statuses(delegation_id: Optional[str],task["status"] = r.get("status", task.get("status"))if r.get("exit_reason"):task["exit_reason"] = r["exit_reason"]+ if r.get("model"):+ task["model"] = r["model"]+ # The dispatch-time model is only the delegation.model override (None when children inherit the parent's).+ if not manifest.get("model"):+ manifest["model"] = next((t["model"] for t in manifest.get("tasks", []) if t.get("model")), None)manifest["completed"] = time.strftime(_TIME_FMT)_dump_json(mp, manifest)