From 8ab17f5ce0bb3e74a49aa661fc1beef8314b8e04 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 16 Apr 2026 11:18:44 -0400 Subject: [PATCH] tui: fix path comparison in theme installer to handle different path formats --- packages/opencode/src/cli/cmd/tui/plugin/runtime.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/cmd/tui/plugin/runtime.ts b/packages/opencode/src/cli/cmd/tui/plugin/runtime.ts index af37ffbd7..cdb778d14 100644 --- a/packages/opencode/src/cli/cmd/tui/plugin/runtime.ts +++ b/packages/opencode/src/cli/cmd/tui/plugin/runtime.ts @@ -194,7 +194,8 @@ function createThemeInstaller( } return } - if (prev?.dest === dest && prev.mtime === mtime && prev.size === size) return + if (path.normalize(prev?.dest ?? "") === path.normalize(dest) && prev.mtime === mtime && prev.size === size) + return } const text = await Filesystem.readText(src).catch((error) => {