From 7b03a64b8501a736af8e605f399922a14b8feebb Mon Sep 17 00:00:00 2001
From: fuyou <imshuazi@126.com>
Date: Mon, 18 Aug 2025 13:26:34 +0800
Subject: Fix URL truncation in CLI display components #5902 (#5925)

---
 .../cli/src/ui/components/messages/ToolConfirmationMessage.tsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx')

diff --git a/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx b/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx
index 2f93609e..690da7e5 100644
--- a/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx
+++ b/packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx
@@ -8,6 +8,7 @@ import React from 'react';
 import { Box, Text } from 'ink';
 import { DiffRenderer } from './DiffRenderer.js';
 import { Colors } from '../../colors.js';
+import { RenderInline } from '../../utils/InlineMarkdownRenderer.js';
 import {
   ToolCallConfirmationDetails,
   ToolConfirmationOutcome,
@@ -222,12 +223,17 @@ export const ToolConfirmationMessage: React.FC<
 
     bodyContent = (
       <Box flexDirection="column" paddingX={1} marginLeft={1}>
-        <Text color={Colors.AccentCyan}>{infoProps.prompt}</Text>
+        <Text color={Colors.AccentCyan}>
+          <RenderInline text={infoProps.prompt} />
+        </Text>
         {displayUrls && infoProps.urls && infoProps.urls.length > 0 && (
           <Box flexDirection="column" marginTop={1}>
             <Text>URLs to fetch:</Text>
             {infoProps.urls.map((url) => (
-              <Text key={url}> - {url}</Text>
+              <Text key={url}>
+                {' '}
+                - <RenderInline text={url} />
+              </Text>
             ))}
           </Box>
         )}
-- 
cgit v1.2.3

