Merge branch 'main' into feat/debug-logging-refactor

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-02-04 17:30:58 +08:00
commit 9b524a59c1
70 changed files with 4434 additions and 933 deletions

View file

@ -154,7 +154,11 @@ ${textContent}
override async shouldConfirmExecute(): Promise<
ToolCallConfirmationDetails | false
> {
if (this.config.getApprovalMode() === ApprovalMode.AUTO_EDIT) {
// Auto-execute in AUTO_EDIT mode and PLAN mode (read-only tool)
if (
this.config.getApprovalMode() === ApprovalMode.AUTO_EDIT ||
this.config.getApprovalMode() === ApprovalMode.PLAN
) {
return false;
}