mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 11:37:49 +00:00
fix: sync doctor-prompter.ts with main
This commit is contained in:
parent
13b47e6047
commit
7f326ae4ae
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ 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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue