From d79959c3557a06abdcdd381109c110faea427c6c Mon Sep 17 00:00:00 2001 From: Raphaelowo <147674577+Raphaelowo@users.noreply.github.com> Date: Tue, 14 Jul 2026 01:52:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Win=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 让Win跟Linux一样可以显示缩短路径 以前 C:\Users\test\project\src\index.ts 现在 …/project/src/index.ts --- adapters/common/format.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/common/format.ts b/adapters/common/format.ts index d011d67a..e3e1efd7 100644 --- a/adapters/common/format.ts +++ b/adapters/common/format.ts @@ -223,7 +223,7 @@ function formatToolSummary(tool: string, inp: Record): string | } function shortPath(fp: string): string { - const parts = fp.split('/') + const parts = fp.replaceAll('\\', '/').split('/') return parts.length > 3 ? '…/' + parts.slice(-3).join('/') : fp }