fix(ui): show full Task prompt in approval dialogs (#750)

This commit is contained in:
Cameron
2026-01-29 17:52:55 -08:00
committed by GitHub
parent fda676a2ab
commit 382a7d34f5
2 changed files with 4 additions and 8 deletions

View File

@@ -343,12 +343,8 @@ const DynamicPreview: React.FC<DynamicPreviewProps> = ({
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 (
<Box flexDirection="column" paddingLeft={2}>

View File

@@ -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 (
<>