From ff9ad0deb0f03ab744cd31f63ce467c53d74c21c Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Fri, 9 Jan 2026 19:17:10 -0800 Subject: [PATCH] fix: better task tool rendering (#511) Co-authored-by: Letta --- src/cli/App.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index 14a403e..d46bb71 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -6559,6 +6559,19 @@ Plan file path: ${planFilePath}`; {liveItems.length > 0 && ( {liveItems.map((ln) => { + // Skip Task tools that don't have a pending approval + // They render as empty Boxes (ToolCallMessage returns null for non-finished Task tools) + // which causes N blank lines when N Task tools are called in parallel + if ( + ln.kind === "tool_call" && + ln.name && + isTaskTool(ln.name) && + ln.toolCallId && + !pendingIds.has(ln.toolCallId) + ) { + return null; + } + // Check if this tool call matches the current ExitPlanMode approval const isExitPlanModeApproval = ln.kind === "tool_call" &&