Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 20, 2025

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>The dim coloring leaks into the check output</issue_title>
<issue_description>### Summary

The check reports some info in a dim color before the check output. However, prek is forgetting to clear the color, so it affects the start of the check:

Image

Compare this to pre-commit:

Image

You can see the first thing in the check output is dim, like the previous text. (Note pre-commit also puts in a blank line here, and it seems prek indents the output a bit.)

Platform

macOS 15 ARM

Version

prek 0.2.17 (Homebrew 2025-11-18)

.pre-commit-config.yaml

No response

Log file

No response</issue_description>

<agent_instructions>Investigate why printing the dimmed line in src/run/run.rs 822 line: writeln!(stdout, "{}", format!("- exit code: {status}").dimmed())?; has effect on the next bolded line</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Nov 20, 2025
Copilot AI requested a review from j178 November 20, 2025 10:37
@j178 j178 closed this Nov 20, 2025
@j178 j178 deleted the copilot/fix-dim-color-leak-check-output branch November 20, 2025 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The dim coloring leaks into the check output

2 participants