Kill the surviving mutants of the spend, the setup version and the reversal count, and keep a subagent's type on one line

This commit is contained in:
2026-11-12 10:03:47 +01:00
parent 3c4cedd389
commit 1fc7bf0f52
4 changed files with 86 additions and 6 deletions
+2 -1
View File
@@ -80,7 +80,8 @@ def subagent_name(transcript: pathlib.Path) -> str:
except (OSError, UnicodeDecodeError, ValueError):
meta = {}
meta = meta if isinstance(meta, dict) else {}
kind, description = str(meta.get("agentType") or "subagent"), str(meta.get("description") or "")
# One line for the type, since a line break could forge an archive line such as `Config: `; json.dumps escapes the description's.
kind, description = " ".join(str(meta.get("agentType") or "subagent").split()), str(meta.get("description") or "")
return f"{kind} {json.dumps(description, ensure_ascii=False)}" if description else kind