summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-04-16 11:18:44 -0400
committerDax Raad <[email protected]>2026-04-16 11:18:44 -0400
commit8ab17f5ce0bb3e74a49aa661fc1beef8314b8e04 (patch)
treec0fa39e7a182cb78eddc36564b81941584440064
parent6ce481e95b7c5da814efcb379b8578552514e43e (diff)
downloadopencode-8ab17f5ce0bb3e74a49aa661fc1beef8314b8e04.tar.gz
opencode-8ab17f5ce0bb3e74a49aa661fc1beef8314b8e04.zip
tui: fix path comparison in theme installer to handle different path formats
-rw-r--r--packages/opencode/src/cli/cmd/tui/plugin/runtime.ts3
1 files changed, 2 insertions, 1 deletions
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) => {