change message for tool cancellation
This commit is contained in:
parent
dafd221d30
commit
cf4f327c62
1 changed files with 5 additions and 0 deletions
|
|
@ -74,6 +74,11 @@ const ToolResultSummary: React.FC<ToolResultSummaryProps> = ({
|
|||
|
||||
// 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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue