fix: honor global preview in every guided install entry

Scoped adaptation from PR #3088. Keep the canonical atomic writer and dispatcher; exclude the broader provider/tool changes.

Co-authored-by: Geronimo <varungore1@gmail.com>
This commit is contained in:
haelyraandGeronimo committed 2026-10-11 02:03:09 -04:00
1 parent 5ad9cb931b
commit da87114e05
2 files changed
+52 -1

No files matched your search

+5 -1
View File
@@ -106,7 +106,11 @@ function parseArgs(argv) {
if (options.allHarnesses && options.harnesses.length > 0) {
throw new Error('--all-harnesses and --harness are mutually exclusive.');
}
return options;
const dryRunEnv = process.env.ECC_DRY_RUN;
if (dryRunEnv !== undefined && dryRunEnv !== '0' && dryRunEnv !== '1') {
throw new Error('ECC_DRY_RUN must be "1" or "0" when set');
}
return { ...options, dryRun: options.dryRun || dryRunEnv === '1' };
}
function choicesText(values) {