Move styles array outside the parse loop in ansiToHtml so styles accumulate across sequences, and use stripAnsi when filtering live logs so search matches visible text.
Terminal color codes were rendering as raw escape sequences in the
web UI, making logs hard to read.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>