fix(ui): show full Task prompt in approval dialogs (#750)
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user