mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
Auto-enable WebFetch and WebSearch tools in Plan mode
This commit is contained in:
parent
bd900d3668
commit
bfdc361b62
2 changed files with 10 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue