Skip to content

Strip ANSI escapes from run logs - #13964

Draft
naufalfx805-source wants to merge 1 commit into
cli:trunkfrom
naufalfx805-source:agent/run-log-strip-ansi
Draft

Strip ANSI escapes from run logs#13964
naufalfx805-source wants to merge 1 commit into
cli:trunkfrom
naufalfx805-source:agent/run-log-strip-ansi

Conversation

@naufalfx805-source

Copy link
Copy Markdown

Summary

Strip terminal ANSI escape sequences from gh run view --log output when logs are copied with job and step prefixes.

The line-copying path now removes terminal control sequences with github.com/charmbracelet/x/ansi before applying the existing ASCII sanitizer, so colored log output remains readable.

Fixes #13434.

Validation

  • go test ./pkg/cmd/run/view

@github-actions github-actions Bot added external pull request originating outside of the CLI core team needs-triage needs to be reviewed labels Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team needs-triage needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run logs with color escapes are unreadable

1 participant