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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user