fix(doctor): restore initialValue behavior in non-interactive mode

The repair/force commit added an early return that broke non-interactive
mode - migrations would return false instead of using initialValue.
This commit is contained in:
Onur authored and Peter Steinberger committed 2026-01-09 11:07:01 +01:00
1 parent 0bc50abd73
commit 13b47e6047
1 file changed
-1
-1
View File
@@ -43,7 +43,6 @@ export function createDoctorPrompter(params: {
const canPrompt = isTty && !yes && !nonInteractive;
const confirmDefault = async (p: Parameters<typeof confirm>[0]) => {
if (nonInteractive) return false;
if (shouldRepair) return true;
if (!canPrompt) return Boolean(p.initialValue ?? false);
return (