fix(cli): disableYoloMode shouldn't enforce default approval mode against args (#16155)

This commit is contained in:
Pyush Sinha
2026-01-08 11:48:03 -08:00
committed by GitHub
parent 1a4ae41397
commit f8138262fa
2 changed files with 39 additions and 1 deletions
-1
View File
@@ -520,7 +520,6 @@ export async function loadCliConfig(
'Cannot start in YOLO mode since it is disabled by your admin',
);
}
approvalMode = ApprovalMode.DEFAULT;
} else if (approvalMode === ApprovalMode.YOLO) {
debugLogger.warn(
'YOLO mode is enabled. All tool calls will be automatically approved.',