fix: miss catching auto-edit (#99)

This commit is contained in:
Jonathan Yang 2025-04-16 22:23:18 +02:00 committed by GitHub
parent cdd8b67dcd
commit 090140da09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -254,7 +254,7 @@ if (quietMode) {
const approvalPolicy: ApprovalPolicy =
cli.flags.fullAuto || cli.flags.approvalMode === "full-auto"
? AutoApprovalMode.FULL_AUTO
: cli.flags.autoEdit
: cli.flags.autoEdit || cli.flags.approvalMode === "auto-edit"
? AutoApprovalMode.AUTO_EDIT
: AutoApprovalMode.SUGGEST;