openclaw - ✅(Solved) Fix [Bug] Control UI log panel displays raw ANSI escape codes instead of rendering colors [1 pull requests, 1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#64399Fetched 2026-04-11 06:15:07
View on GitHub
Comments
1
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
commented ×1cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #64431: fix: strip ANSI codes from Control UI logs

Description (problem / solution / changelog)

Summary

  • strip ANSI escape sequences before Control UI log lines are rendered
  • sanitize subsystem strings before JSON context parsing so embedded ANSI does not break extraction
  • reuse the same ANSI stripping helper in the overview log tail and add regression coverage

Testing

  • pnpm exec vitest run --config vitest.config.ts --project unit src/ui/controllers/logs.test.ts --maxWorkers=1

Closes #64399

Changed files

  • ui/src/ui/ansi.ts (added, +9/-0)
  • ui/src/ui/controllers/logs.test.ts (modified, +25/-0)
  • ui/src/ui/controllers/logs.ts (modified, +10/-7)
  • ui/src/ui/views/overview-log-tail.ts (modified, +1/-6)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING