fix(test): address review follow-ups for config dir layering

This commit is contained in:
jollyxenon
2026-05-09 00:51:37 +08:00
parent 8d5dd908b8
commit 66a1a9ad1d
2 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -78,9 +78,11 @@ export function getOpenCodeConfigDirs(options: OpenCodeConfigDirOptions): string
return [getOpenCodeConfigDir(options)]
}
const customConfigDir = getCliCustomConfigDir()
return Array.from(
new Set([
...(getCliCustomConfigDir() ? [getCliCustomConfigDir()!] : []),
...(customConfigDir ? [customConfigDir] : []),
getCliDefaultConfigDir(),
]),
)