Skip to content

fix(issues): Render ANSI colors in issue text#116404

Draft
scttcper wants to merge 1 commit into
masterfrom
scttcper/ansi-error-text
Draft

fix(issues): Render ANSI colors in issue text#116404
scttcper wants to merge 1 commit into
masterfrom
scttcper/ansi-error-text

Conversation

@scttcper
Copy link
Copy Markdown
Member

ANSI escape codes were showing up literally in exception values, message interfaces, and breadcrumb text. This adds a shared ANSI renderer that parses the display string into React spans, maps standard colors through the Sentry theme, and keeps URLs going through Sentry's external-link modal.

This also vendors the small ansi-to-react path we still needed for attachment logs, with the BSD notice preserved, so we can drop the package and avoid raw anchor/linkify behavior.

Fixes #116110

ANSI escape codes were showing up literally in exception values, messages, and breadcrumb text. Add a shared renderer that parses ANSI at display time and keeps URLs going through Sentry's external-link modal.

Also replace the old ansi-to-react attachment viewer path with the vendored renderer so we do not keep raw anchor/linkify behavior around.

Refs #116110

Co-Authored-By: Codex <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translate ANSI color codes to HTML colors

1 participant