From 382a7d34f56c0b6fe9c820614ad5b7a5e1a71f6c Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 29 Jan 2026 17:52:55 -0800 Subject: [PATCH] fix(ui): show full Task prompt in approval dialogs (#750) --- src/cli/components/ApprovalDialogRich.tsx | 8 ++------ src/cli/components/InlineTaskApproval.tsx | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/cli/components/ApprovalDialogRich.tsx b/src/cli/components/ApprovalDialogRich.tsx index b74ffe2..4e1ac53 100644 --- a/src/cli/components/ApprovalDialogRich.tsx +++ b/src/cli/components/ApprovalDialogRich.tsx @@ -343,12 +343,8 @@ const DynamicPreview: React.FC = ({ const model = typeof parsedArgs?.model === "string" ? parsedArgs.model : undefined; - // Truncate long prompts for preview (show first ~200 chars) - const maxPromptLength = 200; - const promptPreview = - prompt.length > maxPromptLength - ? `${prompt.slice(0, maxPromptLength)}...` - : prompt; + // Show full prompt - users need to see what the task will do + const promptPreview = prompt; return ( diff --git a/src/cli/components/InlineTaskApproval.tsx b/src/cli/components/InlineTaskApproval.tsx index 6d5d57b..4753d51 100644 --- a/src/cli/components/InlineTaskApproval.tsx +++ b/src/cli/components/InlineTaskApproval.tsx @@ -129,8 +129,8 @@ export const InlineTaskApproval = memo( const memoizedTaskContent = useMemo(() => { const { subagentType, description, prompt, model } = taskInfo; - // Truncate prompt if too long (show first ~200 chars) - const truncatedPrompt = truncate(prompt, 300); + // Show full prompt - users need to see what the task will do + const truncatedPrompt = prompt; return ( <>