diff --git a/packages/ui/src/components/message-part.tsx b/packages/ui/src/components/message-part.tsx index ba9f24ebc5..26b1dd9cdf 100644 --- a/packages/ui/src/components/message-part.tsx +++ b/packages/ui/src/components/message-part.tsx @@ -168,7 +168,7 @@ function openProjectFile( openFilePath?: (input: { path: string }) => void, ) { if (!path) return - const file = relativizeProjectPaths(path, directory).replace(/^\//, "") + const file = relativizeProjectPath(path, directory).replace(/^\//, "") if (!file) return openFilePath?.({ path: file }) }