From cd942d06698ce96289a197a7b3bbf6dde2014a46 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sat, 27 Jun 2026 18:54:06 -0400 Subject: [PATCH] fix(tui): normalize abbreviated home paths to forward slashes --- packages/tui/src/runtime.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/tui/src/runtime.tsx b/packages/tui/src/runtime.tsx index 6f519cbe821..f503944f2e8 100644 --- a/packages/tui/src/runtime.tsx +++ b/packages/tui/src/runtime.tsx @@ -5,5 +5,6 @@ export function abbreviateHome(input: string, home: string) { const relative = path.relative(home, input) if (relative === "") return "~" if (relative === ".." || relative.startsWith(".." + path.sep) || path.isAbsolute(relative)) return input - return "~" + path.sep + relative + // Normalize to forward slashes so abbreviated display paths are identical across platforms. + return "~/" + relative.split(path.sep).join("/") }