Compare commits

...

2 Commits

Author SHA1 Message Date
Saoud Rizwan 456853e7b6 Merge branch 'main' into saoudrizwan/plan-mode-error-spam-fix 2026-04-06 10:04:32 -07:00
Saoud Rizwan 6d3d56249d fix(plan-mode): prevent repeated restricted tool errors during streaming 2026-04-05 23:32:58 -07:00
+1 -1
View File
@@ -348,7 +348,7 @@ export class ToolExecutor {
) {
const errorMessage = `Tool '${block.name}' is not available in PLAN MODE. This tool is restricted to ACT MODE for file modifications. Only use tools available for PLAN MODE when in that mode.`
await this.removeLastPartialMessageIfExistsWithType("say", "error")
await this.say("error", errorMessage)
await this.say("error", errorMessage, undefined, undefined, block.partial)
// Only push the final error message when the streaming is done.
if (!block.partial) {
this.pushToolResult(formatResponse.toolError(errorMessage), block)