File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/core/assistant-message Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 } >`
You can’t perform that action at this time.
0 commit comments