Auto-enable WebFetch and WebSearch tools in Plan mode

This commit is contained in:
Alexander Farber 2026-02-01 23:19:54 +01:00
parent bd900d3668
commit bfdc361b62
No known key found for this signature in database
2 changed files with 10 additions and 2 deletions

View file

@ -148,7 +148,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;
}