fix(issues): Strip ANSI codes from copied and exported issue text - #126288
Conversation
Raw stack traces, copy-as-text, issue diff and ticket bodies, copied issue markdown, and copied breadcrumbs included raw ANSI escape codes. Strip them so plain-text outputs read cleanly. Fixes LOGS-1018
JoshuaKGoldberg
force-pushed
the
joshgoldberg/logs-1018-strip-ansi-codes-from-copied-and-exported-issue-text
branch
from
October 2, 2026 00:22
02cfe4a to
c304839
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plain-text outputs of issue data now strip ANSI escape codes instead of embedding them: the raw stack trace view, "Copy as" text and markdown, breadcrumb copies, issue diffs, and external issue bodies. The raw stack trace view is the only one of these visible on screen.
Stacked on #126237. Fixes LOGS-1018.