From 5f37b25c886d06c2ca22fac6f5dc4ca163ca33ab Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 2 Sep 2026 19:15:41 -0700 Subject: [PATCH] refactor(agent/display): keep delegate task-count prefix outside the preview cap (fuzz-caught) --- agent/display.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/agent/display.py b/agent/display.py index 2c41650a0c..97be479fe7 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: