mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:14:34 +00:00
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:
@@ -43,7 +43,6 @@ export function createDoctorPrompter(params: {
|
|||||||
|
|
||||||
const canPrompt = isTty && !yes && !nonInteractive;
|
const canPrompt = isTty && !yes && !nonInteractive;
|
||||||
const confirmDefault = async (p: Parameters<typeof confirm>[0]) => {
|
const confirmDefault = async (p: Parameters<typeof confirm>[0]) => {
|
||||||
if (nonInteractive) return false;
|
|
||||||
if (shouldRepair) return true;
|
if (shouldRepair) return true;
|
||||||
if (!canPrompt) return Boolean(p.initialValue ?? false);
|
if (!canPrompt) return Boolean(p.initialValue ?? false);
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user