Skip to content

fix: use anstream eprintln in recover.rs for proper ANSI handling - #1183

Merged
max-sixty merged 1 commit into
mainfrom
nightly/clean-22295622046
Feb 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/clean-22295622046

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

  • recover.rs used std::eprintln! instead of the anstream-backed crate::styling::eprintln, which would emit raw ANSI escape codes when stderr is piped
  • Added use crate::styling::eprintln; to match the pattern used in every other file that prints styled messages

Fixes #1182

Test plan

  • cargo check passes
  • cargo test --lib -- recover — all 19 tests pass
  • CI green

🤖 Generated with Claude Code

The recovery module used the standard library's `eprintln!` macro instead
of the anstream-backed `crate::styling::eprintln`. This would emit raw
ANSI escape codes when stderr is piped to a non-terminal.

Fixes #1182

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@max-sixty
max-sixty merged commit a1c74c5 into main Feb 23, 2026
21 checks passed
@max-sixty
max-sixty deleted the nightly/clean-22295622046 branch February 23, 2026 07: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.

recover.rs uses std eprintln instead of anstream eprintln

2 participants