diff --git a/src/components/ToolCallDisplay.tsx b/src/components/ToolCallDisplay.tsx index 7bfa8e72..1a70aba8 100644 --- a/src/components/ToolCallDisplay.tsx +++ b/src/components/ToolCallDisplay.tsx @@ -88,7 +88,9 @@ function stripProjectPrefix(path: string, projectId?: string, projectsPath = '/p if (!projectId) return path; const projectPrefix = `${projectsPath}/${projectId}/`; - if (path.startsWith(projectPrefix)) { + if (path === `${projectsPath}/${projectId}`) { + return '.'; + } else if (path.startsWith(projectPrefix)) { return path.slice(projectPrefix.length); }