Преглед изворни кода

Add missing awaits on refactored tools (#2078)

Matt Rubens пре 9 месеци
родитељ
комит
bedb7de72b
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/core/Cline.ts

+ 2 - 2
src/core/Cline.ts

@@ -2255,12 +2255,12 @@ export class Cline extends EventEmitter<ClineEvents> {
 					}
 					}
 
 
 					case "read_file": {
 					case "read_file": {
-						readFileTool(this, block, askApproval, handleError, pushToolResult, removeClosingTag)
+						await readFileTool(this, block, askApproval, handleError, pushToolResult, removeClosingTag)
 						break
 						break
 					}
 					}
 
 
 					case "fetch_instructions": {
 					case "fetch_instructions": {
-						fetchInstructionsTool(this, block, askApproval, handleError, pushToolResult)
+						await fetchInstructionsTool(this, block, askApproval, handleError, pushToolResult)
 						break
 						break
 					}
 					}