fix(cli): stop loading .opencode config directories

This commit is contained in:
marius-kilocode
2026-06-24 17:01:32 +02:00
parent 117a0d6233
commit ef9b1dcec0
42 changed files with 245 additions and 203 deletions
@@ -168,9 +168,9 @@ async function load(): Promise<Data> {
const invalidThemePath = path.join(dir, invalidThemeFile)
const globalThemePath = path.join(dir, globalThemeFile)
const preloadedThemePath = path.join(dir, preloadedThemeFile)
const localDest = path.join(dir, ".opencode", "themes", localThemeFile)
const localDest = path.join(dir, ".kilo", "themes", localThemeFile) // kilocode_change
const globalDest = path.join(Global.Path.config, "themes", globalThemeFile)
const preloadedDest = path.join(dir, ".opencode", "themes", preloadedThemeFile)
const preloadedDest = path.join(dir, ".kilo", "themes", preloadedThemeFile) // kilocode_change
const fnMarker = path.join(dir, "function-called.txt")
const localMarker = path.join(dir, "local-called.json")
const invalidMarker = path.join(dir, "invalid-called.json")
@@ -549,7 +549,7 @@ export default {
.then(() => true)
.catch(() => false)
const leaked_global_to_local = await fs
.stat(path.join(tmp.path, ".opencode", "themes", tmp.extra.globalThemeFile))
.stat(path.join(tmp.path, ".kilo", "themes", tmp.extra.globalThemeFile)) // kilocode_change
.then(() => true)
.catch(() => false)
@@ -1231,7 +1231,7 @@ test("updates installed theme when plugin metadata changes", async () => {
const spec = pathToFileURL(pluginPath).href
const themeFile = "theme-update.json"
const themePath = path.join(dir, themeFile)
const dest = path.join(dir, ".opencode", "themes", themeFile)
const dest = path.join(dir, ".kilo", "themes", themeFile) // kilocode_change
const themeName = themeFile.replace(/\.json$/, "")
const configPath = path.join(dir, "tui.json")