Description
ANSI escape codes are stripped from the content text blocks but not from structuredContent. When a program outputs coloured/formatted text (e.g. ls --color, test runners, linters), the structured output contains raw escape sequences like \x1b[32m.
Impact
- Wastes tokens on invisible formatting codes
- Could confuse model interpretation of structured results
- Inconsistency between
content and structuredContent for the same execution
Expected behaviour
Both content and structuredContent should have ANSI codes stripped. See #13 for the broader fix (unifying both output paths).
🤖 Generated with Claude Code
Description
ANSI escape codes are stripped from the
contenttext blocks but not fromstructuredContent. When a program outputs coloured/formatted text (e.g.ls --color, test runners, linters), the structured output contains raw escape sequences like\x1b[32m.Impact
contentandstructuredContentfor the same executionExpected behaviour
Both
contentandstructuredContentshould have ANSI codes stripped. See #13 for the broader fix (unifying both output paths).🤖 Generated with Claude Code