Roo-Code/junk.txt
Steven T. Cramer b879dd21b6 Fix DirectiveStreamingParser to prevent processing nested XML tags as directives inside tool parameters
- Modified DirectiveStreamingParser to check if currently inside a tool parameter context
- Added logic to treat nested XML tags as plain text when inside tool directive parameters
- Made currentContext and currentParamName properties public in ToolDirectiveHandler for access
- Updated both onopentag and onclosetag handlers to respect tool parameter boundaries
- Fixes issue where <log_message> tags inside <attempt_completion><result> were being processed as separate directives
- All existing tests continue to pass, new test case now passes
2025-06-16 22:21:38 +07:00

19 lines
440 B
Text

Some text with
```
<log_message>
<message>This is an example message that should display in text because it is in a code block</message>
<level>warn</level>
</log_message>
```
More text
<log_message>
<message>This is a warning message that should be handled by the directive handler</message>
<level>warn</level>
</log_message>
"
Partials could have splits like
1. Some text with\n`
2. ``\n<log_
3. message>\n<message>