From cf4f327c62844d5dfcf74e411a834e905e5806e8 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 25 Jul 2025 00:18:33 -0700 Subject: [PATCH] change message for tool cancellation --- src/ui/ToolResultSummary.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/ToolResultSummary.tsx b/src/ui/ToolResultSummary.tsx index 9b77650ad..78ef9ba24 100644 --- a/src/ui/ToolResultSummary.tsx +++ b/src/ui/ToolResultSummary.tsx @@ -74,6 +74,11 @@ const ToolResultSummary: React.FC = ({ // Handle all other cases with text summary const getSummary = () => { + // Check if this is a user cancellation first + if (content === "Permission denied by user") { + return "Cancelled by user"; + } + // Convert absolute paths to relative paths from workspace root const formatPath = (filePath: string) => { if (path.isAbsolute(filePath)) {