fix(config): preserve existing user config when writing new defaults

Closes #2064
This commit is contained in:
YeonGyu-Kim
2026-02-26 20:55:37 +09:00
parent 502bcf76dd
commit 448b481e03
2 changed files with 81 additions and 1 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export function writeOmoConfig(installConfig: InstallConfig): ConfigMergeResult
return { success: true, configPath: omoConfigPath }
}
const merged = deepMergeRecord(existing, newConfig)
const merged = deepMergeRecord(newConfig, existing)
writeFileSync(omoConfigPath, JSON.stringify(merged, null, 2) + "\n")
} catch (parseErr) {
if (parseErr instanceof SyntaxError) {