Skip to content

Commit c617d25

Browse files
pashpashpashCline Evaluation
andauthored
fixing parsing v2 thanks to @cte (RooCodeInc#3520)
* fixing parsing v2 thanks to @cte * fixing parsing v2 thanks to @cte * cleaner PR --------- Co-authored-by: Cline Evaluation <[email protected]>
1 parent 7937530 commit c617d25

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/assistant-message/parse-assistant-message.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,8 @@ export function parseAssistantMessageV2(assistantMessage: string): AssistantMess
346346
// (e.g., if content is empty or parsing logic prioritizes tool close)
347347
const contentParamName: ToolParamName = "content"
348348
if (
349-
(currentToolUse.name === "write_to_file" || currentToolUse.name === "new_rule") &&
350-
!(contentParamName in currentToolUse.params) && // Only if not already parsed
351-
toolContentSlice.includes(`<${contentParamName}>`) // Check if tag exists
349+
currentToolUse.name === "write_to_file" /* || currentToolUse.name === "new_rule" */ &&
350+
toolContentSlice.includes(`<${contentParamName}>`)
352351
) {
353352
const contentStartTag = `<${contentParamName}>`
354353
const contentEndTag = `</${contentParamName}>`

0 commit comments

Comments
 (0)