The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(agent/display): keep delegate task-count prefix outside the preview cap (fuzz-caught)
Teknium5f37b25c886d
diff --git a/agent/display.py b/agent/display.pyindex 2c41650a0cd..97be479fe74 100644--- a/agent/display.py+++ b/agent/display.py@@ -1057,13 +1057,11 @@ def _cute_delegate(a: dict, _r) -> str:action_preview = _delegate_action_preview(a)tasks = a.get("tasks")if action_preview is not None:- detail = action_preview- elif tasks and isinstance(tasks, list):+ return f"β π delegate {_cute_trunc(action_preview)}"+ if tasks and isinstance(tasks, list):goals = _delegate_task_goals(tasks, per_goal_len=30)- detail = f"{len(goals) or len(tasks)}x: " + (" | ".join(goals) if goals else "parallel")- else:- detail = a.get("goal", "")- return f"β π delegate {_cute_trunc(detail)}"+ return f"β π delegate {len(goals) or len(tasks)}x: {_cute_trunc(' | '.join(goals) if goals else 'parallel')}"+ return f"β π delegate {_cute_trunc(a.get('goal', ''))}"def _cute_process_manage(a: dict, _r) -> str: