Skip to content

Commit 2e227e9

Browse files
committed
Await ask during read file
1 parent 105bc3c commit 2e227e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/tools/readFileTool.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ export async function readFileTool(
4141
...sharedMessageProps,
4242
content: undefined,
4343
} satisfies ClineSayTool)
44-
await cline.ask("tool", partialMessage, block.partial).catch(() => {})
44+
try {
45+
await cline.ask("tool", partialMessage, block.partial)
46+
} catch (innerError) {
47+
pushToolResult(formatResponse.toolError("Failed to send partial message"))
48+
}
4549
break
4650
} else {
4751
if (!relPath) {

0 commit comments

Comments
 (0)