Просмотр исходного кода

Add a delay to allow auto approved mode changes to take effect

Matt Rubens 11 месяцев назад
Родитель
Сommit
bd0a613be1
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/core/Cline.ts

+ 1 - 0
src/core/Cline.ts

@@ -2072,6 +2072,7 @@ export class Cline {
 										targetMode.name
 									} mode${reason ? ` because: ${reason}` : ""}.`,
 								)
+								await delay(500) // delay to allow mode change to take effect before next tool is executed
 								break
 							}
 						} catch (error) {