mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-14 10:41:23 +00:00
refactor: simplify doctor prompt defaults
This commit is contained in:
@@ -35,7 +35,7 @@ export function createDoctorPrompter(params: {
|
||||
return false;
|
||||
}
|
||||
if (!repairMode.canPrompt) {
|
||||
return Boolean(p.initialValue ?? false);
|
||||
return p.initialValue ?? false;
|
||||
}
|
||||
return guardCancel(
|
||||
await confirm({
|
||||
@@ -60,7 +60,7 @@ export function createDoctorPrompter(params: {
|
||||
return false;
|
||||
}
|
||||
if (!repairMode.canPrompt) {
|
||||
return Boolean(p.initialValue ?? false);
|
||||
return p.initialValue ?? false;
|
||||
}
|
||||
return guardCancel(
|
||||
await confirm({
|
||||
@@ -78,7 +78,7 @@ export function createDoctorPrompter(params: {
|
||||
return false;
|
||||
}
|
||||
if (!repairMode.canPrompt) {
|
||||
return Boolean(p.initialValue ?? false);
|
||||
return p.initialValue ?? false;
|
||||
}
|
||||
return guardCancel(
|
||||
await confirm({
|
||||
|
||||
Reference in New Issue
Block a user