merge: preserve project and user Codex configuration source 3253

This commit is contained in:
haelyra
2026-10-09 17:02:47 -04:00
6 changed files with 463 additions and 102 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
'use strict';
/**
* Merge the non-MCP Codex baseline from `.codex/config.toml` into a target
* Merge the non-MCP Codex baseline from `.codex/user-config.example.toml` into a target
* `config.toml` without overwriting existing user choices.
*
* Strategy: add-only.
@@ -219,7 +219,7 @@ function main() {
process.exit(1);
}
const referencePath = path.join(__dirname, '..', '..', '.codex', 'config.toml');
const referencePath = path.join(__dirname, '..', '..', '.codex', 'user-config.example.toml');
if (!fs.existsSync(referencePath)) {
console.error(`[ecc-codex] Reference config not found: ${referencePath}`);
process.exit(1);